Torc  0.1
Public Member Functions | List of all members
TorcPowerNull Class Reference

A dummy/default power implementation. More...

#include <torcpower.h>

Inheritance diagram for TorcPowerNull:
[legend]

Public Member Functions

 TorcPowerNull ()
 
 ~TorcPowerNull ()=default
 
bool DoShutdown (void)
 
bool DoSuspend (void)
 
bool DoHibernate (void)
 
bool DoRestart (void)
 
- Public Member Functions inherited from TorcPower
virtual ~TorcPower ()
 
QString GetUIName (void) override
 
bool event (QEvent *Event) override
 
- Public Member Functions inherited from TorcHTTPService
 TorcHTTPService (QObject *Parent, const QString &Signature, const QString &Name, const QMetaObject &MetaObject, const QString &Blacklist=QStringLiteral(""))
 
virtual ~TorcHTTPService ()
 
void ProcessHTTPRequest (const QString &PeerAddress, int PeerPort, const QString &LocalAddress, int LocalPort, TorcHTTPRequest &Request) override
 
QVariantMap ProcessRequest (const QString &Method, const QVariant &Parameters, QObject *Connection, bool Authenticated) override
 
QString GetMethod (int Index)
 
QVariant GetProperty (int Index)
 Get the value of a given property. More...
 
QVariantMap GetServiceDetails (void)
 Return a QVariantMap describing the services methods and properties. More...
 
virtual QString GetPresentationURL (void)
 
- Public Member Functions inherited from TorcHTTPHandler
 TorcHTTPHandler (const QString &Signature, const QString &Name)
 
virtual ~TorcHTTPHandler ()
 
QString Signature (void) const
 
bool GetRecursive (void) const
 
QString Name (void) const
 

Additional Inherited Members

- Public Types inherited from TorcPower
enum  PowerLevels {
  ACPower = -1, BatteryEmpty = 0, BatteryLow = 10, BatteryFull = 100,
  UnknownPower = 101
}
 
- Public Slots inherited from TorcPower
void SubscriberDeleted (QObject *Subscriber)
 
bool GetCanShutdown (void)
 
bool GetCanSuspend (void)
 
bool GetCanHibernate (void)
 
bool GetCanRestart (void)
 
int GetBatteryLevel (void)
 
QVariantMap GetPowerStatus (void)
 
bool Shutdown (void)
 
bool Suspend (void)
 
bool Hibernate (void)
 
bool Restart (void)
 
void ShuttingDown (void)
 
void Suspending (void)
 
void Hibernating (void)
 
void Restarting (void)
 
void WokeUp (void)
 
void LowBattery (void)
 
- Signals inherited from TorcPower
void CanShutdownChanged (bool CanShutdown)
 
void CanSuspendChanged (bool CanSuspend)
 
void CanHibernateChanged (bool CanHibernate)
 
void CanRestartChanged (bool CanRestart)
 
void BatteryLevelChanged (int BatteryLevel)
 
- Static Public Member Functions inherited from TorcPower
static void Create (void)
 
static void TearDown (void)
 
- Protected Slots inherited from TorcPower
void CanShutdownActiveChanged (bool Active)
 
void CanSuspendActiveChanged (bool Active)
 
void CanHibernateActiveChanged (bool Active)
 
void CanRestartActiveChanged (bool Active)
 
void CanShutdownValueChanged (bool Value)
 
void CanSuspendValueChanged (bool Value)
 
void CanHibernateValueChanged (bool Value)
 
void CanRestartValueChanged (bool Value)
 
- Protected Member Functions inherited from TorcPower
 TorcPower ()
 
void BatteryUpdated (int Level)
 
void Debug (void)
 
- Protected Member Functions inherited from TorcHTTPService
void HandleSubscriberDeleted (QObject *Subscriber)
 
- Static Protected Member Functions inherited from TorcHTTPHandler
static bool MethodIsAuthorised (TorcHTTPRequest &Request, int Allowed)
 Check the current request is authorised and set the authentication header if not. More...
 
static void HandleOptions (TorcHTTPRequest &Request, int Allowed)
 
static void HandleFile (TorcHTTPRequest &Request, const QString &Filename, int Cache)
 
- Protected Attributes inherited from TorcPower
TorcSettingm_canShutdown
 
TorcSettingm_canSuspend
 
TorcSettingm_canHibernate
 
TorcSettingm_canRestart
 
int m_batteryLevel
 
- Protected Attributes inherited from TorcHTTPService
QReadWriteLock m_httpServiceLock
 
- Protected Attributes inherited from TorcHTTPHandler
QString m_signature
 
bool m_recursive
 
QString m_name
 
- Properties inherited from TorcPower
bool canShutdown
 
bool canSuspend
 
bool canHibernate
 
bool canRestart
 
int batteryLevel
 

Detailed Description

A dummy/default power implementation.

Definition at line 122 of file torcpower.h.

Constructor & Destructor Documentation

TorcPowerNull::TorcPowerNull ( )
inline

Definition at line 126 of file torcpower.h.

TorcPowerNull::~TorcPowerNull ( )
default

Member Function Documentation

bool TorcPowerNull::DoHibernate ( void  )
inlinevirtual

Implements TorcPower.

Definition at line 130 of file torcpower.h.

bool TorcPowerNull::DoRestart ( void  )
inlinevirtual

Implements TorcPower.

Definition at line 131 of file torcpower.h.

bool TorcPowerNull::DoShutdown ( void  )
inlinevirtual

Implements TorcPower.

Definition at line 128 of file torcpower.h.

bool TorcPowerNull::DoSuspend ( void  )
inlinevirtual

Implements TorcPower.

Definition at line 129 of file torcpower.h.


The documentation for this class was generated from the following file: