QTfrontend/net/newnetclient.h
branchwebgl
changeset 8330 aaefa587e277
parent 8299 ef2e284255cd
child 8444 75db7bb8dce8
--- a/QTfrontend/net/newnetclient.h	Sun Dec 02 00:03:16 2012 +0100
+++ b/QTfrontend/net/newnetclient.h	Tue Dec 25 04:45:22 2012 +0100
@@ -69,6 +69,7 @@
         QTcpSocket NetSocket;
         QString seed;
         bool m_game_connected;
+        bool m_nick_registered;
         RoomsListModel * m_roomsListModel;
         PlayersListModel * m_playersModel;
         QSortFilterProxyModel * m_lobbyPlayersModel;
@@ -90,7 +91,8 @@
         void disconnected(const QString & reason);
         void Error(const QString & errmsg);
         void Warning(const QString & wrnmsg);
-        void AskForPassword(const QString & nick);
+        void NickRegistered(const QString & nick);
+        void NickNotRegistered(const QString & nick);
         void NickTaken(const QString & nick);
         void AuthFailed();
         void EnteredGame();
@@ -123,6 +125,7 @@
         void serverMessageNew(const QString &);
         void serverMessageOld(const QString &);
         void latestProtocolVar(int);
+        void bansList(const QStringList &);
 
         void setMyReadyStatus(bool isReady);
 
@@ -157,6 +160,10 @@
         void toggleRestrictTeamAdds();
         void partRoom();
         void clearAccountsCache();
+        void getBanList();
+        void removeBan(const QString &);
+        void banIP(const QString & ip, const QString & reason, int seconds);
+        void banNick(const QString & nick, const QString & reason, int seconds);
 
     private slots:
         void ClientRead();