![]() |
UNIVERS
15.3
UNIVERS base processing software API
|
#include <hds_messenger.hpp>
Classes | |
| struct | Message |
Public Types | |
| enum | MsgType { UNDEFINED_MSG = 0, INFO_MSG, WARNING_MSG, ERROR_MSG, DEBUG_MSG, SHOW_PROGRESS_MSG, HIDE_PROGRESS_MSG, SET_PROGRESS_VALUE_MSG, SET_PROGRESS_RANGES_MSG, SET_PROGRESS_STATUS_MSG } |
Public Member Functions | |
| Messenger () | |
| virtual | ~Messenger () |
| virtual void | sendMsg (const Message &msg) const =0 |
| virtual Message | getMsg () const =0 |
| void | info (const QString &str) const |
| void | warning (const QString &str) const |
| void | error (const QString &str) const |
| void | debug (const QString &str) const |
Interface for messaging processing.
Type of the message. (qint32 used in local sockets)
| Enumerator | |
|---|---|
| UNDEFINED_MSG |
Message with undefined type. |
| INFO_MSG |
Info string message. |
| WARNING_MSG |
Warning string message. |
| ERROR_MSG |
Error string message. |
| DEBUG_MSG |
Debug string message. |
| SHOW_PROGRESS_MSG |
Show progress message. |
| HIDE_PROGRESS_MSG |
Hide progress message. |
| SET_PROGRESS_VALUE_MSG |
Set progress current value. |
| SET_PROGRESS_RANGES_MSG |
Set ranges for progress. |
| SET_PROGRESS_STATUS_MSG |
Set status for progress. |
| hds::Messenger::Messenger | ( | ) |
Default constructor.
|
virtual |
Destructor.
|
inline |
Send log message.
|
inline |
Send error message.
|
pure virtual |
Get first message with it's type, return message of undefined type
if no messages presents. Content of the message should be defined in compliance with the type.
Implemented in hds::MessengerLS, hds::MessengerFile, and hds::MessengerStd.
|
inline |
Send info message.
|
pure virtual |
Send message with provided type. Content of the message
should be defined in compliance with the type.
Implemented in hds::MessengerLS, hds::MessengerFile, and hds::MessengerStd.
|
inline |
Send warning message.
1.8.5