#include "serverconnection.h"
|
void | onVncViewerStartStop (bool started, int clientId) |
| This slot is triggered once the internal VNC viewer has started or stopped displaying a VNC stream. More...
|
|
Definition at line 10 of file serverconnection.h.
ServerConnection::ServerConnection |
( |
const QString & |
host, |
|
|
quint16 |
port, |
|
|
const QByteArray & |
sessionName, |
|
|
const QByteArray & |
certHash, |
|
|
bool |
autoConnect |
|
) |
| |
ServerConnection::~ServerConnection |
( |
| ) |
|
|
override |
void ServerConnection::attentionChanged |
( |
bool |
state | ) |
|
|
signal |
void ServerConnection::checkLocalConnection |
( |
| ) |
|
|
private |
void ServerConnection::closeVnc |
( |
| ) |
|
|
signal |
void ServerConnection::disconnectFromServer |
( |
| ) |
|
Disconnect from current server.
Do some cleanup also, like stopping any VNC server/client activity, then finally close the connection.
Definition at line 81 of file serverconnection.cpp.
QString ServerConnection::getPeerAdress |
( |
| ) |
const |
|
inline |
void ServerConnection::handleMsg |
( |
| ) |
|
|
private |
Handles an incoming message by the server.
This is somewhat of a long mess, maybe split this up some day or make it OOP with a huge amount fancy features.
Definition at line 101 of file serverconnection.cpp.
bool ServerConnection::isConnected |
( |
| ) |
const |
|
inline |
bool ServerConnection::isLocalConnection |
( |
| ) |
|
|
inline |
void ServerConnection::onVncServerStartStop |
( |
int |
port, |
|
|
const QString & |
ropass, |
|
|
const QString & |
rwpass |
|
) |
| |
|
privateslot |
This slot is triggered by the vnc server runner once the external VNC server was succesfully started, or was terminated (either planned or crashed).
Definition at line 325 of file serverconnection.cpp.
void ServerConnection::onVncViewerStartStop |
( |
bool |
started, |
|
|
int |
clientId |
|
) |
| |
|
slot |
This slot is triggered once the internal VNC viewer has started or stopped displaying a VNC stream.
We'll inform the server about the state change.
Definition at line 343 of file serverconnection.cpp.
void ServerConnection::openVnc |
( |
const QString & |
host, |
|
|
int |
port, |
|
|
const QString & |
passwd, |
|
|
bool |
ro, |
|
|
bool |
fullscreen, |
|
|
const QString & |
caption, |
|
|
const int |
clientId, |
|
|
const QByteArray & |
rawThumb |
|
) |
| |
|
signal |
void ServerConnection::sendAttention |
( |
bool |
on | ) |
|
void ServerConnection::sock_closed |
( |
| ) |
|
|
privateslot |
void ServerConnection::sock_connected |
( |
| ) |
|
|
privateslot |
void ServerConnection::sock_dataArrival |
( |
| ) |
|
|
privateslot |
void ServerConnection::sock_error |
( |
QAbstractSocket::SocketError |
errcode | ) |
|
|
privateslot |
void ServerConnection::sslErrors |
( |
const QList< QSslError > & |
errors | ) |
|
|
privateslot |
An ssl error happened.
If it's an expected one, we ignore it and keep going. Otherwise the connection will be terminated.
Definition at line 359 of file serverconnection.cpp.
void ServerConnection::timerEvent |
( |
QTimerEvent * |
event | ) |
|
|
overrideprotected |
int ServerConnection::_authed |
|
private |
bool ServerConnection::_autoConnect |
|
private |
QByteArray ServerConnection::_certHash |
|
private |
QByteArray ServerConnection::_expectedFingerprint |
|
private |
int ServerConnection::_isLocalConnection |
|
private |
int ServerConnection::_jpegQuality |
|
private |
qint64 ServerConnection::_lastData |
|
private |
QByteArray ServerConnection::_myChallenge |
|
private |
QString ServerConnection::_passwd |
|
private |
QByteArray ServerConnection::_sessionName |
|
private |
QSslSocket* ServerConnection::_socket |
|
private |
int ServerConnection::_timerConnectionCheck |
|
private |
int ServerConnection::_timerDelete |
|
private |
int ServerConnection::_timerId |
|
private |
The documentation for this class was generated from the following files: