mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
game inactivity timeout
This commit is contained in:
parent
a9f590e905
commit
5efb92e2d6
7 changed files with 30 additions and 3 deletions
|
|
@ -52,6 +52,9 @@ Servatrice::Servatrice(QObject *parent)
|
|||
settings->endArray();
|
||||
|
||||
loginMessage = settings->value("messages/login").toString();
|
||||
|
||||
maxGameInactivityTime = settings->value("game/max_game_inactivity_time").toInt();
|
||||
maxPlayerInactivityTime = settings->value("game/max_player_inactivity_time").toInt();
|
||||
}
|
||||
|
||||
Servatrice::~Servatrice()
|
||||
|
|
|
|||
|
|
@ -41,10 +41,14 @@ public:
|
|||
bool execSqlQuery(QSqlQuery &query);
|
||||
AuthenticationResult checkUserPassword(const QString &user, const QString &password);
|
||||
QString getLoginMessage() const { return loginMessage; }
|
||||
int getMaxGameInactivityTime() const { return maxGameInactivityTime; }
|
||||
int getMaxPlayerInactivityTime() const { return maxPlayerInactivityTime; }
|
||||
private:
|
||||
QTcpServer *tcpServer;
|
||||
QString loginMessage;
|
||||
QSettings *settings;
|
||||
int maxGameInactivityTime;
|
||||
int maxPlayerInactivityTime;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue