/* * Copyright (C) 2022 ~ 2022 Deepin Technology Co., Ltd. * * Author: donghualin * * Maintainer: donghualin * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #ifndef DBUSUTIL_H #define DBUSUTIL_H #ifdef USE_AM #include "dockinterface.h" #include "entryinterface.h" #else #include #include #endif #ifdef USE_AM using DockInter = org::deepin::dde::daemon::DdeDock; using DockEntryInter = org::deepin::dde::daemon::dock::DockEntry; const QString xEventMonitorService = "org.deepin.api.XEventMonitor1"; const QString xEventMonitorPath = "/org/deepin/api/XEventMonitor1"; const QString launcherService = "org.deepin.dde.Launcher1"; const QString launcherPath = "/org/deepin/dde/Launcher1"; const QString launcherInterface = "org.deepin.dde.Launcher1"; const QString controllCenterService = "org.deepin.dde.ControlCenter1"; const QString controllCenterPath = "/org/deepin/dde/ControlCenter1"; const QString controllCenterInterface = "org.deepin.dde.ControlCenter1"; const QString notificationService = "com.deepin.dde.Notification"; const QString notificationPath = "/com/deepin/dde/Notification"; const QString notificationInterface = "com.deepin.dde.Notification"; const QString sessionManagerService = "com.deepin.SessionManager"; const QString sessionManagerPath = "/com/deepin/SessionManager"; const QString sessionManagerInterface = "com.deepin.SessionManager"; #else using DockInter = com::deepin::dde::daemon::Dock; using DockEntryInter = com::deepin::dde::daemon::dock::Entry; const QString xEventMonitorService = "com.deepin.api.XEventMonitor"; const QString xEventMonitorPath = "/com/deepin/api/XEventMonitor"; const QString launcherService = "com.deepin.dde.Launcher"; const QString launcherPath = "/com/deepin/dde/Launcher"; const QString launcherInterface = "com.deepin.dde.Launcher"; const QString controllCenterService = "com.deepin.dde.ControlCenter"; const QString controllCenterPath = "/com/deepin/dde/ControlCenter"; const QString controllCenterInterface = "com.deepin.dde.ControlCenter"; const QString notificationService = "com.deepin.dde.Notification"; const QString notificationPath = "/com/deepin/dde/Notification"; const QString notificationInterface = "com.deepin.dde.Notification"; const QString sessionManagerService = "com.deepin.SessionManager"; const QString sessionManagerPath = "/com/deepin/SessionManager"; const QString sessionManagerInterface = "com.deepin.SessionManager"; #endif inline const QString dockServiceName() { #ifdef USE_AM return QString("org.deepin.dde.daemon.Dock1"); #else return QString("com.deepin.dde.daemon.Dock"); #endif } inline const QString dockServicePath() { #ifdef USE_AM return QString("/org/deepin/dde/daemon/Dock1"); #else return QString("/com/deepin/dde/daemon/Dock"); #endif } #endif // DBUSUTIL_H