21 #ifndef UNITY_SHELL_NOTIFICATIONS_MODELINTERFACE_H
22 #define UNITY_SHELL_NOTIFICATIONS_MODELINTERFACE_H
24 #include <unity/SymbolExport.h>
26 #include <QtCore/QAbstractListModel>
34 namespace notifications
61 Q_PROPERTY(
bool confirmationPlaceholder READ confirmationPlaceholder WRITE setConfirmationPlaceholder NOTIFY confirmationPlaceholderChanged)
65 explicit
ModelInterface(QObject* parent = 0) : QAbstractListModel(parent) { }
72 virtual bool confirmationPlaceholder()
const = 0;
73 virtual void setConfirmationPlaceholder(
bool confirmationPlaceholder) = 0;
82 RoleType = Qt::UserRole + 1,
83 RoleUrgency = Qt::UserRole + 2,
84 RoleId = Qt::UserRole + 3,
85 RoleSummary = Qt::UserRole + 4,
86 RoleBody = Qt::UserRole + 5,
87 RoleValue = Qt::UserRole + 6,
88 RoleIcon = Qt::UserRole + 7,
89 RoleSecondaryIcon = Qt::UserRole + 8,
90 RoleActions = Qt::UserRole + 9,
91 RoleHints = Qt::UserRole + 10,
92 RoleNotification = Qt::UserRole + 11
101 void confirmationPlaceholderChanged(
bool confirmationPlaceholder);
110 #endif // UNITY_SHELL_NOTIFICATIONS_MODELINTERFACE_H
A list of notifications to be displayed.
Definition: ModelInterface.h:47
Roles
NotificationModel's data-role enumeration.
Definition: ModelInterface.h:81
Top-level namespace for all things Unity-related.
Definition: Version.h:37