fix: 修改对老插件的兼容性问题

所有插件的api版本都改成2.0.0,PluginProxyInterface新增的接口放到最后的位置,保证老插件在加载的时候能调用到正确的函数

Log: 修改老插件的兼容性问题
Influence: 任务栏加载老插件
Bug: https://pms.uniontech.com/bug-view-132961.html
Change-Id: I0c2714db6a21f2d246126ce2d9cec96e8c706d80
This commit is contained in:
donghualin 2022-06-01 21:33:50 +08:00
parent 461ece4bd7
commit e714c7e44e
17 changed files with 27 additions and 21 deletions

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
dde-dock (6.0.0.1) unstable; urgency=low
* release Tag 6.0.0.1
-- donghualin <donghualin@uniontech.com> Wed, 1 June 2022 21:34:29 +0800
dde-dock (6.0.0.0) unstable; urgency=low
* release Tag 6.0.0.0

View File

@ -27,7 +27,7 @@
namespace Dock {
#define DOCK_PLUGIN_MIME "dock/plugin"
#define DOCK_PLUGIN_API_VERSION "1.2.3"
#define DOCK_PLUGIN_API_VERSION "2.0.0"
#define PROP_DISPLAY_MODE "DisplayMode"

View File

@ -60,12 +60,6 @@ public:
///
virtual void itemRemoved(PluginsItemInterface * const itemInter, const QString &itemKey) = 0;
///
/// update display or information
///
///
virtual void updateDockInfo(const DockPart &) = 0;
///
/// \brief requestContextMenu
/// request show context menu
@ -102,6 +96,12 @@ public:
/// SeeAlse: saveValue
///
virtual void removeValue(PluginsItemInterface *const itemInter, const QStringList &keyList) = 0;
///
/// update display or information
///
///
virtual void updateDockInfo(const DockPart &) = 0;
};
#endif // PLUGINPROXYINTERFACE_H

View File

@ -1,4 +1,4 @@
{
"api": "1.1.1",
"api": "2.0.0",
"depends-daemon-dbus-service": ""
}

View File

@ -1,4 +1,4 @@
{
"api": "1.1.1",
"api": "2.0.0",
"depends-daemon-dbus-service": "com.deepin.daemon.Bluetooth"
}

View File

@ -1,4 +1,4 @@
{
"api": "1.2.3",
"api": "2.0.0",
"depends-daemon-dbus-service": "com.deepin.daemon.Timedate"
}

View File

@ -1,3 +1,3 @@
{
"api": "1.1.1"
"api": "2.0.0"
}

View File

@ -1,3 +1,3 @@
{
"api": "1.1.1"
"api": "2.0.0"
}

View File

@ -1,3 +1,3 @@
{
"api": "1.2.2"
"api": "2.0.0"
}

View File

@ -1,3 +1,3 @@
{
"api": "1.1.1"
"api": "2.0.0"
}

View File

@ -1,3 +1,3 @@
{
"api": "1.1.1"
"api": "2.0.0"
}

View File

@ -1,4 +1,4 @@
{
"api": "1.1.1",
"api": "2.0.0",
"depends-daemon-dbus-service": "com.deepin.daemon.Power"
}

View File

@ -1,3 +1,3 @@
{
"api": "1.2.2"
"api": "2.0.0"
}

View File

@ -1,3 +1,3 @@
{
"api": "1.1.1"
"api": "2.0.0"
}

View File

@ -1,4 +1,4 @@
{
"api": "1.1.1",
"api": "2.0.0",
"depends-daemon-dbus-service": "com.deepin.daemon.Audio"
}

View File

@ -1,3 +1,3 @@
{
"api": "1.1.1"
"api": "2.0.0"
}

View File

@ -1,4 +1,4 @@
{
"api": "1.1.1",
"api": "2.0.0",
"depends-daemon-dbus-service": "com.deepin.dde.TrayManager"
}