/*
 * This file was generated by qdbusxml2cpp-fix version 0.8
 * Command line was: qdbusxml2cpp-fix -c Updater -p generated/com_deepin_lastore_updater /build/deepin-qt-dbus-factory/src/dde-qt-dbus-factory-1.0.6/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/mirrorinfolist.h"
#include "types/appupdateinfolist.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(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();

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<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);
    }



Q_SIGNALS: // SIGNALS
    // begin property changed signals
    void AutoCheckUpdatesChanged(bool  value) const;
    void AutoDownloadUpdatesChanged(bool  value) const;
    void MirrorSourceChanged(const QString & value) const;
    void UpdatableAppsChanged(const QStringList & value) const;
    void UpdatablePackagesChanged(const QStringList & 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
