diff options
author | Manuel Schneider | 2014-05-20 14:47:42 +0200 |
---|---|---|
committer | Manuel Schneider | 2014-05-20 14:47:42 +0200 |
commit | 58646932664b6ab9014a410dc75dd443fb4f58b9 (patch) | |
tree | a4a1f6f8b414abfa16dba6145e9c8dffb542d2c5 /src/server/net/client.cpp | |
parent | Merge branch 'master' of git.openslx.org:pvs2 (diff) | |
download | pvs2-58646932664b6ab9014a410dc75dd443fb4f58b9.tar.gz pvs2-58646932664b6ab9014a410dc75dd443fb4f58b9.tar.xz pvs2-58646932664b6ab9014a410dc75dd443fb4f58b9.zip |
Remove any knowledge of Networkmesage in Mainwindow
Diffstat (limited to 'src/server/net/client.cpp')
-rw-r--r-- | src/server/net/client.cpp | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/src/server/net/client.cpp b/src/server/net/client.cpp index 4bb19bf..6b3997c 100644 --- a/src/server/net/client.cpp +++ b/src/server/net/client.cpp @@ -187,7 +187,7 @@ void Client::handleMsg() { if (_vncPort <= 0) { - qDebug() << "Starting VNC server on client" << _name << " (" << _ip << ") failed."; + qDebug() << "Starting VNC server on client" << _name << " (" << _ip+_vncPort << ") failed."; // TODO: Show message on manager } else @@ -323,6 +323,29 @@ void Client::stopVncClient() } /******************************************************************************/ +void Client::startVncClient(QString host, int port, QString pass, int id, QString caption) +{ + _activeVncClient = false; + _toClient.reset(); + _toClient.setField(_ID, _VNCCLIENT); + _toClient.setField("HOST", host); + _toClient.setField("PORT", QString::number(port)); + _toClient.setField("ROPASS", pass); + _toClient.setField("CLIENTID", QString::number(id)); + _toClient.setField("CAPTION", caption); + sendMessage(_toClient); +} + +/******************************************************************************/ +void Client::lockScreen(bool lock) +{ + _toClient.reset(); + _toClient.setField(_ID, _LOCK); + _toClient.setField(_ENABLE, lock ? __TRUE : __FALSE); + sendMessage(_toClient); +} + +/******************************************************************************/ void Client::setTutor(bool enable) { _toClient.reset(); |