One system-tray item.
More...
#include <phosphor-services/include/PhosphorServices/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()
| PhosphorServices::StatusNotifierItem::StatusNotifierItem |
( |
const QString & |
dbusService, |
|
|
const QString & |
dbusPath, |
|
|
QObject * |
parent = nullptr |
|
) |
| |
dbusServiceAndPath is the canonical form the Watcher produces: "uniqueName/object/path".
Splitting it is the host's job before constructing.
◆ ~StatusNotifierItem()
| PhosphorServices::StatusNotifierItem::~StatusNotifierItem |
( |
| ) |
|
|
override |
◆ activate
| void PhosphorServices::StatusNotifierItem::activate |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
|
slot |
◆ attentionIconImage()
| QImage PhosphorServices::StatusNotifierItem::attentionIconImage |
( |
| ) |
const |
◆ category()
| QString PhosphorServices::StatusNotifierItem::category |
( |
| ) |
const |
◆ categoryChanged
| void PhosphorServices::StatusNotifierItem::categoryChanged |
( |
| ) |
|
|
signal |
◆ contextMenu
| void PhosphorServices::StatusNotifierItem::contextMenu |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
|
slot |
◆ dbusPath()
| QString PhosphorServices::StatusNotifierItem::dbusPath |
( |
| ) |
const |
◆ dbusService()
| QString PhosphorServices::StatusNotifierItem::dbusService |
( |
| ) |
const |
◆ iconChanged
| void PhosphorServices::StatusNotifierItem::iconChanged |
( |
| ) |
|
|
signal |
◆ iconImage()
| QImage PhosphorServices::StatusNotifierItem::iconImage |
( |
| ) |
const |
◆ id()
| QString PhosphorServices::StatusNotifierItem::id |
( |
| ) |
const |
◆ idChanged
| void PhosphorServices::StatusNotifierItem::idChanged |
( |
| ) |
|
|
signal |
◆ isValid()
| bool PhosphorServices::StatusNotifierItem::isValid |
( |
| ) |
const |
◆ itemIsMenu()
| bool PhosphorServices::StatusNotifierItem::itemIsMenu |
( |
| ) |
const |
◆ menuPath()
| QString PhosphorServices::StatusNotifierItem::menuPath |
( |
| ) |
const |
◆ menuPathChanged
| void PhosphorServices::StatusNotifierItem::menuPathChanged |
( |
| ) |
|
|
signal |
◆ overlayIconImage()
| QImage PhosphorServices::StatusNotifierItem::overlayIconImage |
( |
| ) |
const |
◆ preferredIconSize()
| int PhosphorServices::StatusNotifierItem::preferredIconSize |
( |
| ) |
const |
◆ scroll
| void PhosphorServices::StatusNotifierItem::scroll |
( |
int |
delta, |
|
|
const QString & |
orientation |
|
) |
| |
|
slot |
◆ secondaryActivate
| void PhosphorServices::StatusNotifierItem::secondaryActivate |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
|
slot |
◆ setPreferredIconSize()
| void PhosphorServices::StatusNotifierItem::setPreferredIconSize |
( |
int |
size | ) |
|
Preferred render size in logical pixels.
Passed through to the icon resolver so we don't upscale a 16×16 themed icon when the panel asks for 24×24 — XDG spec ranks "next-size-up" higher than "scaled current size".
◆ status()
| Status PhosphorServices::StatusNotifierItem::status |
( |
| ) |
const |
◆ statusChanged
| void PhosphorServices::StatusNotifierItem::statusChanged |
( |
| ) |
|
|
signal |
◆ title()
| QString PhosphorServices::StatusNotifierItem::title |
( |
| ) |
const |
◆ titleChanged
| void PhosphorServices::StatusNotifierItem::titleChanged |
( |
| ) |
|
|
signal |
◆ toolTipBody()
| QString PhosphorServices::StatusNotifierItem::toolTipBody |
( |
| ) |
const |
◆ toolTipChanged
| void PhosphorServices::StatusNotifierItem::toolTipChanged |
( |
| ) |
|
|
signal |
◆ toolTipTitle()
| QString PhosphorServices::StatusNotifierItem::toolTipTitle |
( |
| ) |
const |
◆ validChanged
| void PhosphorServices::StatusNotifierItem::validChanged |
( |
| ) |
|
|
signal |
The documentation for this class was generated from the following file: