The shell-side counterpart to StatusNotifierWatcher. More...
#include <phosphor-services/include/PhosphorServices/StatusNotifierHost.h>
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 |
| StatusNotifierItem * | itemAt (int index) const |
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().
|
explicit |
|
override |
|
signal |
| StatusNotifierItem * PhosphorServices::StatusNotifierHost::itemAt | ( | int | index | ) | const |
| int PhosphorServices::StatusNotifierHost::itemCount | ( | ) | const |
|
signal |
|
signal |
| QList< StatusNotifierItem * > PhosphorServices::StatusNotifierHost::items | ( | ) | const |