Message object used to pass messages throughout the Doomseeker's system. This should be directly connected to the types provided by the Messages class. More...
#include <message.h>
Classes | |
class | Types |
Public Member Functions | |
Message (const Message &other) | |
Message (unsigned type) | |
Message (unsigned type, const QString &content) | |
Message & | operator= (const Message &other) |
const QString & | contents () const |
QString | getStringBasingOnType () const |
bool | isCustom () const |
bool | isError () const |
bool | isIgnore () const |
bool | isInformation () const |
unsigned | timestamp () const |
unsigned | type () const |
Static Public Member Functions | |
static Message | customError (const QString &content) |
Convenience method. Sets type to Types::CUSTOM_ERROR. | |
static Message | customInformation (const QString &content) |
Convenience method. Sets type to Types::CUSTOM_INFORMATION. | |
static QString | getStringBasingOnType (unsigned type) |
static bool | isCustom (unsigned type) |
static bool | isError (unsigned type) |
static bool | isIgnore (unsigned type) |
static bool | isInformation (unsigned type) |
Message object used to pass messages throughout the Doomseeker's system. This should be directly connected to the types provided by the Messages class.
Message type and content is carried over through this object. If type member is set to Messages::Types::IGNORE_TYPE then content member should be ignored and the entire Message object should be treated as carrying no message at all.