diff options
author | Manuel Schneider | 2014-06-03 16:05:06 +0200 |
---|---|---|
committer | Manuel Schneider | 2014-06-03 16:05:06 +0200 |
commit | 502089cb2e004202c4b078317fb43255dd056441 (patch) | |
tree | 3e71212056b9f3514f804d84c0465d3cf5aa5c5a /src/server/mainwindow | |
parent | Lock the buttons until the new vnc server sent a reply about its state. If th... (diff) | |
parent | Merge branch 'master' of git.openslx.org:pvs2 (diff) | |
download | pvs2-502089cb2e004202c4b078317fb43255dd056441.tar.gz pvs2-502089cb2e004202c4b078317fb43255dd056441.tar.xz pvs2-502089cb2e004202c4b078317fb43255dd056441.zip |
Merge branch 'master' of git.openslx.org:pvs2
Diffstat (limited to 'src/server/mainwindow')
-rw-r--r-- | src/server/mainwindow/mainwindow.cpp | 13 | ||||
-rw-r--r-- | src/server/mainwindow/mainwindow.h | 2 |
2 files changed, 15 insertions, 0 deletions
diff --git a/src/server/mainwindow/mainwindow.cpp b/src/server/mainwindow/mainwindow.cpp index 28177d6..b75f83a 100644 --- a/src/server/mainwindow/mainwindow.cpp +++ b/src/server/mainwindow/mainwindow.cpp @@ -286,6 +286,19 @@ bool MainWindow::isManagerMachine(Client* client) return false; } +Client* MainWindow::getClientFromId(int id) +{ + for (QList<ConnectionFrame*>::iterator it(_clientFrames.begin()); it != _clientFrames.end(); ++it) + { + if ((*it)->client() != NULL) + { + if ((*it)->client()->id() == id) + return (*it)->client(); + } + } + return NULL; +} + /* * Overridden methods */ diff --git a/src/server/mainwindow/mainwindow.h b/src/server/mainwindow/mainwindow.h index ad8c43f..fffa49a 100644 --- a/src/server/mainwindow/mainwindow.h +++ b/src/server/mainwindow/mainwindow.h @@ -85,6 +85,8 @@ private: void resizeEvent(QResizeEvent *e); void mouseReleaseEvent(QMouseEvent* e); + Client* getClientFromId(int id); + protected slots: void onTutorListDownloaded(QByteArray& tutorList); void onSessionNameClick(); |