/*
 * 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-0.2.1/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"

/*
 * Proxy class for interface com.deepin.lastore.Updater
 */
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)
    inline bool autoCheckUpdates()
    { return qvariant_cast< bool >(internalPropGet("AutoCheckUpdates", &m_AutoCheckUpdates)); }

    Q_PROPERTY(bool AutoDownloadUpdates READ autoDownloadUpdates NOTIFY AutoDownloadUpdatesChanged)
    inline bool autoDownloadUpdates()
    { return qvariant_cast< bool >(internalPropGet("AutoDownloadUpdates", &m_AutoDownloadUpdates)); }

    Q_PROPERTY(QString MirrorSource READ mirrorSource NOTIFY MirrorSourceChanged)
    inline QString mirrorSource()
    { return qvariant_cast< QString >(internalPropGet("MirrorSource", &m_MirrorSource)); }

    Q_PROPERTY(QStringList UpdatableApps READ updatableApps NOTIFY UpdatableAppsChanged)
    inline QStringList updatableApps()
    { return qvariant_cast< QStringList >(internalPropGet("UpdatableApps", &m_UpdatableApps)); }

    Q_PROPERTY(QStringList UpdatablePackages READ updatablePackages NOTIFY UpdatablePackagesChanged)
    inline QStringList updatablePackages()
    { return qvariant_cast< QStringList >(internalPropGet("UpdatablePackages", &m_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 QDBusPendingReply<> SetAutoDownloadUpdates(bool in0)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(in0);
        return asyncCallWithArgumentList(QStringLiteral("SetAutoDownloadUpdates"), argumentList);
    }

    inline QDBusPendingReply<> SetMirrorSource(const QString &in0)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(in0);
        return asyncCallWithArgumentList(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;

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

// begin private member vaiables
private:
    bool m_AutoCheckUpdates;
    bool m_AutoDownloadUpdates;
    QString m_MirrorSource;
    QStringList m_UpdatableApps;
    QStringList m_UpdatablePackages;
};

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