/*
 * This file was generated by qdbusxml2cpp-fix version 0.8
 * Command line was: qdbusxml2cpp-fix -c ResourceManager -p generated/com_deepin_daemon_resourcemanager ../xml/com.deepin.daemon.ResourceManager.xml
 *
 * qdbusxml2cpp-fix is Copyright (C) 2016 Deepin Technology Co., Ltd.
 *
 * This is an auto-generated file.
 * Do not edit! All changes made to it will be lost.
 */

#ifndef COM_DEEPIN_DAEMON_RESOURCEMANAGER_H
#define COM_DEEPIN_DAEMON_RESOURCEMANAGER_H

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

#include <DBusExtendedAbstractInterface>
#include <QtDBus/QtDBus>


/*
 * Proxy class for interface com.deepin.daemon.ResourceManager
 */
class __ResourceManagerPrivate;
class __ResourceManager : public DBusExtendedAbstractInterface
{
    Q_OBJECT

public:
    static inline const char *staticInterfaceName()
    { return "com.deepin.daemon.ResourceManager"; }

public:
    explicit __ResourceManager(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = 0);

    ~__ResourceManager();

public Q_SLOTS: // METHODS
    inline QDBusPendingReply<> AllowRequest(const QString &uuid, const QString &msg, bool allow)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(uuid) << QVariant::fromValue(msg) << QVariant::fromValue(allow);
        return asyncCallWithArgumentList(QStringLiteral("AllowRequest"), argumentList);
    }

    inline void AllowRequestQueued(const QString &uuid, const QString &msg, bool allow)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(uuid) << QVariant::fromValue(msg) << QVariant::fromValue(allow);

        CallQueued(QStringLiteral("AllowRequest"), argumentList);
    }


    inline QDBusPendingReply<QString> Subscribe(int pid, const QString &cmd, const QList <int > &interest, bool force)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(pid) << QVariant::fromValue(cmd) << QVariant::fromValue(interest) << QVariant::fromValue(force);
        return asyncCallWithArgumentList(QStringLiteral("Subscribe"), argumentList);
    }



    inline QDBusPendingReply<QString> SubscribeControl(int pid, const QString &cmd, const QString &name, const QList <int > &interest)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(pid) << QVariant::fromValue(cmd) << QVariant::fromValue(name) << QVariant::fromValue(interest);
        return asyncCallWithArgumentList(QStringLiteral("SubscribeControl"), argumentList);
    }



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

    inline void UnsubscribeQueued(const QString &uuid)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(uuid);

        CallQueued(QStringLiteral("Unsubscribe"), argumentList);
    }



Q_SIGNALS: // SIGNALS
    void Notification(const QStringList &subscribers, const QString &msg);
    void Request(const QStringList &subscribers, const QString &msg);
    // begin property changed signals

public Q_SLOTS:
    void CallQueued(const QString &callName, const QList<QVariant> &args);

private Q_SLOTS:
    void onPendingCallFinished(QDBusPendingCallWatcher *w);

private:
    __ResourceManagerPrivate *d_ptr;
};

namespace com {
  namespace deepin {
    namespace daemon {
      typedef ::__ResourceManager ResourceManager;
    }
  }
}
#endif
