MythTV
master
mythtv
libs
libmythbase
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
10
class
MBASE_PUBLIC
DatabaseParams
11
{
12
public
:
13
DatabaseParams
() =
default
;
14
15
void
LoadDefaults(
void
);
16
bool
IsValid(
const
QString &source = QString(
"Unknown"
))
const
;
17
18
bool
operator==
(
const
DatabaseParams
&other)
const
;
19
bool
operator!=
(
const
DatabaseParams
&other)
const
20
{
return
!((*this)==other); }
21
22
QString m_dbHostName {
"localhost"
};
23
bool
m_dbHostPing {
false
};
24
int
m_dbPort {3306};
25
QString m_dbUserName {
"mythtv"
};
26
QString m_dbPassword {
"mythtv"
};
27
QString m_dbName {
"mythconverg"
};
28
QString m_dbType {
"QMYSQL"
};
29
30
bool
m_localEnabled {
false
};
31
QString m_localHostName {
"my-unique-identifier-goes-here"
};
33
34
bool
m_wolEnabled {
false
};
35
std::chrono::seconds m_wolReconnect {0s};
36
int
m_wolRetry {5};
37
QString m_wolCommand {
"echo 'WOLsqlServerCommand not set'"
};
39
40
bool
m_forceSave {
false
};
41
42
QString
m_verVersion
;
43
QString
m_verBranch
;
44
QString
m_verProtocol
;
45
QString
m_verBinary
;
46
QString
m_verSchema
;
47
};
48
49
#endif
DatabaseParams
Structure containing the basic Database parameters.
Definition:
mythdbparams.h:10
mythbaseexp.h
DatabaseParams::operator!=
bool operator!=(const DatabaseParams &other) const
Definition:
mythdbparams.h:19
DatabaseParams::m_verBranch
QString m_verBranch
git branch
Definition:
mythdbparams.h:43
DatabaseParams::m_verVersion
QString m_verVersion
git version string
Definition:
mythdbparams.h:42
MBASE_PUBLIC
#define MBASE_PUBLIC
Definition:
mythbaseexp.h:15
operator==
bool operator==(MusicMetadata &a, MusicMetadata &b)
Definition:
musicmetadata.cpp:40
DatabaseParams::m_verSchema
QString m_verSchema
core schema version
Definition:
mythdbparams.h:46
DatabaseParams::m_verProtocol
QString m_verProtocol
backend protocol
Definition:
mythdbparams.h:44
DatabaseParams::m_verBinary
QString m_verBinary
binary library version
Definition:
mythdbparams.h:45
mythchrono.h
Generated on Sun Jan 5 2025 03:16:14 for MythTV by
1.8.17