QtPdCom  1.3.3
Public Member Functions | Static Public Member Functions | Private Types | Private Slots | Private Member Functions | Static Private Member Functions | Private Attributes | Friends | List of all members
QtPdCom::Message::Impl Class Reference

#include <MessageImpl.h>

Inheritance diagram for QtPdCom::Message::Impl:
Inheritance graph
[legend]
Collaboration diagram for QtPdCom::Message::Impl:
Collaboration graph
[legend]

Public Member Functions

 Impl (Message *)
 Constructor. More...
 
 ~Impl ()
 Destructor. More...
 
void fromPlainXmlElement (QDomElement, const QString &=QString())
 Constructor with XML element. More...
 
void fromPdComMessage (const PdCom::Message &)
 Constructor with PdCom5 message. More...
 

Static Public Member Functions

static QString pathFromPlainXmlElement (QDomElement, const QString &=QString())
 Get the path. More...
 
static int indexFromPlainXmlElement (QDomElement)
 Get the index. More...
 
static QString timeString (quint64)
 Returns the message time as a string. More...
 

Private Types

typedef QMap< QString, QString > TranslationMap
 

Private Slots

void valueChanged ()
 Variable value changed. More...
 

Private Member Functions

void loadTranslations (QDomElement, TranslationMap &)
 Processes a TextNode XML element. More...
 

Static Private Member Functions

static Message::Type typeFromString (const QString &)
 Converts a message type string to the appropriate Type. More...
 

Private Attributes

Message *const parent
 
Type type
 Message type. More...
 
QString path
 Path of the process variable. More...
 
int index
 
TranslationMap text
 Text of the message. More...
 
TranslationMap description
 Description of the message. More...
 
DoubleVariable variable
 
MessageModel::Impl::MessageItemcurrentItem
 
bool announced
 Already announced via anyMessage. More...
 

Friends

class Message
 
class MessageModel
 

Member Typedef Documentation

◆ TranslationMap

typedef QMap<QString, QString> QtPdCom::Message::Impl::TranslationMap
private

Constructor & Destructor Documentation

◆ Impl()

Message::Impl::Impl ( Message message)

Constructor.

◆ ~Impl()

Message::Impl::~Impl ( )

Destructor.

Member Function Documentation

◆ fromPdComMessage()

void Message::Impl::fromPdComMessage ( const PdCom::Message &  message)

Constructor with PdCom5 message.

References QtPdCom::Message::Error, QtPdCom::Message::Information, and QtPdCom::Message::Warning.

◆ fromPlainXmlElement()

void Message::Impl::fromPlainXmlElement ( QDomElement  elem,
const QString &  pathPrefix = QString() 
)

Constructor with XML element.

Parameters
elemElement.
pathPrefixPrefix to path (with leading /).

◆ indexFromPlainXmlElement()

int Message::Impl::indexFromPlainXmlElement ( QDomElement  elem)
static

Get the index.

Parameters
elemElement.

Referenced by QtPdCom::MessageModel::load().

◆ loadTranslations()

void Message::Impl::loadTranslations ( QDomElement  elem,
TranslationMap map 
)
private

Processes a TextNode XML element.

Parameters
elemElement.
mapTranslation map.

◆ pathFromPlainXmlElement()

QString Message::Impl::pathFromPlainXmlElement ( QDomElement  elem,
const QString &  pathPrefix = QString() 
)
static

Get the path.

Parameters
elemElement.
pathPrefixPrefix to path (with leading /).

Referenced by QtPdCom::MessageModel::load().

◆ timeString()

QString Message::Impl::timeString ( quint64  time_ns)
static

Returns the message time as a string.

◆ typeFromString()

Message::Type Message::Impl::typeFromString ( const QString &  str)
staticprivate

Converts a message type string to the appropriate Type.

References QtPdCom::Message::Critical, QtPdCom::Message::Error, QtPdCom::Message::Information, and QtPdCom::Message::Warning.

◆ valueChanged

void Message::Impl::valueChanged ( )
privateslot

Variable value changed.

Friends And Related Function Documentation

◆ Message

friend class Message
friend

◆ MessageModel

friend class MessageModel
friend

Member Data Documentation

◆ announced

bool QtPdCom::Message::Impl::announced
private

Already announced via anyMessage.

◆ currentItem

MessageModel::Impl::MessageItem* QtPdCom::Message::Impl::currentItem
private

◆ description

TranslationMap QtPdCom::Message::Impl::description
private

Description of the message.

◆ index

int QtPdCom::Message::Impl::index
private

◆ parent

Message* const QtPdCom::Message::Impl::parent
private

◆ path

QString QtPdCom::Message::Impl::path
private

Path of the process variable.

◆ text

TranslationMap QtPdCom::Message::Impl::text
private

Text of the message.

◆ type

Type QtPdCom::Message::Impl::type
private

Message type.

◆ variable

DoubleVariable QtPdCom::Message::Impl::variable
private

The documentation for this class was generated from the following files: