/*
 * This file was generated by qdbusxml2cpp-fix version 0.8
 * Command line was: qdbusxml2cpp-fix -c Power -p generated/com_deepin_daemon_power /build/deepin-qt-dbus-factory/src/dde-qt-dbus-factory-0.4.0/xml/com.deepin.daemon.Power.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_POWER_H
#define COM_DEEPIN_DAEMON_POWER_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/batterypercentageinfo.h"
#include "types/batterypresentinfo.h"
#include "types/batterystateinfo.h"

/*
 * Proxy class for interface com.deepin.daemon.Power
 */
class __Power : public DBusExtendedAbstractInterface
{
    Q_OBJECT

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

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

    ~__Power();

    Q_PROPERTY(BatteryPresentInfo BatteryIsPresent READ batteryIsPresent NOTIFY BatteryIsPresentChanged)
    inline BatteryPresentInfo batteryIsPresent()
    { return qvariant_cast< BatteryPresentInfo >(internalPropGet("BatteryIsPresent", &m_BatteryIsPresent)); }

    Q_PROPERTY(BatteryPercentageInfo BatteryPercentage READ batteryPercentage NOTIFY BatteryPercentageChanged)
    inline BatteryPercentageInfo batteryPercentage()
    { return qvariant_cast< BatteryPercentageInfo >(internalPropGet("BatteryPercentage", &m_BatteryPercentage)); }

    Q_PROPERTY(int BatteryScreenBlackDelay READ batteryScreenBlackDelay WRITE setBatteryScreenBlackDelay NOTIFY BatteryScreenBlackDelayChanged)
    inline int batteryScreenBlackDelay()
    { return qvariant_cast< int >(internalPropGet("BatteryScreenBlackDelay", &m_BatteryScreenBlackDelay)); }
    inline void setBatteryScreenBlackDelay(int value)
    { internalPropSet("BatteryScreenBlackDelay", QVariant::fromValue(value), &m_BatteryScreenBlackDelay); }

    Q_PROPERTY(int BatterySleepDelay READ batterySleepDelay WRITE setBatterySleepDelay NOTIFY BatterySleepDelayChanged)
    inline int batterySleepDelay()
    { return qvariant_cast< int >(internalPropGet("BatterySleepDelay", &m_BatterySleepDelay)); }
    inline void setBatterySleepDelay(int value)
    { internalPropSet("BatterySleepDelay", QVariant::fromValue(value), &m_BatterySleepDelay); }

    Q_PROPERTY(BatteryStateInfo BatteryState READ batteryState NOTIFY BatteryStateChanged)
    inline BatteryStateInfo batteryState()
    { return qvariant_cast< BatteryStateInfo >(internalPropGet("BatteryState", &m_BatteryState)); }

    Q_PROPERTY(bool LidClosedSleep READ lidClosedSleep WRITE setLidClosedSleep NOTIFY LidClosedSleepChanged)
    inline bool lidClosedSleep()
    { return qvariant_cast< bool >(internalPropGet("LidClosedSleep", &m_LidClosedSleep)); }
    inline void setLidClosedSleep(bool value)
    { internalPropSet("LidClosedSleep", QVariant::fromValue(value), &m_LidClosedSleep); }

    Q_PROPERTY(bool LidIsPresent READ lidIsPresent NOTIFY LidIsPresentChanged)
    inline bool lidIsPresent()
    { return qvariant_cast< bool >(internalPropGet("LidIsPresent", &m_LidIsPresent)); }

    Q_PROPERTY(int LinePowerScreenBlackDelay READ linePowerScreenBlackDelay WRITE setLinePowerScreenBlackDelay NOTIFY LinePowerScreenBlackDelayChanged)
    inline int linePowerScreenBlackDelay()
    { return qvariant_cast< int >(internalPropGet("LinePowerScreenBlackDelay", &m_LinePowerScreenBlackDelay)); }
    inline void setLinePowerScreenBlackDelay(int value)
    { internalPropSet("LinePowerScreenBlackDelay", QVariant::fromValue(value), &m_LinePowerScreenBlackDelay); }

