FougTools  0.7.0dev-046fb6a
Handy tools for C++, Qt and OpenCascade
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
qtcore::AbstractLogHandler Class Referenceabstract

Abstract base class of all logging message handlers. More...

#include <qttools/core/log.h>

Inheritance diagram for qtcore::AbstractLogHandler:
qtcore::LogDispatcher

Public Member Functions

 AbstractLogHandler ()
 
virtual ~AbstractLogHandler ()
 
virtual void handle (Log::MessageType msgType, const QString &msg)=0
 Handle logging message msg of type msgType. More...
 
void setAutoDetach (bool b)
 Set the log handler to auto-detach mode if b is true. More...
 

Detailed Description

Abstract base class of all logging message handlers.

Constructor & Destructor Documentation

qtcore::AbstractLogHandler::AbstractLogHandler ( )
qtcore::AbstractLogHandler::~AbstractLogHandler ( )
virtual

Member Function Documentation

void qtcore::AbstractLogHandler::handle ( Log::MessageType  msgType,
const QString &  msg 
)
pure virtual

Handle logging message msg of type msgType.

Implemented in qtcore::LogDispatcher.

void qtcore::AbstractLogHandler::setAutoDetach ( bool  b)

Set the log handler to auto-detach mode if b is true.

If auto-detach is enabled then when the log handler is destroyed it gets automatically detached from the global list of log handlers.
Auto-detach is disabled by default


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