MCPcopy Create free account
hub / github.com/baumgarr/nixnote2 / initDbus

Method initDbus

filters/remotequery.cpp:37–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35
36
37void RemoteQuery::initDbus() {
38 return;
39 QLOG_DEBUG() << "inside InitDbus()";
40 if (!QDBusConnection::sessionBus().isConnected()) {
41 return;
42 }
43 QLOG_DEBUG() << "registerintg service()";
44 if (!QDBusConnection::sessionBus().registerService(DBUS_SERVICE_NAME)) {
45 fprintf(stderr, "%s\n",
46 qPrintable(QDBusConnection::sessionBus().lastError().message()));
47 exit(1);
48 }
49 QLOG_DEBUG() << "Registering object";
50 QDBusConnection::sessionBus().registerObject("/com/canonical/unity/scope/notes/NixNote/RemoteQuery", this, QDBusConnection::ExportAllSlots);
51 QLOG_DEBUG() << "leavining init";
52}
53
54
55Q_SCRIPTABLE bool RemoteQuery::setNote(qint32 lid) {

Callers 1

RemoteQueryMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected