/*
 * This file was generated by qdbusxml2cpp-fix version 0.8
 * Command line was: qdbusxml2cpp-fix -c Timedate -p generated/com_deepin_daemon_timedate /build/deepin-qt-dbus-factory/src/dde-qt-dbus-factory-0.2.1/xml/com.deepin.daemon.Timedate.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_TIMEDATE_H
#define COM_DEEPIN_DAEMON_TIMEDATE_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/zoneinfo.h"

/*
 * Proxy class for interface com.deepin.daemon.Timedate
 */
class __Timedate : public DBusExtendedAbstractInterface
{
    Q_OBJECT

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

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

    ~__Timedate();

    Q_PROPERTY(bool CanNTP READ canNTP NOTIFY CanNTPChanged)
    inline bool canNTP()
    { return qvariant_cast< bool >(internalPropGet("CanNTP", &m_CanNTP)); }

    Q_PROPERTY(int DSTOffset READ dSTOffset WRITE setDSTOffset NOTIFY DSTOffsetChanged)
    inline int dSTOffset()
    { return qvariant_cast< int >(internalPropGet("DSTOffset", &m_DSTOffset)); }
    inline void setDSTOffset(int value)
    { internalPropSet("DSTOffset", QVariant::fromValue(value), &m_DSTOffset); }

    Q_PROPERTY(bool LocalRTC READ localRTC NOTIFY LocalRTCChanged)
    inline bool localRTC()
    { return qvariant_cast< bool >(internalPropGet("LocalRTC", &m_LocalRTC)); }

    Q_PROPERTY(bool NTP READ nTP NOTIFY NTPChanged)
    inline bool nTP()
    { return qvariant_cast< bool >(internalPropGet("NTP", &m_NTP)); }

    Q_PROPERTY(QString Timezone READ timezone NOTIFY TimezoneChanged)
    inline QString timezone()
    { return qvariant_cast< QString >(internalPropGet("Timezone", &m_Timezone)); }

    Q_PROPERTY(bool Use24HourFormat READ use24HourFormat WRITE setUse24HourFormat NOTIFY Use24HourFormatChanged)
    inline bool use24HourFormat()
    { return qvariant_cast< bool >(internalPropGet("Use24HourFormat", &m_Use24HourFormat)); }
    inline void setUse24HourFormat(bool value)
    { internalPropSet("Use24HourFormat", QVariant::fromValue(value), &m_Use24HourFormat); }

    Q_PROPERTY(QStringList UserTimezones READ userTimezones NOTIFY UserTimezonesChanged)
    inline QStringList userTimezones()
    { return qvariant_cast< QStringList >(internalPropGet("UserTimezones", &m_UserTimezones)); }

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

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

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

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

    inline QDBusPendingReply<> SetDate(int in0, int in1, int in2, int in3, int in4, int in5, int in6)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(in0) << QVariant::fromValue(in1) << QVariant::fromValue(in2) << QVariant::fromValue(in3) << QVariant::fromValue(in4) << QVariant::fromValue(in5) << QVariant::fromValue(in6);
        return asyncCallWithArgumentList(QStringLiteral("SetDate"), argumentList);
    }

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

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

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

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

Q_SIGNALS: // SIGNALS
// begin property changed signals
    void CanNTPChanged(bool  value) const;
    void DSTOffsetChanged(int  value) const;
    void LocalRTCChanged(bool  value) const;
    void NTPChanged(bool  value) const;
    void TimezoneChanged(const QString & value) const;
    void Use24HourFormatChanged(bool  value) const;
    void UserTimezonesChanged(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_CanNTP;
    int m_DSTOffset;
    bool m_LocalRTC;
    bool m_NTP;
    QString m_Timezone;
    bool m_Use24HourFormat;
    QStringList m_UserTimezones;
};

namespace com {
  namespace deepin {
    namespace daemon {
      typedef ::__Timedate Timedate;
    }
  }
}
#endif
