/*
 * 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.4.2.20180301/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 __TimedatePrivate;
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)
    bool canNTP();

    Q_PROPERTY(int DSTOffset READ dSTOffset WRITE setDSTOffset NOTIFY DSTOffsetChanged)
    int dSTOffset();
    void setDSTOffset(int value);

    Q_PROPERTY(bool LocalRTC READ localRTC NOTIFY LocalRTCChanged)
    bool localRTC();

    Q_PROPERTY(bool NTP READ nTP NOTIFY NTPChanged)
    bool nTP();

    Q_PROPERTY(QString Timezone READ timezone NOTIFY TimezoneChanged)
    QString timezone();

    Q_PROPERTY(bool Use24HourFormat READ use24HourFormat WRITE setUse24HourFormat NOTIFY Use24HourFormatChanged)
    bool use24HourFormat();
    void setUse24HourFormat(bool value);

    Q_PROPERTY(QStringList UserTimezones READ userTimezones NOTIFY UserTimezonesChanged)
    QStringList userTimezones();

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

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

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


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

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

        CallQueued(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 void SetDateQueued(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);

        CallQueued(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 void SetLocalRTCQueued(bool in0, bool in1)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(in0) << QVariant::fromValue(in1);

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


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

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

        CallQueued(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 void SetTimeQueued(qlonglong in0, bool in1)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(in0) << QVariant::fromValue(in1);

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


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

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

        CallQueued(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;

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:
    __TimedatePrivate *d_ptr;
};

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