Plasma-workspace
notifications.h
29class NOTIFICATIONMANAGER_EXPORT Notifications : public QSortFilterProxyModel, public QQmlParserStatus
62 Q_PROPERTY(bool showDismissed READ showDismissed WRITE setShowDismissed NOTIFY showDismissedChanged)
70 Q_PROPERTY(QStringList blacklistedDesktopEntries READ blacklistedDesktopEntries WRITE setBlacklistedDesktopEntries NOTIFY blacklistedDesktopEntriesChanged)
78 Q_PROPERTY(QStringList blacklistedNotifyRcNames READ blacklistedNotifyRcNames WRITE setBlacklistedNotifyRcNames NOTIFY blacklistedNotifyRcNamesChanged)
90 Q_PROPERTY(QStringList whitelistedDesktopEntries READ whitelistedDesktopEntries WRITE setWhitelistedDesktopEntries NOTIFY whitelistedDesktopEntriesChanged)
102 Q_PROPERTY(QStringList whitelistedNotifyRcNames READ whitelistedNotifyRcNames WRITE setWhitelistedNotifyRcNames NOTIFY whitelistedNotifyRcNamesChanged)
109 Q_PROPERTY(bool showNotifications READ showNotifications WRITE setShowNotifications NOTIFY showNotificationsChanged)
167 Q_PROPERTY(bool expandUnread READ expandUnread WRITE setExpandUnread NOTIFY expandUnreadChanged)
177 Q_PROPERTY(int activeNotificationsCount READ activeNotificationsCount NOTIFY activeNotificationsCountChanged)
182 Q_PROPERTY(int expiredNotificationsCount READ expiredNotificationsCount NOTIFY expiredNotificationsCountChanged)
189 Q_PROPERTY(QDateTime lastRead READ lastRead WRITE setLastRead RESET resetLastRead NOTIFY lastReadChanged)
196 Q_PROPERTY(int unreadNotificationsCount READ unreadNotificationsCount NOTIFY unreadNotificationsCountChanged)
221 IdRole = Qt::UserRole + 1, ///< A notification identifier. This can be uint notification ID or string application job source.
223 ImageRole = Qt::DecorationRole, ///< The notification main image, which is not the application icon. Only valid for pixmap icons.
236 IconNameRole, ///< The notification main icon name, which is not the application icon. Only valid for icon names, if a URL supplied, it is loaded and
239 DesktopEntryRole, ///< The desktop entry (without .desktop suffix, e.g. org.kde.spectacle) of the application that sent the notification.
240 NotifyRcNameRole, ///< The notifyrc name (e.g. spectaclerc) of the application that sent the notification.
244 OriginNameRole, ///< The name of the device or account the notification originally came from, e.g. "My Phone" (in case of device sync) or
248 JobStateRole, ///< The state of the job, either JobStateJopped, JobStateSuspended, or JobStateRunning.
249 PercentageRole, ///< The percentage of the job. Use @c jobsPercentage to get a global percentage for all jobs.
253 JobDetailsRole, ///< A pointer to a Job item itself containing more detailed information about the job
255 ActionNamesRole, ///< The IDs of the actions, excluding the default and settings action, e.g. [action1, action2]
256 ActionLabelsRole, ///< The user-visible labels of the actions, excluding the default and settings action, e.g. ["Accept", "Reject"]
257 HasDefaultActionRole, ///< Whether the notification has a default action, which is one that is invoked when the popup itself is clicked
258 DefaultActionLabelRole, ///< The user-visible label of the default action, typically not shown as the popup itself becomes clickable
260 UrlsRole, ///< A list of URLs associated with the notification, e.g. a path to a screenshot that was just taken or image received
262 UrgencyRole, ///< The notification urgency, either LowUrgency, NormalUrgency, or CriticalUrgency. Jobs do not have an urgency.
263 TimeoutRole, ///< The timeout for the notification in milliseconds. 0 means the notification should not timeout, -1 means a sensible default should be
266 ConfigurableRole, ///< Whether the notification can be configured because a desktopEntry or notifyRcName is known, or the notification has a setting
269 ClosableRole, ///< Whether the item can be closed. Notifications are always closable, jobs are only when in JobStateStopped.
271 ExpiredRole, ///< The notification timed out and closed. Actions on it cannot be invoked anymore.
272 DismissedRole, ///< The notification got temporarily hidden by the user but could still be interacted with.
273 ReadRole, ///< Whether the notification got read by the user. If true, the notification isn't considered unread even if created after lastRead.
276 UserActionFeedbackRole, ///< Whether this notification is a response/confirmation to an explicit user action. @since 5.18
280 ReplyPlaceholderTextRole, ///< A custom placeholder text for the reply action, e.g. "Reply to Max...". @since 5.18
281 ReplySubmitButtonTextRole, ///< A custom text for the reply submit button, e.g. "Submit Comment". @since 5.18
283 CategoryRole, ///< The (optional) category of the notification. Notifications can optionally have a type indicator. Although neither client or nor
284 ///< server must support this, some may choose to. Those servers implementing categories may use them to intelligently display the
286 ResidentRole, ///< Whether the notification should keep its actions even when they were invoked. @since 5.22
287 TransientRole, ///< Whether the notification is transient and should not be kept in history. @since 5.22
308 LowUrgency = 1 << 0, ///< The notification has low urgency, it is not important and may not be shown or added to a history.
309 NormalUrgency = 1 << 1, ///< The notification has normal urgency. This is also the default if no urgecny is supplied.
331 JobStateStopped, ///< The job is stopped. It has either finished (error is 0) or failed (error is not 0)
343 SortByTypeAndUrgency, ///< Sort notifications taking into account their type and urgency. The order is (descending): Critical, jobs, Normal, Low.
472 Q_INVOKABLE void invokeAction(const QModelIndex &idx, const QString &actionId, InvokeBehavior = None);
@ SortByTypeAndUrgency
Sort notifications taking into account their type and urgency. The order is (descending): Critical,...
Definition notifications.h:343
@ JobStateStopped
The job is stopped. It has either finished (error is 0) or failed (error is not 0)
Definition notifications.h:331
@ ApplicationNameRole
The user-visible name of the application (e.g. Spectacle)
Definition notifications.h:242
@ UpdatedRole
When the notification was last updated, invalid when it hasn't been updated.
Definition notifications.h:233
@ NotifyRcNameRole
The notifyrc name (e.g. spectaclerc) of the application that sent the notification.
Definition notifications.h:240
@ JobDetailsRole
A pointer to a Job item itself containing more detailed information about the job.
Definition notifications.h:253
@ ResidentRole
Whether the notification should keep its actions even when they were invoked.
Definition notifications.h:286
@ DismissedRole
The notification got temporarily hidden by the user but could still be interacted with.
Definition notifications.h:272
@ DefaultActionLabelRole
The user-visible label of the default action, typically not shown as the popup itself becomes clickab...
Definition notifications.h:258
@ ActionLabelsRole
The user-visible labels of the actions, excluding the default and settings action,...
Definition notifications.h:256
@ ReplySubmitButtonTextRole
A custom text for the reply submit button, e.g. "Submit Comment".
Definition notifications.h:281
@ IsGroupExpandedRole
Whether the group is expanded, this role is writable.
Definition notifications.h:228
@ HasDefaultActionRole
Whether the notification has a default action, which is one that is invoked when the popup itself is ...
Definition notifications.h:257
@ JobStateRole
The state of the job, either JobStateJopped, JobStateSuspended, or JobStateRunning.
Definition notifications.h:248
@ DesktopEntryRole
The desktop entry (without .desktop suffix, e.g. org.kde.spectacle) of the application that sent the ...
Definition notifications.h:239
@ ConfigureActionLabelRole
The user-visible label for the settings action.
Definition notifications.h:268
@ ReplySubmitButtonIconNameRole
A custom icon name for the reply submit button.
Definition notifications.h:282
@ ActionNamesRole
The IDs of the actions, excluding the default and settings action, e.g. [action1, action2].
Definition notifications.h:255
@ ExpiredRole
The notification timed out and closed. Actions on it cannot be invoked anymore.
Definition notifications.h:271
@ UserActionFeedbackRole
Whether this notification is a response/confirmation to an explicit user action.
Definition notifications.h:276
@ ReplyPlaceholderTextRole
A custom placeholder text for the reply action, e.g. "Reply to Max...".
Definition notifications.h:280
@ ClosableRole
Whether the item can be closed. Notifications are always closable, jobs are only when in JobStateStop...
Definition notifications.h:269
@ UrgencyRole
The notification urgency, either LowUrgency, NormalUrgency, or CriticalUrgency. Jobs do not have an u...
Definition notifications.h:262
@ UrlsRole
A list of URLs associated with the notification, e.g. a path to a screenshot that was just taken or i...
Definition notifications.h:260
@ ExpandedGroupChildrenCountRole
The number of children in a group that are expanded.
Definition notifications.h:227
@ TypeRole
The type of model entry, either NotificationType or JobType.
Definition notifications.h:231
@ PercentageRole
The percentage of the job. Use jobsPercentage to get a global percentage for all jobs.
Definition notifications.h:249
@ TransientRole
Whether the notification is transient and should not be kept in history.
Definition notifications.h:287
UserRole
SortOrder
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:14:59 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:14:59 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.