/*
 * This file was generated by qdbusxml2cpp-fix version 0.8
 * Command line was: qdbusxml2cpp-fix -c LangSelector -p generated/com_deepin_daemon_langselector /build/deepin-qt-dbus-factory/src/dde-qt-dbus-factory-5.0.1/xml/com.deepin.daemon.LangSelector.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_DAEMON_LANGSELECTOR_H
#define COM_DEEPIN_DAEMON_LANGSELECTOR_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/localelist.h"

/*
 * Proxy class for interface com.deepin.daemon.LangSelector
 */
class __LangSelectorPrivate;
class __LangSelector : public DBusExtendedAbstractInterface
{
    Q_OBJECT

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

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

    ~__LangSelector();

    Q_PROPERTY(QString CurrentLocale READ currentLocale NOTIFY CurrentLocaleChanged)
    QString currentLocale();

    Q_PROPERTY(int LocaleState READ localeState NOTIFY LocaleStateChanged)
    int localeState();

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

    inline void DestroyQueued()
    {
        QList<QVariant> argumentList;

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


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



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

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

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



Q_SIGNALS: // SIGNALS
    void Changed(const QString &in0);
    // begin property changed signals
    void CurrentLocaleChanged(const QString & value) const;
    void LocaleStateChanged(int  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:
    __LangSelectorPrivate *d_ptr;
};

namespace com {
  namespace deepin {
    namespace daemon {
      typedef ::__LangSelector LangSelector;
    }
  }
}
#endif
