/*
 * This file was generated by qdbusxml2cpp version 0.8
 * Command line was: qdbusxml2cpp -a appmanagerservice -c AppManagerService com.kylin.AppManager.xml
 *
 * qdbusxml2cpp is Copyright (C) 2020 The Qt Company Ltd.
 *
 * This is an auto-generated file.
 * This file may have been hand-edited. Look for HAND-EDIT comments
 * before re-generating it.
 */

#ifndef APPMANAGERSERVICE_H
#define APPMANAGERSERVICE_H

#include <QtCore/QObject>
#include <QtDBus/QtDBus>
QT_BEGIN_NAMESPACE
class QByteArray;
template<class T> class QList;
template<class Key, class Value> class QMap;
class QString;
class QStringList;
class QVariant;
QT_END_NAMESPACE

/*
 * Adaptor class for interface com.kylin.AppManager
 */
class AppManagerService: public QDBusAbstractAdaptor
{
    Q_OBJECT
    Q_CLASSINFO("D-Bus Interface", "com.kylin.AppManager")
    Q_CLASSINFO("D-Bus Introspection", ""
"  <interface name=\"com.kylin.AppManager\">\n"
"    <method name=\"LaunchApp\">\n"
"      <arg direction=\"in\" type=\"s\" name=\"desktopFile\"/>\n"
"      <arg direction=\"out\" type=\"b\" name=\"succeed\"/>\n"
"    </method>\n"
"    <method name=\"ActiveProcessByWid\">\n"
"      <arg direction=\"in\" type=\"u\" name=\"wid\"/>\n"
"      <arg direction=\"out\" type=\"b\" name=\"succeed\"/>\n"
"    </method>\n"
"    <method name=\"LaunchAppWithArguments\">\n"
"      <arg direction=\"in\" type=\"s\" name=\"desktopFile\"/>\n"
"      <arg direction=\"in\" type=\"as\" name=\"args\"/>\n"
"      <arg direction=\"out\" type=\"b\" name=\"succeed\"/>\n"
"    </method>\n"
"    <method name=\"LaunchDefaultAppWithUrl\">\n"
"      <arg direction=\"in\" type=\"s\" name=\"url\"/>\n"
"      <arg direction=\"out\" type=\"b\" name=\"succeed\"/>\n"
"    </method>\n"
"    <method name=\"LaunchXdgFile\">\n"
"      <arg direction=\"in\" type=\"s\" name=\"desktopFile\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"file\"/>\n"
"      <arg direction=\"out\" type=\"b\" name=\"succeed\"/>\n"
"    </method>\n"
"    <method name=\"AppDesktopFileNameByPid\">\n"
"      <arg direction=\"in\" type=\"x\" name=\"pid\"/>\n"
"      <arg direction=\"out\" type=\"s\" name=\"desktopFileName\"/>\n"
"    </method>\n"
"    <method name=\"AppDesktopFileNameByWid\">\n"
"      <arg direction=\"in\" type=\"x\" name=\"wid\"/>\n"
"      <arg direction=\"out\" type=\"s\" name=\"desktopFileName\"/>\n"
"    </method>\n"
"    <method name=\"SetPowerSavingModeEnable\">\n"
"      <arg direction=\"in\" type=\"b\" name=\"enable\"/>\n"
"    </method>\n"
"    <method name=\"AddToWhiteList\">\n"
"      <arg direction=\"in\" type=\"s\" name=\"desktopFile\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"option\"/>\n"
"      <arg direction=\"out\" type=\"b\" name=\"succeed\"/>\n"
"    </method>\n"
"    <method name=\"RemoveFromWhiteList\">\n"
"      <arg direction=\"in\" type=\"s\" name=\"desktopFile\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"option\"/>\n"
"      <arg direction=\"out\" type=\"b\" name=\"succeed\"/>\n"
"    </method>\n"
"    <method name=\"WhiteListsOfApp\">\n"
"      <arg direction=\"in\" type=\"s\" name=\"desktopFile\"/>\n"
"      <arg direction=\"out\" type=\"as\" name=\"whiteLists\"/>\n"
"    </method>\n"
"    <signal name=\"startSuccess\"/>\n"
"    <signal name=\"startFailed\"/>\n"
"  </interface>\n"
        "")
public:
    AppManagerService(QObject *parent);
    virtual ~AppManagerService();

public: // PROPERTIES
public Q_SLOTS: // METHODS
    bool ActiveProcessByWid(uint wid);
    bool AddToWhiteList(const QString &desktopFile, const QString &option);
    QString AppDesktopFileNameByPid(qlonglong pid);
    QString AppDesktopFileNameByWid(qlonglong wid);
    bool LaunchApp(const QString &desktopFile);
    bool LaunchAppWithArguments(const QString &desktopFile, const QStringList &args);
    bool LaunchDefaultAppWithUrl(const QString &url);
    bool LaunchXdgFile(const QString &desktopFile, const QString &file);
    bool RemoveFromWhiteList(const QString &desktopFile, const QString &option);
    void SetPowerSavingModeEnable(bool enable);
    QStringList WhiteListsOfApp(const QString &desktopFile);
Q_SIGNALS: // SIGNALS
    void startFailed();
    void startSuccess();
};

#endif
