MythTV  master
mythdbparams.h
Go to the documentation of this file.
1 #ifndef MYTHDBPARAMS_H_
2 #define MYTHDBPARAMS_H_
3 
4 #include <QString>
5 
6 #include "mythbaseexp.h"
7 
10 {
11  public:
12  DatabaseParams() = default;
13 
14  void LoadDefaults(void);
15  bool IsValid(const QString &source = QString("Unknown")) const;
16 
17  bool operator==(const DatabaseParams &other) const;
18  bool operator!=(const DatabaseParams &other) const
19  { return !((*this)==other); }
20 
21  QString m_dbHostName {"localhost"};
22  bool m_dbHostPing {true};
23  int m_dbPort {3306};
24  QString m_dbUserName {"mythtv"};
25  QString m_dbPassword {"mythconverg"};
26  QString m_dbName {"mythtv"};
27  QString m_dbType {"QMYSQL"};
28 
29  bool m_localEnabled {false};
30  QString m_localHostName {"my-unique-identifier-goes-here"};
32 
33  bool m_wolEnabled {false};
34  int m_wolReconnect {0};
35  int m_wolRetry {5};
36  QString m_wolCommand {"echo 'WOLsqlServerCommand not set'"};
38 
39  bool m_forceSave {false};
40 
41  QString m_verVersion;
42  QString m_verBranch;
43  QString m_verProtocol;
44  QString m_verBinary;
45  QString m_verSchema;
46 };
47 
48 #endif
DatabaseParams::DatabaseParams
DatabaseParams()=default
DatabaseParams
Structure containing the basic Database parameters.
Definition: mythdbparams.h:10
mythbaseexp.h
DatabaseParams::operator!=
bool operator!=(const DatabaseParams &other) const
Definition: mythdbparams.h:18
DatabaseParams::m_verBranch
QString m_verBranch
git branch
Definition: mythdbparams.h:42
DatabaseParams::m_verVersion
QString m_verVersion
git version string
Definition: mythdbparams.h:41
MBASE_PUBLIC
#define MBASE_PUBLIC
Definition: mythbaseexp.h:15
operator==
bool operator==(MusicMetadata &a, MusicMetadata &b)
Definition: musicmetadata.cpp:47
DatabaseParams::m_verSchema
QString m_verSchema
core schema version
Definition: mythdbparams.h:45
DatabaseParams::m_verProtocol
QString m_verProtocol
backend protocol
Definition: mythdbparams.h:43
DatabaseParams::m_verBinary
QString m_verBinary
binary library version
Definition: mythdbparams.h:44