summaryrefslogtreecommitdiffstats
path: root/src/server/mainwindow/mainwindow.h
diff options
context:
space:
mode:
authorManuel Schneider2014-05-27 01:20:02 +0200
committerManuel Schneider2014-05-27 01:20:02 +0200
commit8611f238c6740e19dade61d3c71e7e80b5a3811c (patch)
tree734164ee272e233049f2abceaa0f65c75825ccaa /src/server/mainwindow/mainwindow.h
parentDrop unused _state. Introduce member _locked to avoid unnecessary messages. (diff)
downloadpvs2-8611f238c6740e19dade61d3c71e7e80b5a3811c.tar.gz
pvs2-8611f238c6740e19dade61d3c71e7e80b5a3811c.tar.xz
pvs2-8611f238c6740e19dade61d3c71e7e80b5a3811c.zip
Use enums for modes since not all combinations of _broadcast and _lockOthers make sense.
Diffstat (limited to 'src/server/mainwindow/mainwindow.h')
-rw-r--r--src/server/mainwindow/mainwindow.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/server/mainwindow/mainwindow.h b/src/server/mainwindow/mainwindow.h
index 4b75241..8405e4a 100644
--- a/src/server/mainwindow/mainwindow.h
+++ b/src/server/mainwindow/mainwindow.h
@@ -49,8 +49,12 @@ private:
static const qint64 _buttonBlockTime = 600;
// Internal stuff
- bool _broadcast;
- bool _lockOthers;
+ enum class Mode {
+ Idle,
+ Broadcast,
+ Multicast,
+ LockedMulticast
+ } _mode;
Client * _streamingSource;
QMap<int, Client*> _watchers;