QTfrontend/net/newnetclient.h
branchwebgl
changeset 9950 2759212a27de
parent 9127 e350500c4edb
parent 9549 ac5c1f691ce2
child 10015 4feced261c68
--- a/QTfrontend/net/newnetclient.h	Fri Oct 11 17:43:13 2013 +0200
+++ b/QTfrontend/net/newnetclient.h	Sat Jan 04 23:55:54 2014 +0400
@@ -76,6 +76,7 @@
         PlayersListModel * m_playersModel;
         QSortFilterProxyModel * m_lobbyPlayersModel;
         QSortFilterProxyModel * m_roomPlayersModel;
+        QString m_lastRoom;
 
         QStringList cmdbuf;
 
@@ -103,6 +104,7 @@
         void adminAccess(bool);
         void roomMaster(bool);
         void roomNameUpdated(const QString & name);
+        void askForRoomPassword();
 
         void netSchemeConfig(QStringList &);
         void paramChanged(const QString & param, const QStringList & value);
@@ -153,8 +155,8 @@
         void setLatestProtocolVar(int proto);
         void askServerVars();
 
-        void JoinRoom(const QString & room);
-        void CreateRoom(const QString & room);
+        void JoinRoom(const QString & room, const QString & password);
+        void CreateRoom(const QString & room, const QString &password);
         void updateRoomName(const QString &);
         void askRoomsList();
         void gameFinished(bool correcly);
@@ -173,6 +175,7 @@
         void removeBan(const QString &);
         void banIP(const QString & ip, const QString & reason, int seconds);
         void banNick(const QString & nick, const QString & reason, int seconds);
+        void roomPasswordEntered(const QString & password);
 
     private slots:
         void ClientRead();