Qt wrapper around MessageFacility message
More...
#include <mfextensions/Receivers/qt_mf_msg.hh>
Qt wrapper around MessageFacility message
Definition at line 30 of file qt_mf_msg.hh.
qt_mf_msg::qt_mf_msg |
( |
std::string |
hostname, |
|
|
std::string |
category, |
|
|
std::string |
application, |
|
|
pid_t |
pid, |
|
|
timeval |
time |
|
) |
| |
Construct a qt_mf_msg
- Parameters
-
hostname | Hostname of the message source |
category | Category of the message |
application | Application of the message |
pid | PID of the message |
time | Timestamp of the message |
Definition at line 10 of file qt_mf_msg.cc.
QString const& qt_mf_msg::app |
( |
| ) |
const |
|
inline |
Get the application of the message
- Returns
- Message application
Definition at line 80 of file qt_mf_msg.hh.
QString const& qt_mf_msg::cat |
( |
| ) |
const |
|
inline |
Get the category of the message
- Returns
- Message category
Definition at line 75 of file qt_mf_msg.hh.
QColor const& qt_mf_msg::color |
( |
| ) |
const |
|
inline |
Get the severity-based color of the message
- Returns
- Color of the message
Definition at line 60 of file qt_mf_msg.hh.
QString const& qt_mf_msg::host |
( |
| ) |
const |
|
inline |
Get the host from which the message came
- Returns
- Hostname of message
Definition at line 70 of file qt_mf_msg.hh.
size_t qt_mf_msg::seq |
( |
| ) |
const |
|
inline |
Get the sequence number of the message
- Returns
- Message sequence number
Definition at line 90 of file qt_mf_msg.hh.
void qt_mf_msg::setEventID |
( |
std::string |
eventID | ) |
|
|
inline |
Set the Event ID of the message
- Parameters
-
Definition at line 133 of file qt_mf_msg.hh.
void qt_mf_msg::setFileName |
( |
std::string |
file | ) |
|
|
inline |
Set the file name field
- Parameters
-
file | File generating message |
Definition at line 118 of file qt_mf_msg.hh.
void qt_mf_msg::setHostAddr |
( |
std::string |
hostaddr | ) |
|
|
inline |
Set the hostaddr field
- Parameters
-
hostaddr | Host address of message source |
Definition at line 113 of file qt_mf_msg.hh.
void qt_mf_msg::setLineNumber |
( |
std::string |
line | ) |
|
|
inline |
Set the line number field
- Parameters
-
Definition at line 123 of file qt_mf_msg.hh.
void qt_mf_msg::setMessage |
( |
std::string |
prefix, |
|
|
int |
iteration, |
|
|
std::string |
msg |
|
) |
| |
Set the message
- Parameters
-
prefix | Message prefix |
iteration | Message iteration (run/event no) |
msg | Message text |
Definition at line 53 of file qt_mf_msg.cc.
void qt_mf_msg::setModule |
( |
std::string |
module | ) |
|
|
inline |
Set the module name
- Parameters
-
module | Module generating message |
Definition at line 128 of file qt_mf_msg.hh.
void qt_mf_msg::setSeverity |
( |
mf::ELseverityLevel |
sev | ) |
|
Set the Severity of the message (MF levels)
- Parameters
-
sev | Severity level of the message |
Definition at line 24 of file qt_mf_msg.cc.
void qt_mf_msg::setSeverityLevel |
( |
sev_code_t |
sev | ) |
|
|
inline |
Set the severity code of the message (Viewer levels)
- Parameters
-
sev | Severity code of the message |
Definition at line 101 of file qt_mf_msg.hh.
sev_code_t qt_mf_msg::sev |
( |
| ) |
const |
|
inline |
Get the severity of the message
- Returns
- Message severity
Definition at line 65 of file qt_mf_msg.hh.
QString const& qt_mf_msg::text |
( |
bool |
mode | ) |
const |
|
inline |
Get the text of the message
- Parameters
-
mode | Whether to return the short-form text |
- Returns
- Text of the message
Definition at line 55 of file qt_mf_msg.hh.
timeval qt_mf_msg::time |
( |
| ) |
const |
|
inline |
Get the message timestamp
- Returns
- Timestamp of the message
Definition at line 85 of file qt_mf_msg.hh.
void qt_mf_msg::updateText |
( |
| ) |
|
Parse fields and create HTML string representing message
Definition at line 59 of file qt_mf_msg.cc.
The documentation for this class was generated from the following files: