diff options
author | Manuel Schneider | 2014-05-27 14:56:47 +0200 |
---|---|---|
committer | Manuel Schneider | 2014-05-27 14:56:47 +0200 |
commit | 1fca5db8d71539d2621064a0f756f128970736ac (patch) | |
tree | fad52857365dbd3278b1687c7a514b2e350ed55f /src/server/mainwindow/mainwindow.h | |
parent | Make it possible to exclude a client from multicast. (diff) | |
download | pvs2-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.h | 6 |
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); |