/*
 * This file was generated by qdbusxml2cpp-fix version 0.8
 * Command line was: qdbusxml2cpp-fix -c Power -p generated/com_deepin_daemon_power ../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 __PowerPrivate;
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(bool AmbientLightAdjustBrightness READ ambientLightAdjustBrightness WRITE setAmbientLightAdjustBrightness NOTIFY AmbientLightAdjustBrightnessChanged)
    bool ambientLightAdjustBrightness();
    void setAmbientLightAdjustBrightness(bool value);

    Q_PROPERTY(BatteryPresentInfo BatteryIsPresent READ batteryIsPresent NOTIFY BatteryIsPresentChanged)
    BatteryPresentInfo batteryIsPresent();

    Q_PROPERTY(int BatteryLidClosedAction READ batteryLidClosedAction WRITE setBatteryLidClosedAction NOTIFY BatteryLidClosedActionChanged)
    int batteryLidClosedAction();
    void setBatteryLidClosedAction(int value);

    Q_PROPERTY(int BatteryLockDelay READ batteryLockDelay WRITE setBatteryLockDelay NOTIFY BatteryLockDelayChanged)
    int batteryLockDelay();
    void setBatteryLockDelay(int value);

    Q_PROPERTY(BatteryPercentageInfo BatteryPercentage READ batteryPercentage NOTIFY BatteryPercentageChanged)
    BatteryPercentageInfo batteryPercentage();

    Q_PROPERTY(int BatteryPressPowerBtnAction READ batteryPressPowerBtnAction WRITE setBatteryPressPowerBtnAction NOTIFY BatteryPressPowerBtnActionChanged)
    int batteryPressPowerBtnAction();
    void setBatteryPressPowerBtnAction(int value);

    Q_PROPERTY(int BatteryScreenBlackDelay READ batteryScreenBlackDelay WRITE setBatteryScreenBlackDelay NOTIFY BatteryScreenBlackDelayChanged)
    int batteryScreenBlackDelay();
    void setBatteryScreenBlackDelay(int value);

    Q_PROPERTY(int BatteryScreensaverDelay READ batteryScreensaverDelay WRITE setBatteryScreensaverDelay NOTIFY BatteryScreensaverDelayChanged)
    int batteryScreensaverDelay();
    void setBatteryScreensaverDelay(int value);

    Q_PROPERTY(int BatterySleepDelay READ batterySleepDelay WRITE setBatterySleepDelay NOTIFY BatterySleepDelayChanged)
    int batterySleepDelay();
    void setBatterySleepDelay(int value);

    Q_PROPERTY(BatteryStateInfo BatteryState READ batteryState NOTIFY BatteryStateChanged)
    BatteryStateInfo batteryState();

    Q_PROPERTY(bool HasAmbientLightSensor READ hasAmbientLightSensor NOTIFY HasAmbientLightSensorChanged)
    bool hasAmbientLightSensor();

    Q_PROPERTY(bool IsHighPerformanceSupported READ isHighPerformanceSupported NOTIFY IsHighPerformanceSupportedChanged)
    bool isHighPerformanceSupported();

    Q_PROPERTY(bool LidClosedSleep READ lidClosedSleep WRITE setLidClosedSleep NOTIFY LidClosedSleepChanged)
    bool lidClosedSleep();
    void setLidClosedSleep(bool value);

    Q_PROPERTY(bool LidIsPresent READ lidIsPresent NOTIFY LidIsPresentChanged)
    bool lidIsPresent();

    Q_PROPERTY(int LinePowerLidClosedAction READ linePowerLidClosedAction WRITE setLinePowerLidClosedAction NOTIFY LinePowerLidClosedActionChanged)
    int linePowerLidClosedAction();
    void setLinePowerLidClosedAction(int value);

    Q_PROPERTY(int LinePowerLockDelay READ linePowerLockDelay WRITE setLinePowerLockDelay NOTIFY LinePowerLockDelayChanged)
    int linePowerLockDelay();
    void setLinePowerLockDelay(int value);

    Q_PROPERTY(int LinePowerPressPowerBtnAction READ linePowerPressPowerBtnAction WRITE setLinePowerPressPowerBtnAction NOTIFY LinePowerPressPowerBtnActionChanged)
    int linePowerPressPowerBtnAction();
    void setLinePowerPressPowerBtnAction(int value);

    Q_PROPERTY(int LinePowerScreenBlackDelay READ linePowerScreenBlackDelay WRITE setLinePowerScreenBlackDelay NOTIFY LinePowerScreenBlackDelayChanged)
    int linePowerScreenBlackDelay();
    void setLinePowerScreenBlackDelay(int value);

    Q_PROPERTY(int LinePowerScreensaverDelay READ linePowerScreensaverDelay WRITE setLinePowerScreensaverDelay NOTIFY LinePowerScreensaverDelayChanged)
    int linePowerScreensaverDelay();
    void setLinePowerScreensaverDelay(int value);

    Q_PROPERTY(int LinePowerSleepDelay READ linePowerSleepDelay WRITE setLinePowerSleepDelay NOTIFY LinePowerSleepDelayChanged)
    int linePowerSleepDelay();
    void setLinePowerSleepDelay(int value);

    Q_PROPERTY(int LowPowerAutoSleepThreshold READ lowPowerAutoSleepThreshold WRITE setLowPowerAutoSleepThreshold NOTIFY LowPowerAutoSleepThresholdChanged)
    int lowPowerAutoSleepThreshold();
    void setLowPowerAutoSleepThreshold(int value);

    Q_PROPERTY(bool LowPowerNotifyEnable READ lowPowerNotifyEnable WRITE setLowPowerNotifyEnable NOTIFY LowPowerNotifyEnableChanged)
    bool lowPowerNotifyEnable();
    void setLowPowerNotifyEnable(bool value);

    Q_PROPERTY(int LowPowerNotifyThreshold READ lowPowerNotifyThreshold WRITE setLowPowerNotifyThreshold NOTIFY LowPowerNotifyThresholdChanged)
    int lowPowerNotifyThreshold();
    void setLowPowerNotifyThreshold(int value);

    Q_PROPERTY(bool OnBattery READ onBattery NOTIFY OnBatteryChanged)
    bool onBattery();

    Q_PROPERTY(bool ScreenBlackLock READ screenBlackLock WRITE setScreenBlackLock NOTIFY ScreenBlackLockChanged)
    bool screenBlackLock();
    void setScreenBlackLock(bool value);

    Q_PROPERTY(bool SleepLock READ sleepLock WRITE setSleepLock NOTIFY SleepLockChanged)
    bool sleepLock();
    void setSleepLock(bool value);

    Q_PROPERTY(uint WarnLevel READ warnLevel NOTIFY WarnLevelChanged)
    uint warnLevel();

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

    inline void ResetQueued()
    {
        QList<QVariant> argumentList;

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



Q_SIGNALS: // SIGNALS
    // begin property changed signals
    void AmbientLightAdjustBrightnessChanged(bool  value) const;
    void BatteryIsPresentChanged(BatteryPresentInfo  value) const;
    void BatteryLidClosedActionChanged(int  value) const;
    void BatteryLockDelayChanged(int  value) const;
    void BatteryPercentageChanged(BatteryPercentageInfo  value) const;
    void BatteryPressPowerBtnActionChanged(int  value) const;
    void BatteryScreenBlackDelayChanged(int  value) const;
    void BatteryScreensaverDelayChanged(int  value) const;
    void BatterySleepDelayChanged(int  value) const;
    void BatteryStateChanged(BatteryStateInfo  value) const;
    void HasAmbientLightSensorChanged(bool  value) const;
    void IsHighPerformanceSupportedChanged(bool  value) const;
    void LidClosedSleepChanged(bool  value) const;
    void LidIsPresentChanged(bool  value) const;
    void LinePowerLidClosedActionChanged(int  value) const;
    void LinePowerLockDelayChanged(int  value) const;
    void LinePowerPressPowerBtnActionChanged(int  value) const;
    void LinePowerScreenBlackDelayChanged(int  value) const;
    void LinePowerScreensaverDelayChanged(int  value) const;
    void LinePowerSleepDelayChanged(int  value) const;
    void LowPowerAutoSleepThresholdChanged(int  value) const;
    void LowPowerNotifyEnableChanged(bool  value) const;
    void LowPowerNotifyThresholdChanged(int  value) const;
    void OnBatteryChanged(bool  value) const;
    void ScreenBlackLockChanged(bool  value) const;
    void SleepLockChanged(bool  value) const;
    void WarnLevelChanged(uint  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:
    __PowerPrivate *d_ptr;
};

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