/*
 * 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.
 * Do not edit! All changes made to it will be lost.
 */

#include "appmanagerservice.h"
#include <QtCore/QMetaObject>
#include <QtCore/QByteArray>
#include <QtCore/QList>
#include <QtCore/QMap>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QVariant>

/*
 * Implementation of adaptor class AppManagerService
 */

AppManagerService::AppManagerService(QObject *parent)
    : QDBusAbstractAdaptor(parent)
{
    // constructor
    setAutoRelaySignals(true);
}

AppManagerService::~AppManagerService()
{
    // destructor
}

bool AppManagerService::ActiveProcessByWid(uint wid)
{
    // handle method call com.kylin.AppManager.ActiveProcessByWid
    bool succeed;
    QMetaObject::invokeMethod(parent(), "ActiveProcessByWid", Q_RETURN_ARG(bool, succeed), Q_ARG(uint, wid));
    return succeed;
}

bool AppManagerService::AddToWhiteList(const QString &desktopFile, const QString &option)
{
    // handle method call com.kylin.AppManager.AddToWhiteList
    bool succeed;
    QMetaObject::invokeMethod(parent(), "AddToWhiteList", Q_RETURN_ARG(bool, succeed), Q_ARG(QString, desktopFile), Q_ARG(QString, option));
    return succeed;
}

QString AppManagerService::AppDesktopFileNameByPid(qlonglong pid)
{
    // handle method call com.kylin.AppManager.AppDesktopFileNameByPid
    QString desktopFileName;
    QMetaObject::invokeMethod(parent(), "AppDesktopFileNameByPid", Q_RETURN_ARG(QString, desktopFileName), Q_ARG(qlonglong, pid));
    return desktopFileName;
}

QString AppManagerService::AppDesktopFileNameByWid(qlonglong wid)
{
    // handle method call com.kylin.AppManager.AppDesktopFileNameByWid
    QString desktopFileName;
    QMetaObject::invokeMethod(parent(), "AppDesktopFileNameByWid", Q_RETURN_ARG(QString, desktopFileName), Q_ARG(qlonglong, wid));
    return desktopFileName;
}

bool AppManagerService::LaunchApp(const QString &desktopFile)
{
    // handle method call com.kylin.AppManager.LaunchApp
    bool succeed;
    QMetaObject::invokeMethod(parent(), "LaunchApp", Q_RETURN_ARG(bool, succeed), Q_ARG(QString, desktopFile));
    return succeed;
}

bool AppManagerService::LaunchAppWithArguments(const QString &desktopFile, const QStringList &args)
{
    // handle method call com.kylin.AppManager.LaunchAppWithArguments
    bool succeed;
    QMetaObject::invokeMethod(parent(), "LaunchAppWithArguments", Q_RETURN_ARG(bool, succeed), Q_ARG(QString, desktopFile), Q_ARG(QStringList, args));
    return succeed;
}

bool AppManagerService::LaunchDefaultAppWithUrl(const QString &url)
{
    // handle method call com.kylin.AppManager.LaunchDefaultAppWithUrl
    bool succeed;
    QMetaObject::invokeMethod(parent(), "LaunchDefaultAppWithUrl", Q_RETURN_ARG(bool, succeed), Q_ARG(QString, url));
    return succeed;
}

bool AppManagerService::LaunchXdgFile(const QString &desktopFile, const QString &file)
{
    // handle method call com.kylin.AppManager.LaunchXdgFile
    bool succeed;
    QMetaObject::invokeMethod(parent(), "LaunchXdgFile", Q_RETURN_ARG(bool, succeed), Q_ARG(QString, desktopFile), Q_ARG(QString, file));
    return succeed;
}

bool AppManagerService::RemoveFromWhiteList(const QString &desktopFile, const QString &option)
{
    // handle method call com.kylin.AppManager.RemoveFromWhiteList
    bool succeed;
    QMetaObject::invokeMethod(parent(), "RemoveFromWhiteList", Q_RETURN_ARG(bool, succeed), Q_ARG(QString, desktopFile), Q_ARG(QString, option));
    return succeed;
}

void AppManagerService::SetPowerSavingModeEnable(bool enable)
{
    // handle method call com.kylin.AppManager.SetPowerSavingModeEnable
    QMetaObject::invokeMethod(parent(), "SetPowerSavingModeEnable", Q_ARG(bool, enable));
}

QStringList AppManagerService::WhiteListsOfApp(const QString &desktopFile)
{
    // handle method call com.kylin.AppManager.WhiteListsOfApp
    QStringList whiteLists;
    QMetaObject::invokeMethod(parent(), "WhiteListsOfApp", Q_RETURN_ARG(QStringList, whiteLists), Q_ARG(QString, desktopFile));
    return whiteLists;
}

