summaryrefslogtreecommitdiffstats
path: root/src/server/mainwindow/mainwindow.h
diff options
context:
space:
mode:
authorManuel Schneider2014-05-27 14:56:47 +0200
committerManuel Schneider2014-05-27 14:56:47 +0200
commit1fca5db8d71539d2621064a0f756f128970736ac (patch)
treefad52857365dbd3278b1687c7a514b2e350ed55f /src/server/mainwindow/mainwindow.h
parentMake it possible to exclude a client from multicast. (diff)
downloadpvs2-1fca5db8d71539d2621064a0f756f128970736ac.tar.gz
pvs2-1fca5db8d71539d2621064a0f756f128970736ac.tar.xz
pvs2-1fca5db8d71539d2621064a0f756f128970736ac.zip
Unite BC and MC. Reducing complexity
Diffstat (limited to 'src/server/mainwindow/mainwindow.h')
-rw-r--r--src/server/mainwindow/mainwindow.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/server/mainwindow/mainwindow.h b/src/server/mainwindow/mainwindow.h
index 97d9dc3..6245155 100644
--- a/src/server/mainwindow/mainwindow.h
+++ b/src/server/mainwindow/mainwindow.h
@@ -48,9 +48,8 @@ private:
QList<QAction*> _lockingButtons;
static const qint64 _buttonBlockTime = 600;
- // Internal stuff
+ // Management stuff
enum class Mode {
- Idle,
Broadcast,
Multicast,
LockedMulticast
@@ -77,8 +76,7 @@ private:
bool loadPosition(QSettings& settings, const QString& id, int& x, int& y);
void savePosition(ConnectionFrame *cf);
bool isValidClient(Client* client);
- void broadcast(Client *from);
- void multicast(Client *from, Client *to, bool blockOthers = false);
+ void changeProjection(Client *from, Mode mode = Mode::Broadcast, Client *to = NULL);
void closeEvent(QCloseEvent *e);
void changeEvent(QEvent *e);