21#ifndef UNITY_SHELL_NOTIFICATIONS_MODELINTERFACE_H
22#define UNITY_SHELL_NOTIFICATIONS_MODELINTERFACE_H
24#include <unity/SymbolExport.h>
26#include <QtCore/QAbstractListModel>
34namespace notifications
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,
A list of notifications to be displayed.
Definition ModelInterface.h:48
Roles
NotificationModel's data-role enumeration.
Definition ModelInterface.h:80
@ RoleSummary
Definition ModelInterface.h:84
@ RoleId
Definition ModelInterface.h:83
@ RoleBody
Definition ModelInterface.h:85
@ RoleHints
Definition ModelInterface.h:90
@ RoleIcon
Definition ModelInterface.h:87
@ RoleSecondaryIcon
Definition ModelInterface.h:88
@ RoleUrgency
Definition ModelInterface.h:82
@ RoleActions
Definition ModelInterface.h:89
@ RoleNotification
Definition ModelInterface.h:91
@ RoleValue
Definition ModelInterface.h:86
bool confirmationPlaceholder
Whether a placeholder for confirmation should be kept at the beginning.
Definition ModelInterface.h:60
void confirmationPlaceholderChanged(bool confirmationPlaceholder)
Top-level namespace for all things Unity-related.
Definition Version.h:38