|
QtPdCom
1.6.1
|
#include <Message.h>


Classes | |
| struct | Exception |
| Exception type. More... | |
| class | Impl |
Public Types | |
| enum | Type { Information , Warning , Error , Critical } |
| Message type. More... | |
Signals | |
| void | stateChanged () |
Public Member Functions | |
| Q_ENUM (Type) | |
| Message (QObject *parent=nullptr) | |
| Constructor. | |
| ~Message () | |
| Destructor. | |
| bool | isActive () const |
| double | getTime () const |
| Type | getType () const |
| const QString & | getPath () const |
| int | getIndex () const |
| QString | getText (const QString &=QString()) const |
| QString | getDescription (const QString &=QString()) const |
| QString | getTimeString () const |
| Returns the message time as a string. | |
Private Attributes | |
| class Q_DECL_HIDDEN | Impl |
| std::unique_ptr< Impl > | impl |
Friends | |
| class | MessageModel |
Process message.
Message type.
| QtPdCom::Message::Message | ( | QObject * | parent = nullptr | ) |
Constructor.
References impl, and Message().
Referenced by QtPdCom::MessageModel::Impl::addHistoricMessage(), QtPdCom::MessageModel::Impl::addProcessMessage(), QtPdCom::MessageModel::load(), Message(), and Q_ENUM().
| QtPdCom::Message::~Message | ( | ) |
Destructor.
| QString QtPdCom::Message::getDescription | ( | const QString & | lang = QString() | ) | const |
References impl.
Referenced by Q_ENUM(), and QtPdCom::QmlMessage::setMessage().
| int QtPdCom::Message::getIndex | ( | ) | const |
References impl.
Referenced by QtPdCom::MessageModel::connect(), Q_ENUM(), QtPdCom::QmlMessage::setMessage(), and QtPdCom::MessageModel::Impl::stateChanged().
| const QString & QtPdCom::Message::getPath | ( | ) | const |
References impl.
Referenced by QtPdCom::MessageModel::connect(), Q_ENUM(), QtPdCom::QmlMessage::setMessage(), and QtPdCom::MessageModel::Impl::stateChanged().
| QString QtPdCom::Message::getText | ( | const QString & | lang = QString() | ) | const |
References impl.
Referenced by Q_ENUM(), and QtPdCom::QmlMessage::setMessage().
| double QtPdCom::Message::getTime | ( | ) | const |
References impl.
Referenced by Q_ENUM(), and QtPdCom::QmlMessage::setMessage().
| QString QtPdCom::Message::getTimeString | ( | ) | const |
| Message::Type QtPdCom::Message::getType | ( | ) | const |
References impl.
Referenced by Q_ENUM(), QtPdCom::QmlMessage::setMessage(), and QtPdCom::MessageModelUnion::Impl::updateCurrentMessage().
| bool QtPdCom::Message::isActive | ( | ) | const |
References impl.
Referenced by Q_ENUM(), and QtPdCom::QmlMessage::setMessage().
| QtPdCom::Message::Q_ENUM | ( | Type | ) |
References getDescription(), getIndex(), getPath(), getText(), getTime(), getTimeString(), getType(), isActive(), and Message().
|
signal |
|
friend |
References MessageModel.
Referenced by MessageModel.
|
private |
|
private |
Referenced by QtPdCom::MessageModel::Impl::addHistoricMessage(), QtPdCom::MessageModel::Impl::addProcessMessage(), QtPdCom::MessageModel::connect(), getDescription(), getIndex(), getPath(), getText(), getTime(), getTimeString(), getType(), isActive(), QtPdCom::MessageModel::load(), Message(), and QtPdCom::MessageModel::Impl::stateChanged().