From 8611f238c6740e19dade61d3c71e7e80b5a3811c Mon Sep 17 00:00:00 2001 From: Manuel Schneider Date: Tue, 27 May 2014 01:20:02 +0200 Subject: Use enums for modes since not all combinations of _broadcast and _lockOthers make sense. --- src/server/mainwindow/mainwindow.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/server/mainwindow/mainwindow.h') 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 _watchers; -- cgit v1.2.3-55-g7522