/*
 * This file was generated by qdbusxml2cpp-fix version 0.8
 * Command line was: qdbusxml2cpp-fix -c LastoreSessionHelper -p generated/com_deepin_lastoresessionhelper ../xml/com.deepin.LastoreSessionHelper.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_LASTORESESSIONHELPER_H
#define COM_DEEPIN_LASTORESESSIONHELPER_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 com.deepin.LastoreSessionHelper
 */
class __LastoreSessionHelperPrivate;
class __LastoreSessionHelper : public DBusExtendedAbstractInterface
{
    Q_OBJECT

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

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

    ~__LastoreSessionHelper();

    Q_PROPERTY(bool SourceCheckEnabled READ sourceCheckEnabled NOTIFY SourceCheckEnabledChanged)
    bool sourceCheckEnabled();

public Q_SLOTS: // METHODS
    inline QDBusPendingReply<bool, QDBusObjectPath> CheckPrepareDistUpgradeJob()
    {
        QList<QVariant> argumentList;
        return asyncCallWithArgumentList(QStringLiteral("CheckPrepareDistUpgradeJob"), argumentList);
    }


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

    inline QDBusPendingReply<bool> IsDiskSpaceSufficient()
    {
        QList<QVariant> argumentList;
        return asyncCallWithArgumentList(QStringLiteral("IsDiskSpaceSufficient"), argumentList);
    }



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

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

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



Q_SIGNALS: // SIGNALS
    // begin property changed signals
    void SourceCheckEnabledChanged(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:
    __LastoreSessionHelperPrivate *d_ptr;
};

namespace com {
  namespace deepin {
    typedef ::__LastoreSessionHelper LastoreSessionHelper;
  }
}
#endif
