| 35 | |
| 36 | |
| 37 | void 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 | |
| 55 | Q_SCRIPTABLE bool RemoteQuery::setNote(qint32 lid) { |