#ifndef DBUSADAPTORLAUNCHER_H #define DBUSADAPTORLAUNCHER_H #include "launcher.h" #include #include #include #include #include #include #include #include #include #include /* * Adaptor class for interface org.deepin.dde.daemon.Launcher1 */ class DBusAdaptorLauncher: public QDBusAbstractAdaptor { Q_OBJECT Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.daemon.Launcher1") Q_CLASSINFO("D-Bus Introspection", "" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" "") public: DBusAdaptorLauncher(QObject *parent); virtual ~DBusAdaptorLauncher(); Launcher *parent() const; public: // PROPERTIES Q_PROPERTY(int DisplayMode READ displayMode WRITE setDisplayMode NOTIFY DisplayModeChanged) int displayMode() const; void setDisplayMode(int value); Q_PROPERTY(bool Fullscreen READ fullscreen WRITE setFullscreen NOTIFY FullScreenChanged) bool fullscreen() const; void setFullscreen(bool value); public Q_SLOTS: // METHODS bool AddAutostart(const QString &desktopFile); QString GetAllItemInfos(); QStringList GetAllNewInstalledApps(); bool GetDisableScaling(const QString &id); QString GetItemInfo(const QString &id); bool GetUseProxy(const QString &id); bool IsItemOnDesktop(const QString &id); bool LaunchWithTimestamp(const QString &desktopFile, int time); bool RemoveAutostart(const QString &desktopFile); bool RequestRemoveFromDesktop(const QString &id); bool RequestSendToDesktop(const QString &id); void RequestUninstall(const QString &id); void SetDisableScaling(const QString &id, bool value); void SetUseProxy(const QString &id, bool value); Q_SIGNALS: // SIGNALS void ItemChanged(const QString &status, const QString &itemInfo, qlonglong categoryID); void NewAppLaunched(const QString &appID); void UninstallFailed(const QString &appId, const QString &errMsg); void UninstallSuccess(const QString &appID); void DisplayModeChanged(int mode); void FullScreenChanged(bool isFull); }; #endif