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
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
@ RoleActions
Definition ModelInterface.h:89
@ RoleValue
Definition ModelInterface.h:86
@ RoleBody
Definition ModelInterface.h:85
@ RoleSecondaryIcon
Definition ModelInterface.h:88
@ RoleHints
Definition ModelInterface.h:90
@ RoleUrgency
Definition ModelInterface.h:82
@ RoleSummary
Definition ModelInterface.h:84
@ RoleId
Definition ModelInterface.h:83
@ RoleIcon
Definition ModelInterface.h:87
@ RoleNotification
Definition ModelInterface.h:91
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 Lomiri-related.
Definition Version.h:38