|
| CUPowerSyscall () |
|
bool | Powerdown () override |
|
bool | Suspend () override |
|
bool | Hibernate () override |
|
bool | Reboot () override |
|
bool | CanPowerdown () override |
|
bool | CanSuspend () override |
|
bool | CanHibernate () override |
|
bool | CanReboot () override |
|
int | BatteryLevel () override |
|
bool | PumpPowerEvents (IPowerEventsCallback *callback) override |
| Pump power related events back to xbmc. More...
|
|
int | CountPowerFeatures () override |
|
|
static bool | HasUPower () |
|
static IPowerSyscall * | CreateInstance () |
| Called by power manager to create platform power system adapter. More...
|
|
static void | RegisterPowerSyscall (CreatePowerSyscallFunc createFunc) |
|
|
void | UpdateCapabilities () |
|
|
bool | m_CanPowerdown |
|
bool | m_CanSuspend |
|
bool | m_CanHibernate |
|
bool | m_CanReboot |
|
|
static const int | MAX_COUNT_POWER_FEATURES = 4 |
|
◆ CUPowerSyscall()
CUPowerSyscall::CUPowerSyscall |
( |
| ) |
|
- Todo:
- do not use dbus_connection_pop_message() that requires the use of a private connection
◆ PumpPowerEvents()
Pump power related events back to xbmc.
PumpPowerEvents is called from Application Thread and the platform implementation may signal power related events back to xbmc through the callback.
return true if an event occurred and false if not.
- Parameters
-
callback | the callback to signal to |
Implements IPowerSyscall.
The documentation for this class was generated from the following files:
- xbmc/platform/linux/powermanagement/UPowerSyscall.h
- xbmc/platform/linux/powermanagement/UPowerSyscall.cpp