Qt wrapper around MessageFacility message. More...
#include <mfextensions/Receivers/qt_mf_msg.hh>
Public Member Functions | |
qt_mf_msg (std::string hostname, std::string category, std::string application, pid_t pid, timeval time) | |
Construct a qt_mf_msg. | |
qt_mf_msg (const qt_mf_msg &) | |
QString const & | text (bool mode) const |
Get the text of the message. | |
QColor const & | color () const |
Get the severity-based color of the message. | |
sev_code_t | sev () const |
Get the severity of the message. | |
QString const & | host () const |
Get the host from which the message came. | |
QString const & | cat () const |
Get the category of the message. | |
QString const & | app () const |
Get the application of the message. | |
timeval | time () const |
Get the message timestamp. | |
size_t | seq () const |
Get the sequence number of the message. | |
void | setSeverity (mf::ELseverityLevel sev) |
void | setSeverityLevel (sev_code_t sev) |
void | setMessage (std::string prefix, int iteration, std::string msg) |
void | setHostAddr (std::string hostaddr) |
void | setFileName (std::string file) |
void | setLineNumber (std::string line) |
void | setModule (std::string module) |
void | setEventID (std::string eventID) |
void | updateText () |
Qt wrapper around MessageFacility message.
Definition at line 37 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.
Definition at line 10 of file qt_mf_msg.cc.
QString const& qt_mf_msg::app | ( | ) | const [inline] |
Get the application of the message.
Definition at line 79 of file qt_mf_msg.hh.
QString const& qt_mf_msg::cat | ( | ) | const [inline] |
Get the category of the message.
Definition at line 74 of file qt_mf_msg.hh.
QColor const& qt_mf_msg::color | ( | ) | const [inline] |
Get the severity-based color of the message.
Definition at line 59 of file qt_mf_msg.hh.
QString const& qt_mf_msg::host | ( | ) | const [inline] |
Get the host from which the message came.
Definition at line 69 of file qt_mf_msg.hh.
size_t qt_mf_msg::seq | ( | ) | const [inline] |
Get the sequence number of the message.
Definition at line 89 of file qt_mf_msg.hh.
sev_code_t qt_mf_msg::sev | ( | ) | const [inline] |
Get the severity of the message.
Definition at line 64 of file qt_mf_msg.hh.
QString const& qt_mf_msg::text | ( | bool | mode | ) | const [inline] |
Get the text of the message.
mode | Whether to return the short-form text |
Definition at line 54 of file qt_mf_msg.hh.
timeval qt_mf_msg::time | ( | ) | const [inline] |
Get the message timestamp.
Definition at line 84 of file qt_mf_msg.hh.