libbbb  1.2.1
Groups common code used in some applications and libraries.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
UsrMsgMng Class Reference

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 UsrMsgMngunique (void)
 the one and only instance
 
static void loadSettings (void)
 loads the settings More...
 
static void saveSettings (void)
 saves the settings More...
 

Detailed Description

Central communication singleton.

Member Function Documentation

void UsrMsgMng::loadSettings ( void  )
static

loads the settings

The constructor calls this method

void UsrMsgMng::saveSettings ( void  )
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.


The documentation for this class was generated from the following files: