Go to the documentation of this file.
7 QString msg = QString(
" is not set in %1").arg(source);
11 LOG(VB_GENERAL, LOG_ERR,
"DBHostName" + msg);
16 LOG(VB_GENERAL, LOG_ERR,
"DBUserName" + msg);
21 LOG(VB_GENERAL, LOG_ERR,
"DBPassword" + msg);
26 LOG(VB_GENERAL, LOG_ERR,
"DBName" + msg);
QString m_dbHostName
database server
Structure containing the basic Database parameters.
#define LOG(_MASK_, _LEVEL_, _QSTRING_)
QString m_dbType
database type (MySQL, Postgres, etc.)
std::chrono::seconds m_wolReconnect
seconds to wait for reconnect
int m_dbPort
database port
bool m_dbHostPing
No longer used.
QString m_dbPassword
DB password.
int m_wolRetry
times to retry to reconnect
QString m_dbName
database name
QString m_wolCommand
command to use for wake-on-lan
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