feat: add desktopfilegenerator and method addUserApplication

1. change type of ActionName to 'a{sa{ss}}'
2. refactor the method of serialization

Signed-off-by: ComixHe <heyuming@deepin.org>
This commit is contained in:
ComixHe
2023-10-16 14:39:20 +08:00
committed by Comix
parent b71ceb5fc1
commit 1f73eea404
15 changed files with 458 additions and 41 deletions

View File

@ -20,7 +20,7 @@
class ApplicationService;
class ApplicationManager1Service final : public QObject
class ApplicationManager1Service final : public QObject, public QDBusContext
{
Q_OBJECT
public:
@ -54,6 +54,7 @@ public Q_SLOTS:
QDBusObjectPath &instance,
ObjectInterfaceMap &application_instance_info) const noexcept;
void ReloadApplications();
QString addUserApplication(const QVariantMap &desktop_file, const QString &name) noexcept;
[[nodiscard]] ObjectMap GetManagedObjects() const;
Q_SIGNALS: