/*
 * This file was generated by qdbusxml2cpp-fix version 0.8
 * Command line was: qdbusxml2cpp-fix -c daemon -p generated/com_deepin_sync_daemon ../xml/com.deepin.sync.daemon.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_SYNC_DAEMON_H
#define COM_DEEPIN_SYNC_DAEMON_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/qvariantmap.h"
#include "types/intstring.h"

/*
 * Proxy class for interface com.deepin.sync.Daemon
 */
class __daemonPrivate;
class __daemon : public DBusExtendedAbstractInterface
{
    Q_OBJECT

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

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

    ~__daemon();

    Q_PROPERTY(qlonglong LastSyncTime READ lastSyncTime NOTIFY LastSyncTimeChanged)
    qlonglong lastSyncTime();

    Q_PROPERTY(IntString State READ state NOTIFY StateChanged)
    IntString state();

    Q_PROPERTY(QVariantMap UserInfo READ userInfo NOTIFY UserInfoChanged)
    QVariantMap userInfo();

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



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

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

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


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

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

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


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



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



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

    inline void SwitcherSetQueued(const QString &in0, bool in1)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(in0) << QVariant::fromValue(in1);

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



Q_SIGNALS: // SIGNALS
    void SwitcherChange(const QString &switcher, bool enabled);
    // begin property changed signals
    void LastSyncTimeChanged(qlonglong  value) const;
    void StateChanged(IntString  value) const;
    void UserInfoChanged(const QVariantMap & 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:
    __daemonPrivate *d_ptr;
};

namespace com {
  namespace deepin {
    namespace sync {
      typedef ::__daemon Daemon;
    }
  }
}
#endif
