21#ifndef LOMIRI_SHELL_NOTIFICATIONS_MODELINTERFACE_H
22#define LOMIRI_SHELL_NOTIFICATIONS_MODELINTERFACE_H
24#include <lomiri/SymbolExport.h>
26#include <QtCore/QAbstractListModel>
34namespace 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
A list of notifications to be displayed.
Definition ModelInterface.h:48
Roles
NotificationModel's data-role enumeration.
Definition ModelInterface.h:80
void confirmationPlaceholderChanged(bool confirmationPlaceholder)
Top-level namespace for all things Lomiri-related.
Definition Version.h:38