Phosphor
Qt6 / Wayland library suite for window-management tools
Loading...
Searching...
No Matches
PhosphorServiceUPower::UPowerHost Class Reference

#include <PhosphorServiceUPower/UPowerHost.h>

Inheritance diagram for PhosphorServiceUPower::UPowerHost:
[legend]

Signals

void availabilityChanged ()
void onBatteryChanged ()
void displayDeviceChanged ()
void deviceAdded (PhosphorServiceUPower::UPowerDevice *device)
void deviceRemoved (PhosphorServiceUPower::UPowerDevice *device)
void deviceCountChanged ()

Public Member Functions

 UPowerHost (QObject *parent=nullptr)
 UPowerHost (const QDBusConnection &bus, const QString &service, QObject *parent=nullptr)
 ~UPowerHost () override
bool available () const
bool pending () const
QString error () const
void refresh ()
bool onBattery () const
UPowerDevice * displayDevice () const
int deviceCount () const
QList< UPowerDevice * > devices () const
PhosphorServiceUPower::UPowerDevice * deviceAt (int index) const

Constructor & Destructor Documentation

◆ UPowerHost() [1/2]

PhosphorServiceUPower::UPowerHost::UPowerHost ( QObject * parent = nullptr)
explicit

◆ UPowerHost() [2/2]

PhosphorServiceUPower::UPowerHost::UPowerHost ( const QDBusConnection & bus,
const QString & service,
QObject * parent = nullptr )

◆ ~UPowerHost()

PhosphorServiceUPower::UPowerHost::~UPowerHost ( )
override

Member Function Documentation

◆ availabilityChanged

void PhosphorServiceUPower::UPowerHost::availabilityChanged ( )
signal

◆ available()

bool PhosphorServiceUPower::UPowerHost::available ( ) const
nodiscard

◆ deviceAdded

void PhosphorServiceUPower::UPowerHost::deviceAdded ( PhosphorServiceUPower::UPowerDevice * device)
signal

◆ deviceAt()

PhosphorServiceUPower::UPowerDevice * PhosphorServiceUPower::UPowerHost::deviceAt ( int index) const
nodiscard

◆ deviceCount()

int PhosphorServiceUPower::UPowerHost::deviceCount ( ) const
nodiscard

◆ deviceCountChanged

void PhosphorServiceUPower::UPowerHost::deviceCountChanged ( )
signal

◆ deviceRemoved

void PhosphorServiceUPower::UPowerHost::deviceRemoved ( PhosphorServiceUPower::UPowerDevice * device)
signal

◆ devices()

QList< UPowerDevice * > PhosphorServiceUPower::UPowerHost::devices ( ) const
nodiscard

◆ displayDevice()

UPowerDevice * PhosphorServiceUPower::UPowerHost::displayDevice ( ) const
nodiscard

◆ displayDeviceChanged

void PhosphorServiceUPower::UPowerHost::displayDeviceChanged ( )
signal

◆ error()

QString PhosphorServiceUPower::UPowerHost::error ( ) const
nodiscard

◆ onBattery()

bool PhosphorServiceUPower::UPowerHost::onBattery ( ) const
nodiscard

◆ onBatteryChanged

void PhosphorServiceUPower::UPowerHost::onBatteryChanged ( )
signal

◆ pending()

bool PhosphorServiceUPower::UPowerHost::pending ( ) const
nodiscard

◆ refresh()

void PhosphorServiceUPower::UPowerHost::refresh ( )

The documentation for this class was generated from the following file:
  • phosphor-service-upower/include/PhosphorServiceUPower/UPowerHost.h