rocs/RocsCore
#include <ConsoleModule.h>

Public Types | |
enum | MessageType { Log, Debug, Error } |
Public Slots | |
Q_INVOKABLE void | debug (const QString &message) |
Q_INVOKABLE void | error (const QString &message) |
Q_INVOKABLE void | log (const QString &message) |
Signals | |
void | backlogChanged (ConsoleModule::MessageType, QString) |
Public Member Functions | |
ConsoleModule (QObject *parent=0) | |
~ConsoleModule () | |
QList< QPair< MessageType, QString > > | backlog () const |
void | clear () |
Detailed Description
This class provides an interface object for the scripting engine to write informatoin to the application console.
The application widget that displays these information shall listen to this object.
Definition at line 34 of file ConsoleModule.h.
Member Enumeration Documentation
Enumerator | |
---|---|
Log | |
Debug | |
Error |
Definition at line 42 of file ConsoleModule.h.
Constructor & Destructor Documentation
|
explicit |
Definition at line 21 of file ConsoleModule.cpp.
ConsoleModule::~ConsoleModule | ( | ) |
Definition at line 26 of file ConsoleModule.cpp.
Member Function Documentation
QList< QPair< ConsoleModule::MessageType, QString > > ConsoleModule::backlog | ( | ) | const |
Get all backlog since last clear.
- Returns
- the backlog
Definition at line 30 of file ConsoleModule.cpp.
|
signal |
void ConsoleModule::clear | ( | ) |
Clear the backlog.
Definition at line 35 of file ConsoleModule.cpp.
|
slot |
Print a debug message message
.
Definition at line 46 of file ConsoleModule.cpp.
|
slot |
Print an error message message
.
Definition at line 52 of file ConsoleModule.cpp.
|
slot |
Print a log message message
.
Definition at line 40 of file ConsoleModule.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:42:26 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.