/*
 * This file was generated by qdbusxml2cpp-fix version 0.8
 * Command line was: qdbusxml2cpp-fix -c Hostname1 -p generated/org_freedesktop_hostname1 ../xml/org.freedesktop.Hostname1.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 ORG_FREEDESKTOP_HOSTNAME1_H
#define ORG_FREEDESKTOP_HOSTNAME1_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 org.freedesktop.hostname1
 */
class __Hostname1Private;
class __Hostname1 : public DBusExtendedAbstractInterface
{
    Q_OBJECT

public:
    static inline const char *staticInterfaceName()
    { return "org.freedesktop.hostname1"; }

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

    ~__Hostname1();

    Q_PROPERTY(QString StaticHostname READ staticHostname NOTIFY StaticHostnameChanged)
    QString staticHostname();

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

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

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



Q_SIGNALS: // SIGNALS
    // begin property changed signals
    void StaticHostnameChanged(const QString & 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:
    __Hostname1Private *d_ptr;
};

namespace org {
  namespace freedesktop {
    typedef ::__Hostname1 hostname1;
  }
}
#endif
