|
ViewSolutions 1.0.100.30ae2aa
View solutions of qml for quasarapp projects
|
The NotificationData class view data for NotificationServiceView. This class contains a structure with notification data. More...
#include <notificationdata.h>

Public Types | |
| enum | Type { Normal , Warning = 1 , Error = 2 } |
| The Type enum This enum contatins all available types of the notification messages. More... | |
Public Member Functions | |
| NotificationData (const QString &title="", const QString &text="", const QString &img="", int type=Type::Normal) | |
| NotificationData creates a new notification data object. | |
| Q_INVOKABLE QString | text () const |
| text This method return main text message of a question/notification object. | |
| Q_INVOKABLE QString | img () const |
| img This method return url to image of a question/notification object if url is empty then return default question/notification image. | |
| QString | imgSrc () const |
| imgSrc This method return url to image of a question/notification object. | |
| Q_INVOKABLE QString | title () const |
| title This method return title of a question/notification object. | |
| Q_INVOKABLE int | type () const |
| type This method return type of the notification message or code of the question. | |
| Q_INVOKABLE bool | isValid () const |
| isValid This method return true if this object is valid. | |
| void | setCode (int code) |
| setCode This method sets new code of the question. | |
| bool | operator== (const NotificationData &righ) |
| bool | operator!= (const NotificationData &righ) |
The NotificationData class view data for NotificationServiceView. This class contains a structure with notification data.
Example:
Definition at line 27 of file notificationdata.h.
The Type enum This enum contatins all available types of the notification messages.
| Enumerator | |
|---|---|
| Normal | This is message for general notification. |
| Warning | This is warning notification. |
| Error | This is critical error notifications. |
Definition at line 36 of file notificationdata.h.
|
explicit |
NotificationData creates a new notification data object.
| title | is the title of the notification. |
| text | is the message of the notification. |
| img | is the url of the notification image. |
| type | is the type code of the notification (see Type enum). |
Definition at line 11 of file notificationdata.cpp.


| QString ViewSolutions::NotificationData::img | ( | ) | const |
img This method return url to image of a question/notification object if url is empty then return default question/notification image.
Definition at line 25 of file notificationdata.cpp.


| QString ViewSolutions::NotificationData::imgSrc | ( | ) | const |
imgSrc This method return url to image of a question/notification object.
Definition at line 33 of file notificationdata.cpp.

| bool ViewSolutions::NotificationData::isValid | ( | ) | const |
isValid This method return true if this object is valid.
Definition at line 72 of file notificationdata.cpp.
| bool ViewSolutions::NotificationData::operator!= | ( | const NotificationData & | righ | ) |
| bool ViewSolutions::NotificationData::operator== | ( | const NotificationData & | righ | ) |
Definition at line 41 of file notificationdata.cpp.


| void ViewSolutions::NotificationData::setCode | ( | int | code | ) |
setCode This method sets new code of the question.
| code | are new value of the code. |
Definition at line 76 of file notificationdata.cpp.
| QString ViewSolutions::NotificationData::text | ( | ) | const |
text This method return main text message of a question/notification object.
Definition at line 21 of file notificationdata.cpp.

| QString ViewSolutions::NotificationData::title | ( | ) | const |
title This method return title of a question/notification object.
Definition at line 37 of file notificationdata.cpp.

| int ViewSolutions::NotificationData::type | ( | ) | const |
type This method return type of the notification message or code of the question.
Definition at line 68 of file notificationdata.cpp.
