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:
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 dbHostName {"localhost"};
22  bool dbHostPing {true};
23  int dbPort {3306};
24  QString dbUserName {"mythtv"};
25  QString dbPassword {"mythconverg"};
26  QString dbName {"mythtv"};
27  QString dbType {"QMYSQL"};
28 
29  bool localEnabled {false};
30  QString localHostName {"my-unique-identifier-goes-here"};
32 
33  bool wolEnabled {false};
34  int wolReconnect {0};
35  int wolRetry {5};
36  QString wolCommand {"echo 'WOLsqlServerCommand not set'"};
38 
39  bool forceSave {false};
40 
41  QString verVersion;
42  QString verBranch;
43  QString verProtocol;
44  QString verBinary;
45  QString verSchema;
46 };
47 
48 #endif
QString verSchema
core schema version
Definition: mythdbparams.h:45
bool operator==(MusicMetadata &a, MusicMetadata &b)
QString verBinary
binary library version
Definition: mythdbparams.h:44
QString verProtocol
backend protocol
Definition: mythdbparams.h:43
bool operator!=(const DatabaseParams &other) const
Definition: mythdbparams.h:18
#define MBASE_PUBLIC
Definition: mythbaseexp.h:15
Structure containing the basic Database parameters.
Definition: mythdbparams.h:9
QString verBranch
git branch
Definition: mythdbparams.h:42
QString verVersion
git version string
Definition: mythdbparams.h:41