|
QtPdCom
1.5.2
|
#include <MessageImpl.h>


Public Member Functions | |
| Impl (Message *) | |
| Constructor. | |
| ~Impl () | |
| Destructor. | |
| void | fromPlainXmlElement (QDomElement, const QString &=QString()) |
| Constructor with XML element. | |
| void | fromPdComMessage (const PdCom::Message &) |
| Constructor with PdCom5 message. | |
Static Public Member Functions | |
| static QString | pathFromPlainXmlElement (QDomElement, const QString &=QString()) |
| Get the path. | |
| static int | indexFromPlainXmlElement (QDomElement) |
| Get the index. | |
| static QString | timeString (quint64) |
| Returns the message time as a string. | |
Private Types | |
| typedef QMap< QString, QString > | TranslationMap |
Private Slots | |
| void | valueChanged () |
| Variable value changed. | |
Private Member Functions | |
| void | loadTranslations (QDomElement, TranslationMap &) |
| Processes a TextNode XML element. | |
Static Private Member Functions | |
| static Message::Type | typeFromString (const QString &) |
| Converts a message type string to the appropriate Type. | |
Private Attributes | |
| Message *const | parent |
| Type | type |
| Message type. | |
| QString | path |
| Path of the process variable. | |
| int | index |
| TranslationMap | text |
| Text of the message. | |
| TranslationMap | description |
| Description of the message. | |
| DoubleVariable | variable |
| MessageModel::Impl::MessageItem * | currentItem |
| bool | announced |
| Already announced via anyMessage. | |
Friends | |
| class | Message |
| class | MessageModel |
|
private |
| Message::Impl::Impl | ( | Message * | message | ) |
Constructor.
References announced, currentItem, index, QtPdCom::Message::Information, Message, parent, type, valueChanged(), and variable.
| Message::Impl::~Impl | ( | ) |
Destructor.
| void Message::Impl::fromPdComMessage | ( | const PdCom::Message & | message | ) |
Constructor with PdCom5 message.
References QtPdCom::Message::Error, index, QtPdCom::Message::Information, path, text, type, and QtPdCom::Message::Warning.
| void Message::Impl::fromPlainXmlElement | ( | QDomElement | elem, |
| const QString & | pathPrefix = QString() ) |
Constructor with XML element.
| elem | Element. |
| pathPrefix | Prefix to path (with leading /). |
References description, index, indexFromPlainXmlElement(), loadTranslations(), path, pathFromPlainXmlElement(), text, type, and typeFromString().
|
static |
Get the index.
| elem | Element. |
Referenced by fromPlainXmlElement(), and QtPdCom::MessageModel::load().
|
private |
Processes a TextNode XML element.
| elem | Element. |
| map | Translation map. |
Referenced by fromPlainXmlElement().
|
static |
Get the path.
| elem | Element. |
| pathPrefix | Prefix to path (with leading /). |
Referenced by fromPlainXmlElement(), and QtPdCom::MessageModel::load().
|
static |
Returns the message time as a string.
|
staticprivate |
Converts a message type string to the appropriate Type.
References QtPdCom::Message::Critical, QtPdCom::Message::Error, QtPdCom::Message::Information, and QtPdCom::Message::Warning.
Referenced by fromPlainXmlElement().
|
privateslot |
|
friend |
References Message.
Referenced by Impl(), Message, and MessageModel.
|
friend |
References Message, and MessageModel.
Referenced by MessageModel.
|
private |
Already announced via anyMessage.
Referenced by Impl().
|
private |
Referenced by Impl().
|
private |
Description of the message.
Referenced by fromPlainXmlElement().
|
private |
Referenced by fromPdComMessage(), fromPlainXmlElement(), and Impl().
|
private |
Referenced by Impl(), and valueChanged().
|
private |
Path of the process variable.
Referenced by fromPdComMessage(), and fromPlainXmlElement().
|
private |
Text of the message.
Referenced by fromPdComMessage(), and fromPlainXmlElement().
|
private |
Message type.
Referenced by fromPdComMessage(), fromPlainXmlElement(), and Impl().
|
private |
Referenced by Impl().