MCPcopy Create free account
hub / github.com/KangLin/RabbitRemoteControl / CConnection

Method CConnection

Plugins/RabbitVNC/Service/Connection.cpp:35–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33bool g_setfile = false;
34
35CConnection::CConnection(QSharedPointer<CChannel> channel,
36 CParameterServiceRabbitVNC *pPara)
37 : QObject(), rfb::SConnection(),
38 m_Channel(channel),
39 m_pPara(pPara),
40 m_PixelFormat(32, 24, false, true, 255, 255, 255, 16, 8, 0),
41 inProcessMessages(false),
42 pendingSyncFence(false),
43 syncFence(false),
44 fenceFlags(0),
45 fenceDataLen(0),
46 fenceData(nullptr),
47 m_EncodeManager(this),
48 continuousUpdates(false)
49{
50 bool check = false;
51
52 check = connect(m_Channel.data(), SIGNAL(sigConnected()),
53 this, SLOT(slotConnected()));
54 Q_ASSERT(check);
55 check = connect(m_Channel.data(), SIGNAL(readyRead()),
56 this, SLOT(slotReadyRead()));
57 Q_ASSERT(check);
58 check = connect(m_Channel.data(), SIGNAL(sigDisconnected()),
59 this, SLOT(slotDisconnected()));
60 Q_ASSERT(check);
61 check = connect(m_Channel.data(), SIGNAL(sigError(int, const QString&)),
62 this, SLOT(slotError(int, const QString&)));
63 Q_ASSERT(check);
64
65 m_InputDevice = CInputDevice::GenerateObject();
66}
67
68CConnection::~CConnection()
69{

Callers

nothing calls this directly

Calls 1

dataMethod · 0.45

Tested by

no test coverage detected