MCPcopy Create free account
hub / github.com/KDAB/GammaRay / RemoteViewServer

Method RemoteViewServer

core/remoteviewserver.cpp:32–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30using namespace GammaRay;
31
32RemoteViewServer::RemoteViewServer(const QString &name, QObject *parent)
33 : RemoteViewInterface(name, parent)
34 , m_eventReceiver(nullptr)
35 , m_updateTimer(new QTimer(this))
36 , m_clientActive(false)
37 , m_sourceChanged(false)
38 , m_clientReady(true)
39 , m_grabberReady(true)
40 , m_pendingReset(false)
41 , m_pendingCompleteFrame(false)
42{
43 Server::instance()->registerMonitorNotifier(Endpoint::instance()->objectAddress(
44 name),
45 this, "clientConnectedChanged");
46
47 m_updateTimer->setSingleShot(true);
48 m_updateTimer->setInterval(10);
49 connect(m_updateTimer, &QTimer::timeout, this, &RemoteViewServer::requestUpdateTimeout);
50}
51
52void RemoteViewServer::setEventReceiver(EventReceiver *receiver)
53{

Callers

nothing calls this directly

Calls 2

objectAddressMethod · 0.80

Tested by

no test coverage detected