dde-dock/frame/util/dbusutil.h
donghualin 29647bf7a1 fix: 修改v20的接口为v23的接口
将所有用到的com.deepin相关的接口改成org.deepin相关的接口

Log:
Influence: 打开控制中心,鼠标移动唤醒任务栏等操作
Task: https://pms.uniontech.com/task-view-182009.html
Change-Id: I3c56dfaa0e95d03fc75468e0a7a5d2ce217a6e63
2022-08-26 13:55:14 +00:00

97 lines
3.4 KiB
C

/*
* Copyright (C) 2022 ~ 2022 Deepin Technology Co., Ltd.
*
* Author: donghualin <donghualin@uniontech.com>
*
* Maintainer: donghualin <donghualin@uniontech.com>
*
* 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 <http://www.gnu.org/licenses/>.
*/
#ifndef DBUSUTIL_H
#define DBUSUTIL_H
#ifdef USE_AM
#include "dockinterface.h"
#include "entryinterface.h"
#else
#include <com_deepin_dde_daemon_dock.h>
#include <com_deepin_dde_daemon_dock_entry.h>
#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 = "org.deepin.dde.Notification1";
const QString notificationPath = "/org/deepin/dde/Notification1";
const QString notificationInterface = "org.deepin.dde.Notification1";
const QString sessionManagerService = "org.deepin.SessionManager1";
const QString sessionManagerPath = "/org/deepin/SessionManager1";
const QString sessionManagerInterface = "org.deepin.SessionManager1";
#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