--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/QTfrontend/pageroomslist.h Mon May 09 16:56:29 2011 +0200
@@ -0,0 +1,54 @@
+
+#ifndef PAGE_ROOMLIST_H
+#define PAGE_ROOMLIST_H
+
+#include "pages.h"
+
+class HWChatWidget;
+
+class PageRoomsList : public AbstractPage
+{
+ Q_OBJECT
+
+public:
+ PageRoomsList(QWidget* parent, QSettings * config, SDLInteraction * sdli);
+
+ QLineEdit * roomName;
+ QLineEdit * searchText;
+ QTableWidget * roomsList;
+ QPushButton * BtnBack;
+ QPushButton * BtnCreate;
+ QPushButton * BtnJoin;
+ QPushButton * BtnRefresh;
+ QPushButton * BtnAdmin;
+ QPushButton * BtnClear;
+ QComboBox * CBState;
+ QComboBox * CBRules;
+ QComboBox * CBWeapons;
+ HWChatWidget * chatWidget;
+
+private:
+ bool gameInLobby;
+ QString gameInLobbyName;
+ QStringList listFromServer;
+ AmmoSchemeModel * ammoSchemeModel;
+
+public slots:
+ void setRoomsList(const QStringList & list);
+ void setAdmin(bool);
+
+private slots:
+ void onCreateClick();
+ void onJoinClick();
+ void onRefreshClick();
+ void onClearClick();
+ void onJoinConfirmation(const QString &);
+
+signals:
+ void askForCreateRoom(const QString &);
+ void askForJoinRoom(const QString &);
+ void askForRoomList();
+ void askJoinConfirmation(const QString &);
+};
+
+#endif