Quantum GIS API Documentation
1.7.4
|
Default implementation of message output interface. More...
#include <qgsmessageoutput.h>
Signals | |
void | destroyed () |
signals that object will be destroyed and shouldn't be used anymore | |
Public Member Functions | |
QgsMessageOutputConsole () | |
virtual void | setMessage (const QString &message, MessageType msgType) |
set message, it won't be displayed until | |
virtual void | appendMessage (const QString &message) |
message to be appended to the current text | |
virtual void | setTitle (const QString &title) |
set title for the messages | |
virtual void | showMessage (bool blocking=true) |
sends the message to the standard output | |
Private Attributes | |
QString | mMessage |
stores current message | |
QString | mTitle |
stores current title |
Default implementation of message output interface.
This class outputs messages to the standard output. Therefore it might be the right choice for apps without GUI.
Definition at line 81 of file qgsmessageoutput.h.
Definition at line 46 of file qgsmessageoutput.cpp.
void QgsMessageOutputConsole::appendMessage | ( | const QString & | message | ) | [virtual] |
message to be appended to the current text
Implements QgsMessageOutput.
Definition at line 56 of file qgsmessageoutput.cpp.
References mMessage.
void QgsMessageOutputConsole::destroyed | ( | ) | [signal] |
signals that object will be destroyed and shouldn't be used anymore
Referenced by showMessage().
void QgsMessageOutputConsole::setMessage | ( | const QString & | message, |
MessageType | msgType | ||
) | [virtual] |
set message, it won't be displayed until
Implements QgsMessageOutput.
Definition at line 51 of file qgsmessageoutput.cpp.
References mMessage.
void QgsMessageOutputConsole::setTitle | ( | const QString & | title | ) | [virtual] |
set title for the messages
Implements QgsMessageOutput.
Definition at line 75 of file qgsmessageoutput.cpp.
References mTitle.
void QgsMessageOutputConsole::showMessage | ( | bool | blocking = true | ) | [virtual] |
sends the message to the standard output
Implements QgsMessageOutput.
Definition at line 61 of file qgsmessageoutput.cpp.
References destroyed(), mMessage, mTitle, and QgsDebugMsg.
QString QgsMessageOutputConsole::mMessage [private] |
stores current message
Definition at line 106 of file qgsmessageoutput.h.
Referenced by appendMessage(), setMessage(), and showMessage().
QString QgsMessageOutputConsole::mTitle [private] |
stores current title
Definition at line 109 of file qgsmessageoutput.h.
Referenced by setTitle(), and showMessage().