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

#include <phosphor-services/include/PhosphorServices/UPowerHost.h>

Inheritance diagram for PhosphorServices::UPowerHost:
[legend]

Signals

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

Public Member Functions

 UPowerHost (QObject *parent=nullptr)
 
 ~UPowerHost () override
 
bool onBattery () const
 
UPowerDevicedisplayDevice () const
 
int deviceCount () const
 
QList< UPowerDevice * > devices () const
 
PhosphorServices::UPowerDevicedeviceAt (int index) const
 

Constructor & Destructor Documentation

◆ UPowerHost()

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

◆ ~UPowerHost()

PhosphorServices::UPowerHost::~UPowerHost ( )
override

Member Function Documentation

◆ deviceAdded

void PhosphorServices::UPowerHost::deviceAdded ( PhosphorServices::UPowerDevice device)
signal

◆ deviceAt()

PhosphorServices::UPowerDevice * PhosphorServices::UPowerHost::deviceAt ( int  index) const

◆ deviceCount()

int PhosphorServices::UPowerHost::deviceCount ( ) const

◆ deviceCountChanged

void PhosphorServices::UPowerHost::deviceCountChanged ( )
signal

◆ deviceRemoved

void PhosphorServices::UPowerHost::deviceRemoved ( PhosphorServices::UPowerDevice device)
signal

◆ devices()

QList< UPowerDevice * > PhosphorServices::UPowerHost::devices ( ) const

◆ displayDevice()

UPowerDevice * PhosphorServices::UPowerHost::displayDevice ( ) const

◆ displayDeviceChanged

void PhosphorServices::UPowerHost::displayDeviceChanged ( )
signal

◆ onBattery()

bool PhosphorServices::UPowerHost::onBattery ( ) const

◆ onBatteryChanged

void PhosphorServices::UPowerHost::onBatteryChanged ( )
signal

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