UserMsg Pile   version 0.0.1
UserMsg pile.
UserMsgStg Class Reference

User messages mediator settings. More...

#include <usermsgstg.h>

Public Member Functions

 UserMsgStg ()
 Default constructor. More...
 
 UserMsgStg (const UserMsgStg &other)
 Copy constructor. More...
 
virtual ~UserMsgStg ()
 Destructor.
 
QByteArray toByteArray () const
 Serializes the settings to a string of bytes. More...
 
bool fromByteArray (QByteArray *value)
 Load previously serialized settings from a string of bytes. More...
 
bool toQSettings (QSettings *stg) const
 Saves the settings to provided QSettings. More...
 
bool fromQSettings (QSettings *stg)
 Load previously serialized settings from QSettings. More...
 
bool isEnabled (UserMsgEntry::Type value)
 tells if a type is visible or not
 
void setEnabled (UserMsgEntry::Type ty, bool b_enabled)
 enables or disables the visibility of a type
 
void setAllEnabled (bool include_debug)
 Enable all types.
 
const QString & logFile ()
 The path to the log file.
 
void setLogFile (const QString &value)
 Set the path to the log file.
 

Detailed Description

User messages mediator settings.

The class stores the settings for the UserMsg system. An instance of this class is stored inside UserMsgMan.

Constructor & Destructor Documentation

UserMsgStg::UserMsgStg ( )

Default constructor.

Default values are loaded in this instance.

UserMsgStg::UserMsgStg ( const UserMsgStg other)

Copy constructor.

Values are copied from the other instance.

Member Function Documentation

bool UserMsgStg::fromByteArray ( QByteArray *  value)

Load previously serialized settings from a string of bytes.

The stream must begin and end with the marker.

bool UserMsgStg::fromQSettings ( QSettings *  stg)

Load previously serialized settings from QSettings.

The settings are loaded from a group called UserMsg.

QByteArray UserMsgStg::toByteArray ( ) const

Serializes the settings to a string of bytes.

A marker is placed both at the beginning and at the end of the stream.

bool UserMsgStg::toQSettings ( QSettings *  stg) const

Saves the settings to provided QSettings.

The settings are saved in a group called UserMsg.


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