15 Q_CLASSINFO(
"Version",
"1.0.0")
16 Q_CLASSINFO(
"Shutdown",
"methods=PUT")
17 Q_CLASSINFO(
"Suspend",
"methods=PUT")
18 Q_CLASSINFO(
"Hibernate",
"methods=PUT")
19 Q_CLASSINFO(
"Restart",
"methods=PUT")
43 bool event (QEvent *Event)
override;
106 int m_lastBatteryLevel;
143 virtual void Score (
int &Score) = 0;
154 #endif // TORCPOWER_H QVariantMap GetPowerStatus(void)
void CanHibernateActiveChanged(bool Active)
static void TearDown(void)
void CanShutdownChanged(bool CanShutdown)
High level group of related settings.
A wrapper around a database setting.
bool event(QEvent *Event) override
void BatteryLevelChanged(int BatteryLevel)
void BatteryUpdated(int Level)
bool GetCanHibernate(void)
TorcSetting * m_canHibernate
void CanHibernateChanged(bool CanHibernate)
void CanRestartValueChanged(bool Value)
virtual bool DoSuspend(void)=0
TorcSetting * m_canSuspend
virtual bool DoHibernate(void)=0
A dummy/default power implementation.
TorcPowerFactory * nextPowerFactory
virtual bool DoRestart(void)=0
TorcSetting * m_canShutdown
static TorcPowerFactory * gPowerFactory
void CanSuspendValueChanged(bool Value)
A generic power status class.
void CanHibernateValueChanged(bool Value)
QString GetUIName(void) override
virtual bool DoShutdown(void)=0
void CanSuspendChanged(bool CanSuspend)
void CanRestartActiveChanged(bool Active)
void CanRestartChanged(bool CanRestart)
int GetBatteryLevel(void)
bool GetCanShutdown(void)
TorcSetting * m_canRestart
void CanShutdownActiveChanged(bool Active)
void CanSuspendActiveChanged(bool Active)
void SubscriberDeleted(QObject *Subscriber)
void CanShutdownValueChanged(bool Value)