| 30 | using namespace GammaRay; |
| 31 | |
| 32 | RemoteViewServer::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 | |
| 52 | void RemoteViewServer::setEventReceiver(EventReceiver *receiver) |
| 53 | { |
nothing calls this directly
no test coverage detected