summaryrefslogtreecommitdiffstats
path: root/src/server/mainwindow/mainwindow.h
diff options
context:
space:
mode:
authorManuel Schneider2014-05-22 15:45:23 +0200
committerManuel Schneider2014-05-22 15:45:23 +0200
commit7878fe9db26439acd1163b2f487cfdb3415f59ac (patch)
treeab684395e0522179f6742c897ddfb2b8c51f2b00 /src/server/mainwindow/mainwindow.h
parentStop suggesting the user to be recorded: (diff)
downloadpvs2-7878fe9db26439acd1163b2f487cfdb3415f59ac.tar.gz
pvs2-7878fe9db26439acd1163b2f487cfdb3415f59ac.tar.xz
pvs2-7878fe9db26439acd1163b2f487cfdb3415f59ac.zip
First approach for an exclusive unicast. T.b.c.
Diffstat (limited to 'src/server/mainwindow/mainwindow.h')
-rw-r--r--src/server/mainwindow/mainwindow.h27
1 files changed, 20 insertions, 7 deletions
diff --git a/src/server/mainwindow/mainwindow.h b/src/server/mainwindow/mainwindow.h
index 4f40a67..b246265 100644
--- a/src/server/mainwindow/mainwindow.h
+++ b/src/server/mainwindow/mainwindow.h
@@ -30,10 +30,11 @@ public:
~MainWindow();
private:
+
// Ui stuff
Ui::MainWindow *ui;
SessionNameWindow *_sessionNameWindow;
- HelpWindow *_helpWindow;
+ HelpWindow *_helpWindow;
QLabel *_sessionNameLabel;
int _tbIconSize;
Qt::ToolBarArea _tbArea;
@@ -48,11 +49,20 @@ private:
static const qint64 _buttonBlockTime = 600;
// Internal stuff
+ enum class State {
+ Idle,
+ Unicast,
+ ExclusiveUnicast,
+ Broadcast
+ } _state;
+
+ Client * _streamingSource;
+
QList<ConnectionFrame*> _clientFrames;
- ListenServer *_listenServer;
- DiscoveryListener *_discoveryListener;
- FileDownloader _fileDownloader;
- QStringList _tutorList;
+ ListenServer *_listenServer;
+ DiscoveryListener *_discoveryListener;
+ FileDownloader _fileDownloader;
+ QStringList _tutorList;
static const QString sStrTutorNdef;
static const QString sStrTutorOffline;
@@ -80,15 +90,18 @@ protected slots:
void onTutorListDownloaded(QByteArray& tutorList);
void onSessionNameClick();
void onSessionNameUpdate();
+
+ void onButtonLock(bool checked);
void onButtonStudentToAll();
void onButtonStudentToTutor();
void onButtonStudentToTutorExclusive();
void onButtonTutorToAll();
void onButtonTutorToStudent();
void onButtonStopProjection();
- void onButtonLock(bool checked);
- void onButtonExit();
+
void onButtonSetAsTutor();
+
+ void onButtonExit();
void onButtonHelp();
void DisableButtons();
void EnableButtons();