Go to the documentation of this file.
39 QString msg = QString(
" is not set in %1").arg(source);
43 LOG(VB_GENERAL, LOG_ERR,
"DBHostName" + msg);
48 LOG(VB_GENERAL, LOG_ERR,
"DBUserName" + msg);
53 LOG(VB_GENERAL, LOG_ERR,
"DBPassword" + msg);
58 LOG(VB_GENERAL, LOG_ERR,
"DBName" + msg);
QString m_dbHostName
database server
bool m_forceSave
set to true to force a save of the settings file
Structure containing the basic Database parameters.
#define LOG(_MASK_, _LEVEL_, _QSTRING_)
QString m_dbType
database type (MySQL, Postgres, etc.)
QString m_verBranch
git branch
std::chrono::seconds m_wolReconnect
seconds to wait for reconnect
int m_dbPort
database port
QString m_verVersion
git version string
bool m_dbHostPing
Can we test connectivity using ping?
QString m_verSchema
core schema version
QString m_dbPassword
DB password.
int m_wolRetry
times to retry to reconnect
QString m_dbName
database name
QString m_verProtocol
backend protocol
void LoadDefaults(void)
Load sensible connection defaults.
QString m_wolCommand
command to use for wake-on-lan
QString m_verBinary
binary library version
QString m_dbUserName
DB user name.
bool operator==(const DatabaseParams &other) const
bool m_localEnabled
true if localHostName is not default
bool m_wolEnabled
true if wake-on-lan params are used
QString m_localHostName
name used for loading/saving settings
bool IsValid(const QString &source=QString("Unknown")) const