Go to the documentation of this file. 1 #ifndef MYTHPOWERDBUS_H
2 #define MYTHPOWERDBUS_H
5 #include <QDBusConnection>
6 #include <QDBusInterface>
7 #include <QDBusObjectPath>
37 void Init (
void)
override;
38 bool DoFeature (
bool Delayed =
false)
override;
51 QDBusConnection
m_bus { QDBusConnection::systemBus() };
58 #endif // MYTHPOWERDBUS_H
void DeviceChanged(const QDBusObjectPath &Device)
Update power device state.
void DidWakeUp(void) override
void DBusShuttingDown(bool Stopping)
bool ScheduleFeature(enum Feature Type, std::chrono::seconds Delay) override
Schedule a MythTV initiated power feature.
A device containing images (ie. USB stick, CD, storage group etc)
void DeviceAdded(const QDBusObjectPath &Device)
void ReleaseLock(void)
Release our inhibition lock.
bool DoFeature(bool Delayed=false) override
QDBusInterface * m_upowerInterface
static bool IsAvailable(void)
Static check for DBus interfaces that support some form of power management.
void DBusSuspending(bool Stopping)
void CancelFeature(void) override
This is untested.
QMap< QString, int > m_batteries
void AcquireLock(Features Types)
Acquire an inhibition lock for logind power events.
void DeviceRemoved(const QDBusObjectPath &Device)
void UpdateProperties(void)
int RetrieveBatteryLevel(const QString &Path)
~MythPowerDBus() override
QDBusInterface * m_logindInterface