UserMsg Pile   version 0.0.1
UserMsg pile.
logmsg.h
1 
10 #ifndef GUARD_LOGMSG_H_INCLUDE
11 #define GUARD_LOGMSG_H_INCLUDE
12 
13 #include <usermsg/usermsg-config.h>
14 #include <usermsg/usermsgentry.h>
15 
16 #include <QVector>
17 
18 
19 
21 class USERMSG_EXPORT LogMsg {
22 
23 
24 public:
25 
27  static inline void
28  err (
29  const QString & s_message) {
30  msg (UserMsgEntry::UTERROR, s_message);
31  }
32 
34  static inline void
35  war (
36  const QString & s_message) {
37  msg (UserMsgEntry::UTWARNING, s_message);
38  }
39 
41  static inline void
42  info (
43  const QString & s_message) {
44  msg (UserMsgEntry::UTINFO, s_message);
45  }
46 
48  static inline void
50  const QString & s_message) {
51  msg (UserMsgEntry::UTDBG_ERROR, s_message);
52  }
53 
55  static inline void
57  const QString & s_message) {
58  msg (UserMsgEntry::UTDBG_ERROR, s_message);
59  }
60 
62  static inline void
64  const QString & s_message) {
65  msg (UserMsgEntry::UTDBG_INFO, s_message);
66  }
67 
69  static void
70  msg (
72  const QString & s_message);
73 
74 };
75 
76 #endif // GUARD_LOGMSG_H_INCLUDE
Declarations for UserMsgEntry class.
static void info(const QString &s_message)
Show an informative entry.
Definition: logmsg.h:42
static void dbgErr(const QString &s_message)
Show an error entry.
Definition: logmsg.h:49
static void dbgWar(const QString &s_message)
Show a warning entry.
Definition: logmsg.h:56
static void err(const QString &s_message)
Show an error entry.
Definition: logmsg.h:28
Type
kind of the message
Definition: usermsgentry.h:24
static void dbgInfo(const QString &s_message)
Show an informative entry.
Definition: logmsg.h:63
Log messages.
Definition: logmsg.h:21
static void war(const QString &s_message)
Show a warning entry.
Definition: logmsg.h:35