/
NeoChapay
/
telegraf
Обзор
Документация
Войти
/
NeoChapay
/
telegraf
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
src/dbusinterface.cpp
31 строка
890 B
Mikhail Barashkov
refactor: remove standard comments from header of all source files
07 сен 2024, 14:40
07 сен 2024, 14:40
c79ea8f
Код
Авторство
О чём код?
#include "dbusinterface.h" #define DEBUG_MODULE DBusInterface #include "debuglog.h" DBusInterface::DBusInterface(QObject *parent) : QObject(parent) { LOG("Initializing D-BUS connectivity"); this->dbusAdaptor = new DBusAdaptor(this); QDBusConnection sessionBusConnection = QDBusConnection::sessionBus(); if (!sessionBusConnection.isConnected()) { WARN("Error connecting to D-BUS"); return; } if (!sessionBusConnection.registerObject(PATH_NAME, this)) { WARN("Error registering root object to D-BUS" << sessionBusConnection.lastError().message()); return; } if (!sessionBusConnection.registerService(INTERFACE_NAME)) { WARN("Error registering interface to D-BUS" << sessionBusConnection.lastError().message()); return; } } DBusAdaptor *DBusInterface::getDBusAdaptor() { return this->dbusAdaptor; }