summaryrefslogtreecommitdiffstats
path: root/src/server/connectionframe/connectionframe.h
diff options
context:
space:
mode:
authorSimon Rettberg2018-07-19 17:20:30 +0200
committerSimon Rettberg2018-07-19 17:20:30 +0200
commit87eaae3e4e2f6d542956df870609b798b9fa9d26 (patch)
tree9cc85ec51589e1e7b14dae7e05a059b15a8cf8d2 /src/server/connectionframe/connectionframe.h
parent[server] SessionNameWindow: Set focus to text box on open (diff)
downloadpvs2-87eaae3e4e2f6d542956df870609b798b9fa9d26.tar.gz
pvs2-87eaae3e4e2f6d542956df870609b798b9fa9d26.tar.xz
pvs2-87eaae3e4e2f6d542956df870609b798b9fa9d26.zip
[server] Offer deleting temp. clients on session name change
If the user changes the session name, we now ask whether to disconnect and delete all clients that just connected via session name and don't belong to the currently loaded room layout.
Diffstat (limited to 'src/server/connectionframe/connectionframe.h')
-rw-r--r--src/server/connectionframe/connectionframe.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/server/connectionframe/connectionframe.h b/src/server/connectionframe/connectionframe.h
index 72f57f3..4558406 100644
--- a/src/server/connectionframe/connectionframe.h
+++ b/src/server/connectionframe/connectionframe.h
@@ -38,6 +38,7 @@ private:
int _timerId, _timerCounter;
bool _isSelected;
bool _isTutor;
+ bool _isFromRoomplan;
static const int _startDragDistance = 40;
@@ -50,7 +51,7 @@ public:
static bool paintDisabled;
- ConnectionFrame(MainWindow* main, QWidget* parent);
+ ConnectionFrame(MainWindow* main, QWidget* parent, bool fromRoomplan = false);
virtual ~ConnectionFrame();
const inline QPoint getGridPosition() const { return _gridPosition; }
@@ -68,6 +69,7 @@ public:
Client* client() const { return _client; }
inline bool isTutor() { return _isTutor; }
+ inline bool isFromRoomplan() { return _isFromRoomplan; }
void setTutor(bool b);
protected: