/*
 * 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-5.0.1/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/batterypresentinfo.h"
#include "types/batterystateinfo.h"
#include "types/batterypercentageinfo.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(bool BatteryLidClosedSleep READ batteryLidClosedSleep WRITE setBatteryLidClosedSleep NOTIFY BatteryLidClosedSleepChanged)
    bool batteryLidClosedSleep();
    void setBatteryLidClosedSleep(bool value);

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

    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 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(bool LinePowerLidClosedSleep READ linePowerLidClosedSleep WRITE setLinePowerLidClosedSleep NOTIFY LinePowerLidClosedSleepChanged)
    bool linePowerLidClosedSleep();
    void setLinePowerLidClosedSleep(bool 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(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 BatteryLidClosedSleepChanged(bool  value) const;
    void BatteryPercentageChanged(BatteryPercentageInfo  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 LidClosedSleepChanged(bool  value) const;
    void LidIsPresentChanged(bool  value) const;
    void LinePowerLidClosedSleepChanged(bool  value) const;
    void LinePowerScreenBlackDelayChanged(int  value) const;
    void LinePowerScreensaverDelayChanged(int  value) const;
    void LinePowerSleepDelayChanged(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
