/*
 * This file was generated by qdbusxml2cpp version 0.8
 * Command line was: qdbusxml2cpp com.kylin.AppManager.xml -p appmanagerinterface -c AppManagerInterface
 *
 * qdbusxml2cpp is Copyright (C) 2020 The Qt Company Ltd.
 *
 * This is an auto-generated file.
 * Do not edit! All changes made to it will be lost.
 */

#ifndef APPMANAGERINTERFACE_H
#define APPMANAGERINTERFACE_H

#include <QtCore/QObject>
#include <QtCore/QByteArray>
#include <QtCore/QList>
#include <QtCore/QMap>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QVariant>
#include <QtDBus/QtDBus>

/*
 * Proxy class for interface com.kylin.AppManager
 */
class AppManagerInterface: public QDBusAbstractInterface
{
    Q_OBJECT
public:
    static inline const char *staticInterfaceName()
    { return "com.kylin.AppManager"; }

public:
    AppManagerInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = nullptr);

    ~AppManagerInterface();

public Q_SLOTS: // METHODS
    inline QDBusPendingReply<bool> AddToWhiteList(const QString &desktopFile, const QString &option)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(desktopFile) << QVariant::fromValue(option);
        return asyncCallWithArgumentList(QStringLiteral("AddToWhiteList"), argumentList);
    }

    inline QDBusPendingReply<QString> AppDesktopFileNameByPid(qlonglong pid)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(pid);
        return asyncCallWithArgumentList(QStringLiteral("AppDesktopFileNameByPid"), argumentList);
    }

    inline QDBusPendingReply<QStringList> AppWhiteList(const QString &option)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(option);
        return asyncCallWithArgumentList(QStringLiteral("AppWhiteList"), argumentList);
    }

    inline QDBusPendingReply<bool> LaunchApp(const QString &desktopFile)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(desktopFile);
        return asyncCallWithArgumentList(QStringLiteral("LaunchApp"), argumentList);
    }

    inline QDBusPendingReply<bool> LaunchAppWithArguments(const QString &desktopFile, const QStringList &args)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(desktopFile) << QVariant::fromValue(args);
        return asyncCallWithArgumentList(QStringLiteral("LaunchAppWithArguments"), argumentList);
    }

    inline QDBusPendingReply<bool> RemoveFromWhiteList(const QString &desktopFile, const QString &option)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(desktopFile) << QVariant::fromValue(option);
        return asyncCallWithArgumentList(QStringLiteral("RemoveFromWhiteList"), argumentList);
    }

    inline QDBusPendingReply<> SetPowerSavingModeEnable(bool enable)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(enable);
        return asyncCallWithArgumentList(QStringLiteral("SetPowerSavingModeEnable"), argumentList);
    }

    inline QDBusPendingReply<QStringList> WhiteListsOfApp(const QString &desktopFile)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(desktopFile);
        return asyncCallWithArgumentList(QStringLiteral("WhiteListsOfApp"), argumentList);
    }

Q_SIGNALS: // SIGNALS
};

namespace com {
  namespace kylin {
    typedef ::AppManagerInterface AppManager;
  }
}
#endif
