/*
 * This file was generated by qdbusxml2cpp-fix version 0.8
 * Command line was: qdbusxml2cpp-fix -c Display -p generated/com_deepin_daemon_display /build/deepin-qt-dbus-factory/src/dde-qt-dbus-factory-0.2.1/xml/com.deepin.daemon.Display.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_DISPLAY_H
#define COM_DEEPIN_DAEMON_DISPLAY_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/resolutionlist.h"
#include "types/screenrect.h"
#include "types/brightnessmap.h"

/*
 * Proxy class for interface com.deepin.daemon.Display
 */
class __Display : public DBusExtendedAbstractInterface
{
    Q_OBJECT

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

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

    ~__Display();

    Q_PROPERTY(BrightnessMap Brightness READ brightness NOTIFY BrightnessChanged)
    inline BrightnessMap brightness()
    { return qvariant_cast< BrightnessMap >(internalPropGet("Brightness", &m_Brightness)); }

    Q_PROPERTY(QString CurrentCustomId READ currentCustomId NOTIFY CurrentCustomIdChanged)
    inline QString currentCustomId()
    { return qvariant_cast< QString >(internalPropGet("CurrentCustomId", &m_CurrentCustomId)); }

    Q_PROPERTY(QStringList CustomIdList READ customIdList NOTIFY CustomIdListChanged)
    inline QStringList customIdList()
    { return qvariant_cast< QStringList >(internalPropGet("CustomIdList", &m_CustomIdList)); }

    Q_PROPERTY(uchar DisplayMode READ displayMode NOTIFY DisplayModeChanged)
    inline uchar displayMode()
    { return qvariant_cast< uchar >(internalPropGet("DisplayMode", &m_DisplayMode)); }

    Q_PROPERTY(bool HasChanged READ hasChanged NOTIFY HasChangedChanged)
    inline bool hasChanged()
    { return qvariant_cast< bool >(internalPropGet("HasChanged", &m_HasChanged)); }

    Q_PROPERTY(QList<QDBusObjectPath> Monitors READ monitors NOTIFY MonitorsChanged)
    inline QList<QDBusObjectPath> monitors()
    { return qvariant_cast< QList<QDBusObjectPath> >(internalPropGet("Monitors", &m_Monitors)); }

    Q_PROPERTY(QString Primary READ primary NOTIFY PrimaryChanged)
    inline QString primary()
    { return qvariant_cast< QString >(internalPropGet("Primary", &m_Primary)); }

    Q_PROPERTY(ScreenRect PrimaryRect READ primaryRect NOTIFY PrimaryRectChanged)
    inline ScreenRect primaryRect()
    { return qvariant_cast< ScreenRect >(internalPropGet("PrimaryRect", &m_PrimaryRect)); }

    Q_PROPERTY(ushort ScreenHeight READ screenHeight NOTIFY ScreenHeightChanged)
    inline ushort screenHeight()
    { return qvariant_cast< ushort >(internalPropGet("ScreenHeight", &m_ScreenHeight)); }

    Q_PROPERTY(ushort ScreenWidth READ screenWidth NOTIFY ScreenWidthChanged)
    inline ushort screenWidth()
    { return qvariant_cast< ushort >(internalPropGet("ScreenWidth", &m_ScreenWidth)); }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Q_SIGNALS: // SIGNALS
// begin property changed signals
    void BrightnessChanged(BrightnessMap  value) const;
    void CurrentCustomIdChanged(const QString & value) const;
    void CustomIdListChanged(const QStringList & value) const;
    void DisplayModeChanged(uchar  value) const;
    void HasChangedChanged(bool  value) const;
    void MonitorsChanged(const QList<QDBusObjectPath> & value) const;
    void PrimaryChanged(const QString & value) const;
    void PrimaryRectChanged(ScreenRect  value) const;
    void ScreenHeightChanged(ushort  value) const;
    void ScreenWidthChanged(ushort  value) const;

// begin private slots
private Q_SLOTS:
    void onPropertyChanged(const QString &propName, const QVariant &value);

// begin private member vaiables
private:
    BrightnessMap m_Brightness;
    QString m_CurrentCustomId;
    QStringList m_CustomIdList;
    uchar m_DisplayMode;
    bool m_HasChanged;
    QList<QDBusObjectPath> m_Monitors;
    QString m_Primary;
    ScreenRect m_PrimaryRect;
    ushort m_ScreenHeight;
    ushort m_ScreenWidth;
};

namespace com {
  namespace deepin {
    namespace daemon {
      typedef ::__Display Display;
    }
  }
}
#endif
