/*
 * This file was generated by qdbusxml2cpp-fix version 0.8
 * Command line was: qdbusxml2cpp-fix -c PolicyKit1 -p generated/org_freedesktop_policykit1 /build/deepin-qt-dbus-factory/src/dde-qt-dbus-factory-1.0.6/xml/org.freedesktop.PolicyKit1.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 ORG_FREEDESKTOP_POLICYKIT1_H
#define ORG_FREEDESKTOP_POLICYKIT1_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 org.freedesktop.PolicyKit1.Authority
 */
class __PolicyKit1Private;
class __PolicyKit1 : public DBusExtendedAbstractInterface
{
    Q_OBJECT

public:
    static inline const char *staticInterfaceName()
    { return "org.freedesktop.PolicyKit1.Authority"; }

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

    ~__PolicyKit1();

    Q_PROPERTY(uint BackendFeatures READ backendFeatures NOTIFY BackendFeaturesChanged)
    uint backendFeatures();

    Q_PROPERTY(QString BackendName READ backendName NOTIFY BackendNameChanged)
    QString backendName();

    Q_PROPERTY(QString BackendVersion READ backendVersion NOTIFY BackendVersionChanged)
    QString backendVersion();

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

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

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


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

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

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



Q_SIGNALS: // SIGNALS
    void Changed();
    // begin property changed signals
    void BackendFeaturesChanged(uint  value) const;
    void BackendNameChanged(const QString & value) const;
    void BackendVersionChanged(const QString & value) const;

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

private Q_SLOTS:
    void onPendingCallFinished(QDBusPendingCallWatcher *w);
    void onPropertyChanged(const QString &propName, const QVariant &value);

private:
    __PolicyKit1Private *d_ptr;
};

namespace org {
  namespace freedesktop {
    namespace policykit1 {
      typedef ::__PolicyKit1 Authority;
    }
  }
}
#endif
