KNotifications
knotification.h
59 Q_PROPERTY(QString defaultAction READ defaultAction WRITE setDefaultAction NOTIFY defaultActionChanged)
74 Q_PROPERTY(QString componentName READ componentName WRITE setComponentName NOTIFY componentNameChanged)
98 Q_PROPERTY(QVariantMap hints READ hints WRITE setHints NOTIFY hintsChanged)
132 RaiseWidgetOnActivation = 0x01,
137 CloseOnTimeout = 0x00,
144 Persistent = 0x02,
156 CloseWhenWidgetActivated = 0x04,
161 LoopSound = 0x08,
168 SkipGrouping = 0x10,
174 DefaultEvent = 0xF000,
226 KNOTIFICATIONS_DEPRECATED_VERSION(5, 75, "Use other constructor and call setWidget() explicitly")
227 explicit KNotification(const QString &eventId, QWidget *widget, const NotificationFlags &flags = CloseOnTimeout);
268 explicit KNotification(const QString &eventId, const NotificationFlags &flags, QObject *parent = nullptr);
277 * If the widget is activated, the notification will be automatically closed if the NotificationFlags specify that
280 * Depending on the configuration, the taskbar entry of the window containing the widget may blink.
358 * Set the pixmap that will be shown in the popup. If you want to use an icon from the icon theme use setIconName instead.
426 * auto replyAction = std::make_unique<KNotificationReplyAction>(i18nc("@action:button", "Reply"));
428 * QObject::connect(replyAction.get(), &KNotificationReplyAction::replied, [](const QString &text) {
580 * @param action will be 0 if the default action was activated, or the index of the action in the actions QStringList
736 * Adds a custom hint to the notification. Those are key-value pairs that can be interpreted by the respective notification backend to trigger additional,
790 * @param componentName used to determine the location of the config file. by default, appname is used
813 * @param componentName used to determine the location of the config file. by default, plasma_workspace is used
876 * @param componentName used to determine the location of the config file. by default, plasma_workspace is used
Q_PROPERTY(...)
Q_ENUM(...)
Q_SLOTSQ_SLOTS
void ref()
void deref()
virtual bool eventFilter(QObject *watched, QEvent *event)
virtual bool event(QEvent *e)
QCA_EXPORT QString appName()
Definition: knotification.h:32
Q_SIGNALSQ_SIGNALS
Q_FLAG(...)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Nov 28 2023 03:49:39 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Nov 28 2023 03:49:39 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.