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#include "mythchrono.h"
8
11{
12 public:
13 DatabaseParams() = default;
14
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 {false};
23 int m_dbPort {3306};
24 QString m_dbUserName {"mythtv"};
25 QString m_dbPassword {"mythtv"};
26 QString m_dbName {"mythconverg"};
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 std::chrono::seconds m_wolReconnect {0s};
35 int m_wolRetry {5};
36 QString m_wolCommand {"echo 'WOLsqlServerCommand not set'"};
38
39 QString m_verVersion;
40 QString m_verBranch;
41 QString m_verProtocol;
42 QString m_verBinary;
43 QString m_verSchema;
44};
45
46#endif
Structure containing the basic Database parameters.
Definition: mythdbparams.h:11
QString m_verBranch
git branch
Definition: mythdbparams.h:40
QString m_verBinary
binary library version
Definition: mythdbparams.h:42
QString m_verSchema
core schema version
Definition: mythdbparams.h:43
QString m_verVersion
git version string
Definition: mythdbparams.h:39
bool operator!=(const DatabaseParams &other) const
Definition: mythdbparams.h:18
DatabaseParams()=default
QString m_verProtocol
backend protocol
Definition: mythdbparams.h:41
bool operator==(MusicMetadata &a, MusicMetadata &b)
#define MBASE_PUBLIC
Definition: mythbaseexp.h:8