Central communication singleton. More...
#include <usrmsgmng.h>
Inheritance diagram for UsrMsgMng:Public Slots | |
| void | show (const QString &s) |
| destructor; | |
Signals | |
| void | say (const QString &s) |
| emmited when there is something to say to the user | |
Public Member Functions | |
| bool | logEnabled (void) |
| should we log the messages to a file | |
| void | enableLog (void) |
| enable logging | |
| void | disableLog (void) |
| disable logging | |
| bool | stdoutEnabled (void) |
| should we log the messages to a file | |
| void | enableStdout (void) |
| enable logging through stdout | |
| void | disableStdout (void) |
| disable logging through stdout | |
| bool | broadcastEnabled (void) |
| should we emit the messages using signals? | |
| void | enableBroadcast (void) |
| enable logging through signals | |
| void | disableBroadcast (void) |
| disable logging through signals | |
| QString | logFile (void) |
| log file location | |
| bool | setLogFile (const QString &s) |
| log file location More... | |
Static Public Member Functions | |
| static void | init (void) |
| initialisation of the reporting system | |
| static void | end (void) |
| initialisation of the reporting system | |
| static UsrMsgMng * | unique (void) |
| the one and only instance | |
| static void | loadSettings (void) |
| loads the settings More... | |
| static void | saveSettings (void) |
| saves the settings More... | |
Central communication singleton.
|
static |
loads the settings
The constructor calls this method
|
static |
saves the settings
The destructor calls this method
| bool UsrMsgMng::setLogFile | ( | const QString & | s | ) |
log file location
Current log file is closed. If new file could not be opened the old file will not be reopened and current log file will be empty.