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
60 Q_PROPERTY(
bool confirmationPlaceholder READ confirmationPlaceholder WRITE setConfirmationPlaceholder NOTIFY confirmationPlaceholderChanged)
64 explicit ModelInterface(QObject* parent = 0) : QAbstractListModel(parent) { }
71 virtual bool confirmationPlaceholder()
const = 0;
72 virtual void setConfirmationPlaceholder(
bool confirmationPlaceholder) = 0;
81 RoleType = Qt::UserRole + 1,
82 RoleUrgency = Qt::UserRole + 2,
83 RoleId = Qt::UserRole + 3,
84 RoleSummary = Qt::UserRole + 4,
85 RoleBody = Qt::UserRole + 5,
86 RoleValue = Qt::UserRole + 6,
87 RoleIcon = Qt::UserRole + 7,
88 RoleSecondaryIcon = Qt::UserRole + 8,
89 RoleActions = Qt::UserRole + 9,
90 RoleHints = Qt::UserRole + 10,
91 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:80
Top-level namespace for all things Unity-related.
Definition: Version.h:37