/*
 * 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-0.4.0/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 __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)
    inline uint backendFeatures()
    { return qvariant_cast< uint >(internalPropGet("BackendFeatures", &m_BackendFeatures)); }

    Q_PROPERTY(QString BackendName READ backendName NOTIFY BackendNameChanged)
    inline QString backendName()
    { return qvariant_cast< QString >(internalPropGet("BackendName", &m_BackendName)); }

    Q_PROPERTY(QString BackendVersion READ backendVersion NOTIFY BackendVersionChanged)
    inline QString backendVersion()
    { return qvariant_cast< QString >(internalPropGet("BackendVersion", &m_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 QDBusPendingReply<> RevokeTemporaryAuthorizationById(const QString &id)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(id);
        return asyncCallWithArgumentList(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;

// begin private slots
private Q_SLOTS:
    void onPropertyChanged(const QString &propName, const QVariant &value);

// begin private member vaiables
private:
    uint m_BackendFeatures;
    QString m_BackendName;
    QString m_BackendVersion;
};

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