QtPdCom  1.5.2
QtPdCom::Message Class Reference

Process message. More...

#include <Message.h>

Inheritance diagram for QtPdCom::Message:
Collaboration diagram for QtPdCom::Message:

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< Implimpl

Friends

class MessageModel

Detailed Description

Process message.

Member Enumeration Documentation

◆ Type

Message type.

Enumerator
Information 

Non-critical information.

Warning 

Warning, that does not influence the process flow.

Error 

Error, that influences the process flow.

Critical 

Critical error, that makes the process unable to run.

Constructor & Destructor Documentation

◆ Message()

QtPdCom::Message::Message ( QObject * parent = nullptr)

Constructor.

References impl, and Message().

Referenced by Message(), and Q_ENUM().

◆ ~Message()

QtPdCom::Message::~Message ( )

Destructor.

Member Function Documentation

◆ getDescription()

QString QtPdCom::Message::getDescription ( const QString & lang = QString()) const
Returns
The message description.

References impl.

Referenced by Q_ENUM(), and QtPdCom::QmlMessage::setMessage().

◆ getIndex()

int QtPdCom::Message::getIndex ( ) const

◆ getPath()

const QString & QtPdCom::Message::getPath ( ) const

◆ getText()

QString QtPdCom::Message::getText ( const QString & lang = QString()) const
Returns
The message text. If the text is not available in the desired language, the default text (empty language) will be returned. If that is also not available, display the message path.

References impl.

Referenced by Q_ENUM(), and QtPdCom::QmlMessage::setMessage().

◆ getTime()

double QtPdCom::Message::getTime ( ) const
Returns
The message time in seconds.

References impl.

Referenced by Q_ENUM(), and QtPdCom::QmlMessage::setMessage().

◆ getTimeString()

QString QtPdCom::Message::getTimeString ( ) const

Returns the message time as a string.

References impl.

Referenced by Q_ENUM().

◆ getType()

Message::Type QtPdCom::Message::getType ( ) const

◆ isActive()

bool QtPdCom::Message::isActive ( ) const
Returns
True, if the message is currently active.

References impl.

Referenced by Q_ENUM(), and QtPdCom::QmlMessage::setMessage().

◆ Q_ENUM()

◆ stateChanged

void QtPdCom::Message::stateChanged ( )
signal

◆ MessageModel

friend class MessageModel
friend

References MessageModel.

Referenced by MessageModel.

Member Data Documentation

◆ Impl

class Q_DECL_HIDDEN QtPdCom::Message::Impl
private

◆ impl


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