chore: V23接口改造适配
V23接口改造适配 Log: V23接口改造适配 Influence: 无 Task: https://pms.uniontech.com/task-view-207483.html Change-Id: I91e7c2807c168e87781e18aedc7aec887702ae13
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user