/*
 * This file was generated by qdbusxml2cpp-fix version 0.8
 * Command line was: qdbusxml2cpp-fix -c Updater -p generated/com_deepin_lastore_updater ../xml/com.deepin.lastore.Updater.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_LASTORE_UPDATER_H
#define COM_DEEPIN_LASTORE_UPDATER_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>

#include "types/appupdateinfolist.h"
#include "types/mirrorinfolist.h"
#include "types/lastoreupdatepackagesinfo.h"

/*
 * Proxy class for interface com.deepin.lastore.Updater
 */
class __UpdaterPrivate;
class __Updater : public DBusExtendedAbstractInterface
{
    Q_OBJECT

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

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

    ~__Updater();

    Q_PROPERTY(bool AutoCheckUpdates READ autoCheckUpdates NOTIFY AutoCheckUpdatesChanged)
    bool autoCheckUpdates();

    Q_PROPERTY(bool AutoDownloadUpdates READ autoDownloadUpdates NOTIFY AutoDownloadUpdatesChanged)
    bool autoDownloadUpdates();

    Q_PROPERTY(qulonglong AutoInstallUpdateType READ autoInstallUpdateType NOTIFY AutoInstallUpdateTypeChanged)
    qulonglong autoInstallUpdateType();

    Q_PROPERTY(bool AutoInstallUpdates READ autoInstallUpdates WRITE setAutoInstallUpdates NOTIFY AutoInstallUpdatesChanged)
    bool autoInstallUpdates();
    void setAutoInstallUpdates(bool value);

    Q_PROPERTY(LastoreUpdatePackagesInfo ClassifiedUpdatablePackages READ classifiedUpdatablePackages NOTIFY ClassifiedUpdatablePackagesChanged)
    LastoreUpdatePackagesInfo classifiedUpdatablePackages();

    Q_PROPERTY(QString MirrorSource READ mirrorSource NOTIFY MirrorSourceChanged)
    QString mirrorSource();

    Q_PROPERTY(QStringList UpdatableApps READ updatableApps NOTIFY UpdatableAppsChanged)
    QStringList updatableApps();

    Q_PROPERTY(QStringList UpdatablePackages READ updatablePackages NOTIFY UpdatablePackagesChanged)
    QStringList updatablePackages();

    Q_PROPERTY(bool UpdateNotify READ updateNotify NOTIFY UpdateNotifyChanged)
    bool updateNotify();

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



    inline QDBusPendingReply<double, QString> GetCheckIntervalAndTime()
    {
        QList<QVariant> argumentList;
        return asyncCallWithArgumentList(QStringLiteral("GetCheckIntervalAndTime"), argumentList);
    }


    inline QDBusReply<double> GetCheckIntervalAndTime(QString &out1)
    {
        QList<QVariant> argumentList;
        QDBusMessage reply = callWithArgumentList(QDBus::Block, QStringLiteral("GetCheckIntervalAndTime"), argumentList);
        if (reply.type() == QDBusMessage::ReplyMessage && reply.arguments().count() == 2) {
            out1 = qdbus_cast<QString>(reply.arguments().at(1));
        }
        return reply;
    }

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



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

    inline void SetAutoCheckUpdatesQueued(bool in0)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(in0);

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


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

    inline void SetAutoDownloadUpdatesQueued(bool in0)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(in0);

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


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

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

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


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

    inline void SetUpdateNotifyQueued(bool in0)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(in0);

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



Q_SIGNALS: // SIGNALS
    // begin property changed signals
    void AutoCheckUpdatesChanged(bool  value) const;
    void AutoDownloadUpdatesChanged(bool  value) const;
    void AutoInstallUpdateTypeChanged(qulonglong  value) const;
    void AutoInstallUpdatesChanged(bool  value) const;
    void ClassifiedUpdatablePackagesChanged(LastoreUpdatePackagesInfo  value) const;
    void MirrorSourceChanged(const QString & value) const;
    void UpdatableAppsChanged(const QStringList & value) const;
    void UpdatablePackagesChanged(const QStringList & value) const;
    void UpdateNotifyChanged(bool  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:
    __UpdaterPrivate *d_ptr;
};

namespace com {
  namespace deepin {
    namespace lastore {
      typedef ::__Updater Updater;
    }
  }
}
#endif
