Resolve compile error
This commit is contained in:
parent
9148e522aa
commit
931365d1bd
@ -424,17 +424,17 @@ private:
|
|||||||
*/
|
*/
|
||||||
static QSettings* m_discord;
|
static QSettings* m_discord;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Pointer to QElapsedTimer to track the uptime of the server.
|
||||||
|
*/
|
||||||
|
static QElapsedTimer* m_uptimeTimer;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Returns a stringlist with the contents of a .txt file from config/text/.
|
* @brief Returns a stringlist with the contents of a .txt file from config/text/.
|
||||||
*
|
*
|
||||||
* @param Name of the file to load.
|
* @param Name of the file to load.
|
||||||
*/
|
*/
|
||||||
static QStringList loadConfigFile(const QString filename);
|
static QStringList loadConfigFile(const QString filename);
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Pointer to QElapsedTimer to track the uptime of the server.
|
|
||||||
*/
|
|
||||||
static QElapsedTimer* uptimeTimer;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
QSettings* ConfigManager::m_settings = new QSettings("config/config.ini", QSettings::IniFormat);
|
QSettings* ConfigManager::m_settings = new QSettings("config/config.ini", QSettings::IniFormat);
|
||||||
QSettings* ConfigManager::m_discord = new QSettings("config/discord.ini", QSettings::IniFormat);
|
QSettings* ConfigManager::m_discord = new QSettings("config/discord.ini", QSettings::IniFormat);
|
||||||
ConfigManager::CommandSettings* ConfigManager::m_commands = new CommandSettings();
|
ConfigManager::CommandSettings* ConfigManager::m_commands = new CommandSettings();
|
||||||
|
QElapsedTimer* ConfigManager::m_uptimeTimer = new QElapsedTimer;
|
||||||
|
|
||||||
bool ConfigManager::verifyServerConfig()
|
bool ConfigManager::verifyServerConfig()
|
||||||
{
|
{
|
||||||
@ -85,8 +86,7 @@ bool ConfigManager::verifyServerConfig()
|
|||||||
m_commands->reprimands = (loadConfigFile("reprimands"));
|
m_commands->reprimands = (loadConfigFile("reprimands"));
|
||||||
m_commands->gimps = (loadConfigFile("gimp"));
|
m_commands->gimps = (loadConfigFile("gimp"));
|
||||||
|
|
||||||
uptimeTimer = new QElapsedTimer;
|
m_uptimeTimer->start();
|
||||||
uptimeTimer->start();
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -426,7 +426,7 @@ QUrl ConfigManager::advertiserHTTPIP()
|
|||||||
|
|
||||||
qint64 ConfigManager::uptime()
|
qint64 ConfigManager::uptime()
|
||||||
{
|
{
|
||||||
return uptimeTimer->elapsed();
|
return m_uptimeTimer->elapsed();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ConfigManager::setMotd(const QString f_motd)
|
void ConfigManager::setMotd(const QString f_motd)
|
||||||
|
Loading…
Reference in New Issue
Block a user