KNotifications
knotification.h
127 Q_PROPERTY(QString componentName READ componentName WRITE setComponentName NOTIFY componentNameChanged)
151 Q_PROPERTY(QVariantMap hints READ hints WRITE setHints NOTIFY hintsChanged)
161 CloseOnTimeout = 0x00,
168 Persistent = 0x02,
173 LoopSound = 0x08,
180 SkipGrouping = 0x10,
190 CloseWhenWindowActivated = 0x20,
196 DefaultEvent = 0xF000,
244 explicit KNotification(const QString &eventId, NotificationFlags flags = CloseOnTimeout, QObject *parent = nullptr);
314 * Set the pixmap that will be shown in the popup. If you want to use an icon from the icon theme use setIconName instead.
383 * auto replyAction = std::make_unique<KNotificationReplyAction>(i18nc("@action:button", "Reply"));
385 * QObject::connect(replyAction.get(), &KNotificationReplyAction::replied, [](const QString &text) {
601 * Adds a custom hint to the notification. Those are key-value pairs that can be interpreted by the respective notification backend to trigger additional,
699 * @param componentName used to determine the location of the config file. by default, appname is used
720 * @param componentName used to determine the location of the config file. by default, plasma_workspace is used
741 event(StandardEvent eventId, const QString &text = QString(), const QPixmap &pixmap = QPixmap(), const NotificationFlags &flags = CloseOnTimeout);
758 event(StandardEvent eventId, const QString &title, const QString &text, const QPixmap &pixmap, const NotificationFlags &flags = CloseOnTimeout);
772 * @param componentName used to determine the location of the config file. by default, plasma_workspace is used
797 event(StandardEvent eventId, const QString &title, const QString &text, const QString &iconName, const NotificationFlags &flags = CloseOnTimeout);
812 static KNotification *event(StandardEvent eventId, const QString &title, const QString &text, const NotificationFlags &flags = CloseOnTimeout);
KNotification is the main class for creating notifications.
Definition knotification.h:96
void xdgActivationTokenChanged()
Emitted when xdgActivationToken changes.
Q_ENUM(...)
Q_FLAG(...)
Q_PROPERTY(...)
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
virtual bool event(QEvent *e)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:48:48 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:48:48 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.