/*
 * This file was generated by qdbusxml2cpp-fix version 0.8
 * Command line was: qdbusxml2cpp-fix -c SystemPower -p generated/com_deepin_system_systempower /build/deepin-qt-dbus-factory/src/dde-qt-dbus-factory-1.0.6/xml/com.deepin.system.SystemPower.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_SYSTEM_SYSTEMPOWER_H
#define COM_DEEPIN_SYSTEM_SYSTEMPOWER_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>


/*
 * Proxy class for interface com.deepin.system.Power
 */
class __SystemPowerPrivate;
class __SystemPower : public DBusExtendedAbstractInterface
{
    Q_OBJECT

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

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

    ~__SystemPower();

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

    Q_PROPERTY(uint BatteryStatus READ batteryStatus NOTIFY BatteryStatusChanged)
    uint batteryStatus();

    Q_PROPERTY(qulonglong BatteryTimeToEmpty READ batteryTimeToEmpty NOTIFY BatteryTimeToEmptyChanged)
    qulonglong batteryTimeToEmpty();

    Q_PROPERTY(qulonglong BatteryTimeToFull READ batteryTimeToFull NOTIFY BatteryTimeToFullChanged)
    qulonglong batteryTimeToFull();

    Q_PROPERTY(bool HasBattery READ hasBattery NOTIFY HasBatteryChanged)
    bool hasBattery();

    Q_PROPERTY(bool HasLidSwitch READ hasLidSwitch NOTIFY HasLidSwitchChanged)
    bool hasLidSwitch();

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

    Q_PROPERTY(bool PowerSavingModeAuto READ powerSavingModeAuto WRITE setPowerSavingModeAuto NOTIFY PowerSavingModeAutoChanged)
    bool powerSavingModeAuto();
    void setPowerSavingModeAuto(bool value);

    Q_PROPERTY(bool PowerSavingModeEnabled READ powerSavingModeEnabled WRITE setPowerSavingModeEnabled NOTIFY PowerSavingModeEnabledChanged)
    bool powerSavingModeEnabled();
    void setPowerSavingModeEnabled(bool value);

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



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

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

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


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

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

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


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

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

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



Q_SIGNALS: // SIGNALS
    void BatteryAdded(const QDBusObjectPath &objpath);
    void BatteryDisplayUpdate(qlonglong timestamp);
    void BatteryRemoved(const QDBusObjectPath &objpath);
    void LidClosed();
    void LidOpened();
    // begin property changed signals
    void BatteryPercentageChanged(double  value) const;
    void BatteryStatusChanged(uint  value) const;
    void BatteryTimeToEmptyChanged(qulonglong  value) const;
    void BatteryTimeToFullChanged(qulonglong  value) const;
    void HasBatteryChanged(bool  value) const;
    void HasLidSwitchChanged(bool  value) const;
    void OnBatteryChanged(bool  value) const;
    void PowerSavingModeAutoChanged(bool  value) const;
    void PowerSavingModeEnabledChanged(bool  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:
    __SystemPowerPrivate *d_ptr;
};

namespace com {
  namespace deepin {
    namespace system {
      typedef ::__SystemPower Power;
    }
  }
}
#endif
