KXQTS::ErrorHandler Class Reference

A MessageHandler which accumulates all its received Patternist::Message instances in a list, retrievable via messages(). More...

#include <ErrorHandler.h>

Inheritance diagram for KXQTS::ErrorHandler:

Inheritance graph
[legend]
Collaboration diagram for KXQTS::ErrorHandler:

Collaboration graph
[legend]
List of all members.

Public Types

typedef Patternist::PlainSharedPtr<
ErrorHandler
Ptr

Public Member Functions

virtual void handleMessage (const Patternist::Message &msg)
Patternist::Message::List messages () const
virtual void reset ()

Static Public Member Functions

static void installQtMessageHandler (const ErrorHandler::Ptr &handler)

Detailed Description

A MessageHandler which accumulates all its received Patternist::Message instances in a list, retrievable via messages().

Thus, ErrorHandler does not report errors, but collects them and allows easy access to them.

Author:
Frans Englich <frans.englich@telia.com>

Definition at line 34 of file ErrorHandler.h.


Member Function Documentation

void ErrorHandler::installQtMessageHandler ( const ErrorHandler::Ptr handler  )  [static]

Calling this function causes all Qt's internal debug messages to be sent to handler. If handler is null, Qt's default message handler is re-installed. In other words, via an internal proxy function, it installs handler as Qt's message handler.

See also:
qInstallMsgHandler()

Definition at line 66 of file ErrorHandler.cpp.

References Patternist::PlainSharedPtr< T >::reset().

Here is the call graph for this function:

void ErrorHandler::reset (  )  [virtual]

Clears all accumulated errors.

Definition at line 92 of file ErrorHandler.cpp.


The documentation for this class was generated from the following files:
Generated on Thu Feb 8 14:54:31 2007 for Patternist by  doxygen 1.5.1