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

The shell-side counterpart to StatusNotifierWatcher. More...

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

Inheritance diagram for PhosphorServices::StatusNotifierHost:
[legend]

Signals

void itemAdded (StatusNotifierItem *item)
 
void itemRemoved (StatusNotifierItem *item)
 
void itemCountChanged ()
 

Public Member Functions

 StatusNotifierHost (QObject *parent=nullptr)
 
 ~StatusNotifierHost () override
 
QList< StatusNotifierItem * > items () const
 
int itemCount () const
 
StatusNotifierItemitemAt (int index) const
 

Detailed Description

The shell-side counterpart to StatusNotifierWatcher.

One instance per process. Claims org.kde.StatusNotifierHost-<pid>, registers with whichever watcher won the session-bus race, watches for items, and exposes them as a flat collection of StatusNotifierItem QObjects.

Lifetime is the shell's — typically constructed by the shell engine and parented to it. Items emitted via itemAdded() are owned by the host and will be deleted on itemRemoved().

Constructor & Destructor Documentation

◆ StatusNotifierHost()

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

◆ ~StatusNotifierHost()

PhosphorServices::StatusNotifierHost::~StatusNotifierHost ( )
override

Member Function Documentation

◆ itemAdded

void PhosphorServices::StatusNotifierHost::itemAdded ( StatusNotifierItem item)
signal

◆ itemAt()

StatusNotifierItem * PhosphorServices::StatusNotifierHost::itemAt ( int  index) const

◆ itemCount()

int PhosphorServices::StatusNotifierHost::itemCount ( ) const

◆ itemCountChanged

void PhosphorServices::StatusNotifierHost::itemCountChanged ( )
signal

◆ itemRemoved

void PhosphorServices::StatusNotifierHost::itemRemoved ( StatusNotifierItem item)
signal

◆ items()

QList< StatusNotifierItem * > PhosphorServices::StatusNotifierHost::items ( ) const

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