    Q_PROPERTY(int LinePowerSleepDelay READ linePowerSleepDelay WRITE setLinePowerSleepDelay NOTIFY LinePowerSleepDelayChanged)
    inline int linePowerSleepDelay()
    { return qvariant_cast< int >(internalPropGet("LinePowerSleepDelay", &m_LinePowerSleepDelay)); }
    inline void setLinePowerSleepDelay(int value)
    { internalPropSet("LinePowerSleepDelay", QVariant::fromValue(value), &m_LinePowerSleepDelay); }

    Q_PROPERTY(bool OnBattery READ onBattery NOTIFY OnBatteryChanged)
    inline bool onBattery()
    { return qvariant_cast< bool >(internalPropGet("OnBattery", &m_OnBattery)); }

    Q_PROPERTY(QString PowerButtonAction READ powerButtonAction WRITE setPowerButtonAction NOTIFY PowerButtonActionChanged)
    inline QString powerButtonAction()
    { return qvariant_cast< QString >(internalPropGet("PowerButtonAction", &m_PowerButtonAction)); }
    inline void setPowerButtonAction(const QString &value)
    { internalPropSet("PowerButtonAction", QVariant::fromValue(value), &m_PowerButtonAction); }

    Q_PROPERTY(bool ScreenBlackLock READ screenBlackLock WRITE setScreenBlackLock NOTIFY ScreenBlackLockChanged)
    inline bool screenBlackLock()
    { return qvariant_cast< bool >(internalPropGet("ScreenBlackLock", &m_ScreenBlackLock)); }
    inline void setScreenBlackLock(bool value)
    { internalPropSet("ScreenBlackLock", QVariant::fromValue(value), &m_ScreenBlackLock); }

    Q_PROPERTY(bool SleepLock READ sleepLock WRITE setSleepLock NOTIFY SleepLockChanged)
    inline bool sleepLock()
    { return qvariant_cast< bool >(internalPropGet("SleepLock", &m_SleepLock)); }
    inline void setSleepLock(bool value)
    { internalPropSet("SleepLock", QVariant::fromValue(value), &m_SleepLock); }

    Q_PROPERTY(uint WarnLevel READ warnLevel NOTIFY WarnLevelChanged)
    inline uint warnLevel()
    { return qvariant_cast< uint >(internalPropGet("WarnLevel", &m_WarnLevel)); }

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

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

Q_SIGNALS: // SIGNALS
// begin property changed signals
    void BatteryIsPresentChanged(BatteryPresentInfo  value) const;
    void BatteryPercentageChanged(BatteryPercentageInfo  value) const;
    void BatteryScreenBlackDelayChanged(int  value) const;
    void BatterySleepDelayChanged(int  value) const;
    void BatteryStateChanged(BatteryStateInfo  value) const;
    void LidClosedSleepChanged(bool  value) const;
    void LidIsPresentChanged(bool  value) const;
    void LinePowerScreenBlackDelayChanged(int  value) const;
    void LinePowerSleepDelayChanged(int  value) const;
    void OnBatteryChanged(bool  value) const;
    void PowerButtonActionChanged(const QString & value) const;
    void ScreenBlackLockChanged(bool  value) const;
    void SleepLockChanged(bool  value) const;
    void WarnLevelChanged(uint  value) const;

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

// begin private member vaiables
private:
    BatteryPresentInfo m_BatteryIsPresent;
    BatteryPercentageInfo m_BatteryPercentage;
    int m_BatteryScreenBlackDelay;
    int m_BatterySleepDelay;
    BatteryStateInfo m_BatteryState;
    bool m_LidClosedSleep;
    bool m_LidIsPresent;
    int m_LinePowerScreenBlackDelay;
    int m_LinePowerSleepDelay;
    bool m_OnBattery;
    QString m_PowerButtonAction;
    bool m_ScreenBlackLock;
    bool m_SleepLock;
    uint m_WarnLevel;
};

namespace com {
  namespace deepin {
    namespace daemon {
      typedef ::__Power Power;
    }
  }
}
#endif
