1 #ifndef TORCPOWERUNIXDBUS_H 2 #define TORCPOWERUNIXDBUS_H 35 void UpdateBattery (
void);
37 void UpdateProperties (
void);
41 QMap<QString,int> m_devices;
42 QDBusInterface m_upowerInterface;
43 QDBusInterface m_consoleInterface;
46 #endif // TORCPOWERUNIXDBUS_H bool DoHibernate(void) override
void DeviceAdded(QDBusObjectPath Device)
virtual ~TorcPowerUnixDBus()=default
void DeviceChanged(QDBusObjectPath Device)
void DeviceRemoved(QDBusObjectPath Device)
static bool Available(void)
A generic power status class.
void DBusError(QDBusError Error)
bool DoSuspend(void) override
bool DoShutdown(void) override
int GetBatteryLevel(void)
A power monitoring class for Unix based systems.
bool DoRestart(void) override