KDEUI
Go to the documentation of this file.
21 #ifndef KSTATUSNOTIFIERITEM_H
22 #define KSTATUSNOTIFIERITEM_H
24 #include <QtCore/QObject>
25 #include <QtCore/QString>
26 #include <QtDBus/QDBusArgument>
27 #include <QtCore/QPoint>
36 class KStatusNotifierItemPrivate;
78 Q_PROPERTY(
ItemCategory category READ category WRITE setCategory )
79 Q_PROPERTY( QString title READ title WRITE setTitle )
80 Q_PROPERTY(
ItemStatus status READ status WRITE setStatus )
81 Q_PROPERTY( QString iconName READ iconName WRITE setIconByName )
82 Q_PROPERTY( QString overlayIconName READ overlayIconName WRITE setOverlayIconByName )
83 Q_PROPERTY( QString attentionIconName READ attentionIconName WRITE setAttentionIconByName )
84 Q_PROPERTY( QString toolTipIconName READ toolTipIconName WRITE setToolTipIconByName )
85 Q_PROPERTY( QString toolTipTitle READ toolTipTitle WRITE setToolTipTitle )
86 Q_PROPERTY( QString toolTipSubTitle READ toolTipSubTitle WRITE setToolTipSubTitle )
88 friend class KStatusNotifierItemDBus;
89 friend class KStatusNotifierItemPrivate;
112 ApplicationStatus = 1,
170 void setCategory(
const ItemCategory category);
175 ItemCategory category()
const;
180 void setTitle(
const QString &title);
185 QString title()
const;
190 void setStatus(
const ItemStatus status);
195 ItemStatus status()
const;
204 void setIconByName(
const QString &
name);
210 QString iconName()
const;
217 void setIconByPixmap(
const QIcon &icon);
222 QIcon iconPixmap()
const;
229 void setOverlayIconByName(
const QString &
name);
234 QString overlayIconName()
const;
243 void setOverlayIconByPixmap(
const QIcon &icon);
248 QIcon overlayIconPixmap()
const;
259 void setAttentionIconByName(
const QString &
name);
266 QString attentionIconName()
const;
274 void setAttentionIconByPixmap(
const QIcon &icon);
279 QIcon attentionIconPixmap()
const;
285 void setAttentionMovieByName(
const QString &
name);
291 QString attentionMovieName()
const;
303 void setToolTip(
const QString &iconName,
const QString &title,
const QString &subTitle);
309 void setToolTip(
const QIcon &icon,
const QString &title,
const QString &subTitle);
316 void setToolTipIconByName(
const QString &
name);
322 QString toolTipIconName()
const;
330 void setToolTipIconByPixmap(
const QIcon &icon);
335 QIcon toolTipIconPixmap()
const;
340 void setToolTipTitle(
const QString &title);
345 QString toolTipTitle()
const;
350 void setToolTipSubTitle(
const QString &subTitle);
355 QString toolTipSubTitle()
const;
364 void setContextMenu(
KMenu *menu);
369 KMenu *contextMenu()
const;
381 void setAssociatedWidget(
QWidget *parent);
386 QWidget *associatedWidget()
const;
396 void setStandardActionsEnabled(
bool enabled);
401 bool standardActionsEnabled()
const;
411 void showMessage(
const QString &title,
const QString &message,
const QString &icon,
int timeout = 10000);
422 virtual void activate(
const QPoint &pos = QPoint());
456 bool eventFilter(
QObject *watched, QEvent *event);
459 KStatusNotifierItemPrivate *
const d;
461 Q_PRIVATE_SLOT(d,
void serviceChange(
const QString&
name,
462 const QString& oldOwner,
463 const QString& newOwner))
464 Q_PRIVATE_SLOT(d,
void checkForRegisteredHosts())
465 Q_PRIVATE_SLOT(d,
void registerToDaemon())
466 Q_PRIVATE_SLOT(d,
void contextMenuAboutToShow())
467 Q_PRIVATE_SLOT(d,
void maybeQuit())
468 Q_PRIVATE_SLOT(d,
void minimizeRestore())
469 Q_PRIVATE_SLOT(d,
void hideMenu())
470 Q_PRIVATE_SLOT(d,
void legacyWheelEvent(
int))
471 Q_PRIVATE_SLOT(d,
void legacyActivated(
QSystemTrayIcon::ActivationReason))
ItemStatus
All the possible status this icon can have, depending on the importance of the events that happens in...
void secondaryActivateRequested(const QPoint &pos)
Alternate activate action, for instance right mouse click, but this is not guaranteed since it's depe...
A container for a set of QAction objects.
void activateRequested(bool active, const QPoint &pos)
Inform the host application that an activation has been requested, for instance left mouse click,...
void scrollRequested(int delta, Qt::Orientation orientation)
Inform the host application that the mouse wheel (or another mean of scrolling that the visualization...
KDE Status notifier Item protocol implementation
const char * name(StandardAction id)
This will return the internal name of a given standard action.
ItemCategory
Different kinds of applications announce their type to the systemtray, so can be drawn in a different...
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Aug 27 2020 00:00:00 by
doxygen 1.8.20 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.