From e89735b35cc1c71d21fe9361a8568365175e2d9c Mon Sep 17 00:00:00 2001 From: wang fei Date: Fri, 28 Oct 2022 17:07:00 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E4=BF=AE=E5=A4=8Ddde-osd=E7=9A=84GetC?= =?UTF-8?q?apabilities=E6=8E=A5=E5=8F=A3=E8=B0=83=E7=94=A8=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 接口名称未对应,GetCapbilities书写错误, dbus调用失败 Log: 修复dde-osd的GetCapabilities接口调用失败的问题 Influence: dde-osd的GetCapabilities --- dde-osd/notification/notifications_dbus_adaptor.cpp | 4 ++-- dde-osd/notification/notifications_dbus_adaptor.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dde-osd/notification/notifications_dbus_adaptor.cpp b/dde-osd/notification/notifications_dbus_adaptor.cpp index 56cbf0575..edfe23fe6 100644 --- a/dde-osd/notification/notifications_dbus_adaptor.cpp +++ b/dde-osd/notification/notifications_dbus_adaptor.cpp @@ -136,11 +136,11 @@ QStringList DDENotifyDBus::GetAppList() return out0; } -QStringList DDENotifyDBus::GetCapbilities() +QStringList DDENotifyDBus::GetCapabilities() { // handle method call com.deepin.dde.Notification.GetCapbilities QStringList out0; - QMetaObject::invokeMethod(parent(), "GetCapbilities", Q_RETURN_ARG(QStringList, out0)); + QMetaObject::invokeMethod(parent(), "GetCapabilities", Q_RETURN_ARG(QStringList, out0)); return out0; } diff --git a/dde-osd/notification/notifications_dbus_adaptor.h b/dde-osd/notification/notifications_dbus_adaptor.h index 8be3e25ea..679fb08e3 100644 --- a/dde-osd/notification/notifications_dbus_adaptor.h +++ b/dde-osd/notification/notifications_dbus_adaptor.h @@ -66,7 +66,7 @@ class DDENotifyDBus: public QDBusAbstractAdaptor " \n" " \n" " \n" -" \n" +" \n" " \n" " \n" " \n" @@ -198,7 +198,7 @@ public Q_SLOTS: // METHODS QString GetAllRecords(); QDBusVariant GetAppInfo(const QString &in0, uint in1); QStringList GetAppList(); - QStringList GetCapbilities(); + QStringList GetCapabilities(); QString GetRecordById(const QString &in0); QString GetRecordsFromId(int in0, const QString &in1); QString GetServerInformation(QString &out1, QString &out2, QString &out3);