10 #ifndef GUARD_USERMSG_H_INCLUDE
11 #define GUARD_USERMSG_H_INCLUDE
13 #include <usermsg/usermsg-config.h>
25 NoButton = 0x00000000,
31 YesToAll = 0x00008000,
43 RestoreDefaults = 0x08000000,
70 const QString & title,
71 void * user_data = NULL);
87 const QString & value) {
102 user_payload_ = value;
112 return message_list_.count ();
118 message_list_.clear ();
125 return message_list_.at (i);
132 message_list_.removeAt (i);
145 const QString & s_message) {
146 addMsg (UserMsgEntry::UTERROR, s_message);
152 const QString & s_message) {
153 addMsg (UserMsgEntry::UTWARNING, s_message);
159 const QString & s_message) {
160 addMsg (UserMsgEntry::UTINFO, s_message);
166 const QString & s_message) {
167 addMsg (UserMsgEntry::UTDBG_ERROR, s_message);
173 const QString & s_message) {
174 addMsg (UserMsgEntry::UTDBG_WARNING, s_message);
180 const QString & s_message) {
181 addMsg (UserMsgEntry::UTDBG_INFO, s_message);
188 const QString & s_message);
196 const QString & s_message) {
197 msg (UserMsgEntry::UTERROR, s_message);
203 const QString & s_message) {
204 msg (UserMsgEntry::UTWARNING, s_message);
210 const QString & s_message) {
211 msg (UserMsgEntry::UTINFO, s_message);
217 const QString & s_message) {
218 msg (UserMsgEntry::UTDBG_ERROR, s_message);
224 const QString & s_message) {
225 msg (UserMsgEntry::UTDBG_ERROR, s_message);
231 const QString & s_message) {
232 msg (UserMsgEntry::UTDBG_INFO, s_message);
239 const QString & s_message);
245 const QString & s_message);
251 const QString & s_message);
259 #endif // GUARD_USERMSG_H_INCLUDE
Declarations for UserMsgEntry class.
const QString & title() const
Get the title.
Definition: usermsg.h:80
int count() const
The number of entries in the list.
Definition: usermsg.h:111
static void dbgWar(const QString &s_message)
Show a warning entry.
Definition: usermsg.h:223
void addDbgErr(const QString &s_message)
Add an error entry to the list.
Definition: usermsg.h:165
void addInfo(const QString &s_message)
Add an informative entry to the list.
Definition: usermsg.h:158
static void war(const QString &s_message)
Show a warning entry.
Definition: usermsg.h:202
static void dbgInfo(const QString &s_message)
Show an informative entry.
Definition: usermsg.h:230
void setTitle(const QString &value)
Set the title.
Definition: usermsg.h:86
void addDbgInfo(const QString &s_message)
Add an informative entry to the list.
Definition: usermsg.h:179
static void info(const QString &s_message)
Show an informative entry.
Definition: usermsg.h:209
void * userData() const
Get the payload.
Definition: usermsg.h:94
void addErr(const QString &s_message)
Add an error entry to the list.
Definition: usermsg.h:144
void addDbgWar(const QString &s_message)
Add a warning entry to the list.
Definition: usermsg.h:172
const UserMsgEntry & at(int i) const
Get an entry at a specific location.
Definition: usermsg.h:123
user messages mediator
Definition: usermsg.h:21
void clear()
Clear all entries from the list.
Definition: usermsg.h:117
Type
kind of the message
Definition: usermsgentry.h:24
user messages mediator
Definition: usermsgentry.h:19
static void dbgErr(const QString &s_message)
Show an error entry.
Definition: usermsg.h:216
static void err(const QString &s_message)
Show an error entry.
Definition: usermsg.h:195
void addWar(const QString &s_message)
add a warning entry to the list.
Definition: usermsg.h:151
void setUserData(void *value)
Set the payload.
Definition: usermsg.h:100