Piles
home
docs
piles
GitHub
UserMsg Pile
version 0.0.1
UserMsg pile.
Main Page
Related Pages
Classes
Files
File List
File Members
usermsgstg.h
Go to the documentation of this file.
1
10
#ifndef GUARD_USERMSGSTG_H_INCLUDE
11
#define GUARD_USERMSGSTG_H_INCLUDE
12
13
#include <usermsg/usermsg-config.h>
14
#include <
usermsg/usermsg.h
>
15
16
class
QSettings;
17
19
class
USERMSG_EXPORT
UserMsgStg
{
20
21
private
:
22
23
int
enabled_flags_;
24
QString s_log_file_;
26
public
:
27
29
UserMsgStg
();
30
32
UserMsgStg
(
33
const
UserMsgStg
& other);
34
36
virtual
~
UserMsgStg
();
37
38
40
QByteArray
41
toByteArray ()
const
;
42
44
bool
45
fromByteArray (
46
QByteArray * value);
47
49
bool
50
toQSettings (
51
QSettings * stg)
const
;
52
54
bool
55
fromQSettings (
56
QSettings * stg);
57
59
bool
60
isEnabled (
61
UserMsgEntry::Type
value);
62
64
void
65
setEnabled (
66
UserMsgEntry::Type
ty,
67
bool
b_enabled);
68
70
void
71
setAllEnabled (
72
bool
include_debug);
73
75
const
QString &
76
logFile
() {
77
return
s_log_file_;
78
}
79
81
void
82
setLogFile
(
83
const
QString & value) {
84
s_log_file_ = value;
85
}
86
87
88
};
89
90
#endif // GUARD_USERMSGSTG_H_INCLUDE
usermsg.h
Declarations for UserMsg class.
UserMsgStg::setLogFile
void setLogFile(const QString &value)
Set the path to the log file.
Definition:
usermsgstg.h:82
UserMsgStg
User messages mediator settings.
Definition:
usermsgstg.h:19
UserMsgStg::logFile
const QString & logFile()
The path to the log file.
Definition:
usermsgstg.h:76
UserMsgEntry::Type
Type
kind of the message
Definition:
usermsgentry.h:24