chore: V23接口改造适配

V23接口改造适配

Log: V23接口改造适配
Influence: 无
Task: https://pms.uniontech.com/task-view-207483.html
Change-Id: I91e7c2807c168e87781e18aedc7aec887702ae13
This commit is contained in:
tanfeng
2022-11-17 17:25:20 +08:00
committed by fanpengcheng
parent d1fe32c13e
commit e4f4a47b87
42 changed files with 147 additions and 142 deletions

View File

@ -27,8 +27,8 @@
#include <QDBusInterface>
#include <QDBusConnectionInterface>
const QString syncDBusService = "org.deepin.sync.Config1";
const QString syncDBusObject = "/org/deepin/sync/Config1";
const QString syncDBusService = "org.deepin.dde.Sync1.Config";
const QString syncDBusObject = "/org/deepin/dde/Sync1/Config";
const QString syncDBusDaemonService = "com.deepin.sync.Daemon";
const QString syncDBusDaemonObject = "/com/deepin/sync/Daemon";
const QString syncDBusDaemonInterface = syncDBusDaemonService;
@ -82,13 +82,13 @@ SynConfig::SynConfig(QObject *parent)
QDBusConnection con = QDBusConnection::sessionBus();
if (!con.registerService(syncDBusService))
{
qCritical() << "register service org.deepin.sync.Config1 error:" << con.lastError().message();
qCritical() << "register service org.deepin.dde.Sync1.Config error:" << con.lastError().message();
return;
}
if (!con.registerObject(syncDBusObject, this, QDBusConnection::ExportAllSlots | QDBusConnection::ExportAllSignals))
{
qCritical() << "register object /org/deepin/sync/Config1 error:" << con.lastError().message();
qCritical() << "register object /org/deepin/dde/Sync1/Config error:" << con.lastError().message();
return;
}

View File

@ -30,7 +30,7 @@
class SynConfig final : public QObject
{
Q_OBJECT
Q_CLASSINFO("D-Bus Interface", "org.deepin.sync.Config1")
Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.Sync1.Config")
public:
// 实例
static SynConfig *instance(QObject *parent = nullptr);