servatrice/cockatrice/src/localserver.h
2010-09-18 21:05:28 +02:00

25 lines
No EOL
659 B
C++

#ifndef LOCALSERVER_H
#define LOCALSERVER_H
#include "server.h"
class LocalServerInterface;
class LocalServer : public Server
{
Q_OBJECT
public:
LocalServer(QObject *parent = 0);
~LocalServer();
AuthenticationResult checkUserPassword(const QString & /*user*/, const QString & /*password*/) { return UnknownUser; }
QString getLoginMessage() const { return QString(); }
bool getGameShouldPing() const { return false; }
int getMaxGameInactivityTime() const { return 9999999; }
int getMaxPlayerInactivityTime() const { return 9999999; }
LocalServerInterface *newConnection();
protected:
ServerInfo_User *getUserData(const QString &name);
};
#endif