One system-tray item.
More...
#include <PhosphorServiceSni/StatusNotifierItem.h>
One system-tray item.
Owned by StatusNotifierHost. Wraps the DBus proxy + property cache + icon resolution. The host populates these from RegisteredStatusNotifierItems and refreshes them in response to per-item NewXxx signals.
◆ Status
| Enumerator |
|---|
| Passive | Item is dormant: could be hidden in an overflow.
|
| Active | Item is meaningful: show it normally.
|
| NeedsAttention | Use the attention icon + maybe animate.
|
◆ StatusNotifierItem()
| PhosphorServiceSni::StatusNotifierItem::StatusNotifierItem |
( |
const QString & | dbusService, |
|
|
const QString & | dbusPath, |
|
|
QObject * | parent = nullptr ) |
dbusService is the unique bus name, dbusPath the object path.
Watchers produce the canonical "uniqueName/object/path" concatenation; splitting it into the two args is the host's job. The item itself only ever sees the split form.
◆ ~StatusNotifierItem()
| PhosphorServiceSni::StatusNotifierItem::~StatusNotifierItem |
( |
| ) |
|
|
override |
◆ activate
| void PhosphorServiceSni::StatusNotifierItem::activate |
( |
int | x, |
|
|
int | y ) |
|
slot |
◆ attentionIconImage()
| QImage PhosphorServiceSni::StatusNotifierItem::attentionIconImage |
( |
| ) |
const |
|
nodiscard |
◆ category()
| QString PhosphorServiceSni::StatusNotifierItem::category |
( |
| ) |
const |
|
nodiscard |
◆ categoryChanged
| void PhosphorServiceSni::StatusNotifierItem::categoryChanged |
( |
| ) |
|
|
signal |
◆ contextMenu
| void PhosphorServiceSni::StatusNotifierItem::contextMenu |
( |
int | x, |
|
|
int | y ) |
|
slot |
◆ dbusPath()
| QString PhosphorServiceSni::StatusNotifierItem::dbusPath |
( |
| ) |
const |
|
nodiscard |
◆ dbusService()
| QString PhosphorServiceSni::StatusNotifierItem::dbusService |
( |
| ) |
const |
|
nodiscard |
◆ iconChanged
| void PhosphorServiceSni::StatusNotifierItem::iconChanged |
( |
| ) |
|
|
signal |
◆ iconImage()
| QImage PhosphorServiceSni::StatusNotifierItem::iconImage |
( |
| ) |
const |
|
nodiscard |
◆ id()
| QString PhosphorServiceSni::StatusNotifierItem::id |
( |
| ) |
const |
|
nodiscard |
◆ idChanged
| void PhosphorServiceSni::StatusNotifierItem::idChanged |
( |
| ) |
|
|
signal |
◆ isValid()
| bool PhosphorServiceSni::StatusNotifierItem::isValid |
( |
| ) |
const |
|
nodiscard |
◆ itemIsMenu()
| bool PhosphorServiceSni::StatusNotifierItem::itemIsMenu |
( |
| ) |
const |
|
nodiscard |
◆ menuPath()
| QString PhosphorServiceSni::StatusNotifierItem::menuPath |
( |
| ) |
const |
|
nodiscard |
◆ menuPathChanged
| void PhosphorServiceSni::StatusNotifierItem::menuPathChanged |
( |
| ) |
|
|
signal |
◆ overlayIconImage()
| QImage PhosphorServiceSni::StatusNotifierItem::overlayIconImage |
( |
| ) |
const |
|
nodiscard |
◆ preferredIconSize()
| int PhosphorServiceSni::StatusNotifierItem::preferredIconSize |
( |
| ) |
const |
|
nodiscard |
◆ scroll
| void PhosphorServiceSni::StatusNotifierItem::scroll |
( |
int | delta, |
|
|
const QString & | orientation ) |
|
slot |
◆ secondaryActivate
| void PhosphorServiceSni::StatusNotifierItem::secondaryActivate |
( |
int | x, |
|
|
int | y ) |
|
slot |
◆ setPreferredIconSize()
| void PhosphorServiceSni::StatusNotifierItem::setPreferredIconSize |
( |
int | size | ) |
|
Preferred render size in logical pixels.
Passed through to the icon resolver so we don't upscale a 16x16 themed icon when the panel asks for 24x24 (XDG spec ranks "next-size-up" higher than "scaled current size"). Q_INVOKABLE so QML delegates can configure render size on the item directly (e.g. via Component.onCompleted: trayItem.setPreferredIconSize(36)).
◆ status()
| Status PhosphorServiceSni::StatusNotifierItem::status |
( |
| ) |
const |
|
nodiscard |
◆ statusChanged
| void PhosphorServiceSni::StatusNotifierItem::statusChanged |
( |
| ) |
|
|
signal |
◆ title()
| QString PhosphorServiceSni::StatusNotifierItem::title |
( |
| ) |
const |
|
nodiscard |
◆ titleChanged
| void PhosphorServiceSni::StatusNotifierItem::titleChanged |
( |
| ) |
|
|
signal |
◆ toolTipBody()
| QString PhosphorServiceSni::StatusNotifierItem::toolTipBody |
( |
| ) |
const |
|
nodiscard |
◆ toolTipChanged
| void PhosphorServiceSni::StatusNotifierItem::toolTipChanged |
( |
| ) |
|
|
signal |
◆ toolTipTitle()
| QString PhosphorServiceSni::StatusNotifierItem::toolTipTitle |
( |
| ) |
const |
|
nodiscard |
◆ validChanged
| void PhosphorServiceSni::StatusNotifierItem::validChanged |
( |
| ) |
|
|
signal |
The documentation for this class was generated from the following file: