#include <messaginghub.h>
Public Types | |
| enum | MessageType { FatalError, Error, Warning, InfoMessage, StatusInfo, LogMessage } |
Public Member Functions | |
| MessagingHubBase () | |
| void | setVerbosity (int v) |
| int | getVerbosity () |
| void | message (MessageType type, const char *msg,...) |
| displays any kind of message, as specified by parameter | |
| void | message (MessageType type, const ASCString &msg) |
| displays any kind of message, as specified by parameter | |
| StatusMessageWindowHolder | infoMessageWindow (const ASCString &msg) |
| Displays a status window. | |
Public Attributes | |
| SigC::Signal1< void, const ASCString & > | fatalError |
| displays an error message and aborts the game | |
| SigC::Signal0< void > | exitHandler |
| exits the program | |
| SigC::Signal1< void, const ASCString & > | error |
| displays an error message and continues game | |
| SigC::Signal1< void, const ASCString & > | warning |
| displays a warning | |
| SigC::Signal1< void, const ASCString & > | infoMessage |
| displays an informational message | |
| SigC::Signal1< void, const ASCString & > | statusInformation |
| displays a message in the message line | |
| SigC::Signal2< void, const ASCString &, int > | logMessage |
| prints a message to the logging file | |
| SigC::Signal1< StatusMessageWindowHolder, const ASCString & > | messageWindowFactory |
| prints a message to the logging file | |
Protected Attributes | |
| int | verbosity |
|
|
Definition at line 66 of file messaginghub.h. |
|
|
Definition at line 62 of file messaginghub.h. |
|
|
Definition at line 64 of file messaginghub.h. References verbosity. |
|
|
Displays a status window. As long as a copy of the returned StatusMessageWindowHolder exists, the window is shown. Typical usage: if ( doSomething ) { MessagingHubBase::StatusMessageWindowHolder smwh = MessagingHub::Instance().infoMessageWindow( "I'm doing something" ); doIt(); } // status window is automatically removed when scope is left Definition at line 67 of file messaginghub.cpp. References messageWindowFactory. |
|
||||||||||||
|
displays any kind of message, as specified by parameter
Definition at line 72 of file messaginghub.cpp. References error, Error, exitHandler, fatalError, FatalError, infoMessage, InfoMessage, logMessage, LogMessage, StatusInfo, statusInformation, warning, and Warning. |
|
||||||||||||||||
|
displays any kind of message, as specified by parameter
Definition at line 89 of file messaginghub.cpp. References ASCString::vaformat(). |
|
|
Definition at line 63 of file messaginghub.h. References verbosity. |
|
|
displays an error message and continues game
Definition at line 75 of file messaginghub.h. Referenced by message(). |
|
|
exits the program
Definition at line 72 of file messaginghub.h. Referenced by message(). |
|
|
displays an error message and aborts the game
Definition at line 69 of file messaginghub.h. Referenced by message(). |
|
|
displays an informational message
Definition at line 81 of file messaginghub.h. Referenced by message(). |
|
|
prints a message to the logging file
Definition at line 87 of file messaginghub.h. Referenced by message(). |
|
|
prints a message to the logging file
Definition at line 108 of file messaginghub.h. Referenced by infoMessageWindow(). |
|
|
displays a message in the message line
Definition at line 84 of file messaginghub.h. Referenced by message(). |
|
|
Definition at line 59 of file messaginghub.h. Referenced by getVerbosity(), and setVerbosity(). |
|
|
displays a warning
Definition at line 78 of file messaginghub.h. Referenced by message(). |
1.4.2