LoggingInterface Class Reference

Interface for all Plugins which do logging to the logging window of the framework. More...

#include <LoggingInterface.hh>

Inheritance diagram for LoggingInterface:
Inheritance graph
[legend]

List of all members.

Signals

virtual void log (Logtype, QString)=0
virtual void log (QString)=0

Public Member Functions

virtual ~LoggingInterface ()
 Destructor.

Private Slots

virtual void logOutput (Logtype, QString)

Detailed Description

Interface for all Plugins which do logging to the logging window of the framework.

By emitting the given signals you can log information to the main logger window of the core. To simplify debugging the core will prepend the plugin name to every log message. You dont have to do this yourself!
The log message will either be black or will be colored depending on the Logtype you specified.

Read our tutorials Implementing a mesh smoother plugin and Implementing mouse and keyboard interaction for an example of how to use logging output.

Definition at line 70 of file LoggingInterface.hh.


Member Function Documentation

virtual void LoggingInterface::log ( QString   )  [pure virtual, signal]

Send a log message to the mainwindow of the widget
defaults to LOGOUT message type

Parameters:
_message Message to be displayed

Implemented in MouseAndKeyPlugin, and SmootherPlugin.

virtual void LoggingInterface::log ( Logtype  ,
QString   
) [pure virtual, signal]

Send a log message to the mainwindow of the widget

Parameters:
_type Message type (LOGINFO,LOGOUT,LOGWARN,LOGERR)
_message Message to be displayed

Implemented in MouseAndKeyPlugin, and SmootherPlugin.

virtual void LoggingInterface::logOutput ( Logtype  ,
QString   
) [inline, private, virtual, slot]

Through this slot you can receive all logging information emitted by OpenFlipper or one of its plugins

Definition at line 89 of file LoggingInterface.hh.


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

acg pic Project OpenFlipper, ©  Computer Graphics Group, RWTH Aachen. Documentation generated using doxygen .