|
ViewSolutions 1.0.100.30ae2aa
View solutions of qml for quasarapp projects
|
The HistoryNotificationsModel class stores the history of all sent notification messages. More...
#include <historynotificationsmodel.h>


Public Member Functions | |
| HistoryNotificationsModel (QObject *parent=nullptr) | |
| int | rowCount (const QModelIndex &parent) const override |
| QVariant | data (const QModelIndex &index, int role) const override |
| QHash< int, QByteArray > | roleNames () const override |
| void | addHistoryObject (const ViewSolutions::NotificationData ¬ificationData) |
| addHistoryObject adds a new notification to the history list. | |
| void | setHistory (const QList< ViewSolutions::NotificationData > &historyList) |
| setHistory replaces the complete history list with a new one. | |
| Q_INVOKABLE void | clearAllHistory () |
| clearAllHistory removes all notifications from the history. | |
| Q_INVOKABLE void | removeNotificationItemAtIndex (const int index) |
| removeNotificationItemAtIndex removes one notification from the history list. | |
The HistoryNotificationsModel class stores the history of all sent notification messages.
This model is used by the NotificationHistoryView to display the list of all notifications that were shown by the NotificationService.
Each row of the model exposes the following roles:
Example:
Definition at line 38 of file historynotificationsmodel.h.
|
explicit |
Definition at line 13 of file historynotificationsmodel.cpp.
| void ViewSolutions::HistoryNotificationsModel::addHistoryObject | ( | const ViewSolutions::NotificationData & | notificationData | ) |
addHistoryObject adds a new notification to the history list.
| notificationData | is data of the notification. |
Definition at line 51 of file historynotificationsmodel.cpp.

| void ViewSolutions::HistoryNotificationsModel::clearAllHistory | ( | ) |
clearAllHistory removes all notifications from the history.
Definition at line 61 of file historynotificationsmodel.cpp.
|
override |
Definition at line 22 of file historynotificationsmodel.cpp.
| void ViewSolutions::HistoryNotificationsModel::removeNotificationItemAtIndex | ( | const int | index | ) |
removeNotificationItemAtIndex removes one notification from the history list.
| index | is the index of the notification that should be removed. |
Definition at line 67 of file historynotificationsmodel.cpp.
|
override |
Definition at line 41 of file historynotificationsmodel.cpp.
|
override |
Definition at line 17 of file historynotificationsmodel.cpp.

| void ViewSolutions::HistoryNotificationsModel::setHistory | ( | const QList< ViewSolutions::NotificationData > & | historyList | ) |
setHistory replaces the complete history list with a new one.
| historyList | is the new history list. |
Definition at line 57 of file historynotificationsmodel.cpp.