UserMsg Pile   version 0.0.1
UserMsg pile.
UserMsgEntry Class Reference

user messages mediator More...

#include <usermsgentry.h>

Public Types

enum  Type {
  UTERROR = 0, UTWARNING, UTINFO, UTDBG_ERROR,
  UTDBG_WARNING, UTDBG_INFO
}
 kind of the message
 

Public Member Functions

 UserMsgEntry ()
 Default constructor. More...
 
 UserMsgEntry (const UserMsgEntry &other)
 Copy constructor. More...
 
 UserMsgEntry (Type ty, const QString &message)
 Constructor. Sets the message and type. More...
 
virtual ~UserMsgEntry ()
 Destructor. More...
 
const QString & message () const
 Get the message.
 
void setMessage (const QString &value)
 Set the message.
 
const QDateTime & moment () const
 Get the moment.
 
void setMoment (const QDateTime &value)
 Set the moment.
 
bool isEnabled () const
 Tell if the type is visible or not.
 
Type type () const
 Get the type.
 
void setType (Type value)
 Set the type.
 
QString typeName () const
 Get the name of the type in all-lower-case.
 
QString typeNameCap () const
 get the name of the type with first letter in words capitalized
 

Static Public Member Functions

static QString typeName (Type value)
 Get the name of the type in all-lower-case.
 
static QString typeNameCap (Type value)
 get the name of the type with first letter in words capitalized
 
static bool isEnabled (Type value)
 Tell if the type is visible or not. More...
 

Detailed Description

user messages mediator

Constructor & Destructor Documentation

UserMsgEntry::UserMsgEntry ( )

Default constructor.

The moment is set to current moment. The type is set to ERROR.

UserMsgEntry::UserMsgEntry ( const UserMsgEntry other)

Copy constructor.

All the elements (including moment) are copied.

UserMsgEntry::UserMsgEntry ( Type  ty,
const QString &  message 
)

Constructor. Sets the message and type.

The moment is set to current date/time.

UserMsgEntry::~UserMsgEntry ( )
virtual

Destructor.

Detailed description for destructor.

Member Function Documentation

bool UserMsgEntry::isEnabled ( Type  value)
static

Tell if the type is visible or not.

Todo:
implement isEnabled

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