diff options
author | Christian Klinger | 2016-05-10 17:30:37 +0200 |
---|---|---|
committer | Christian Klinger | 2016-05-10 17:30:37 +0200 |
commit | 93cd9571c534bb48af3707e1dc6c8bab28461df7 (patch) | |
tree | 6e50373bf46d27071ea100229ced7f1c244caa12 /src/client/connectwindow/connectwindow.h | |
parent | Priorities for rooms. (diff) | |
download | pvs2-93cd9571c534bb48af3707e1dc6c8bab28461df7.tar.gz pvs2-93cd9571c534bb48af3707e1dc6c8bab28461df7.tar.xz pvs2-93cd9571c534bb48af3707e1dc6c8bab28461df7.zip |
first new version of the connect window; needs some polish though.
Diffstat (limited to 'src/client/connectwindow/connectwindow.h')
-rw-r--r-- | src/client/connectwindow/connectwindow.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/client/connectwindow/connectwindow.h b/src/client/connectwindow/connectwindow.h index 9daa420..bdd564a 100644 --- a/src/client/connectwindow/connectwindow.h +++ b/src/client/connectwindow/connectwindow.h @@ -17,10 +17,12 @@ #define PVSCONNECTWINDOW_H_ #include <QtGui> +#include <QMap> #include <QUdpSocket> #include <QSslSocket> #include "../../shared/networkmessage.h" #include "../net/serverdiscovery.h" +#include "../util/room.h" namespace Ui{ class ConnectWindow; @@ -53,8 +55,9 @@ public: explicit ConnectWindow(QWidget *parent = NULL); virtual ~ConnectWindow(); - + void connectToSession(const QByteArray sessionName, QString mgrIP); + void setAvailableRooms(QList<Room> m); private: Ui::ConnectWindow *_ui; @@ -64,6 +67,7 @@ private: ConnectionState _state; QByteArray _currentSession; QString _currentIp; + QString _defaultSessionName; NetworkMessage _packet; bool _tryReconnect; int _timerHide; @@ -81,6 +85,8 @@ protected slots: void onBtnAdvanced(); void onBtnHide(); + void onRoomSelection(int index); + void onConnectionStateChange(ConnectWindow::ConnectionState state); void onConnectionClosed(QObject* connection); void onConnectionDisconnected(); |