fawkes::LogView Class Reference

Log View widget. More...

#include <gui_utils/logview.h>

List of all members.

Classes

class  LogRecord
 TreeView record for LogView.

Public Member Functions

 LogView ()
 Constructor.
 LogView (const char *hostname, unsigned short int port)
 Constructor.
 ~LogView ()
 Destructor.
void set_client (FawkesNetworkClient *client)
 Set FawkesNetworkClient instance.
FawkesNetworkClientget_client ()
 Get the used FawkesNetworkClient.
void append_message (Logger::LogLevel log_level, struct timeval t, const char *component, bool is_exception, const char *message)
 Append a single message.
void clear ()
 Clear all records.
ConnectionDispatcherget_connection_dispatcher () const
 Get ConnectionDispatcher instance that is used internally.

Detailed Description

Log View widget.

This widget derives a Gtk::TreeView and provides an easy way to show log messages in a GUI application.

Author:
Tim Niemueller

Definition at line 43 of file logview.h.


Constructor & Destructor Documentation

fawkes::LogView::LogView (  ) 

Constructor.

Definition at line 46 of file logview.cpp.

fawkes::LogView::LogView ( const char *  hostname,
unsigned short int  port 
)

Constructor.

Parameters:
hostname hostname to set for the FawkesNetworkClient.
port port to set for the FawkesNetworkClient.

Definition at line 56 of file logview.cpp.

fawkes::LogView::~LogView (  ) 

Member Function Documentation

void fawkes::LogView::append_message ( Logger::LogLevel  log_level,
struct timeval  t,
const char *  component,
bool  is_exception,
const char *  message 
)

Append a single message.

Parameters:
log_level log level
t time of the message
component component string for the message
is_exception true if essage was produced via an exception
message log message

Definition at line 261 of file logview.cpp.

References fawkes::Logger::LL_DEBUG, fawkes::Logger::LL_ERROR, fawkes::Logger::LL_INFO, and fawkes::Logger::LL_WARN.

void fawkes::LogView::clear ( void   ) 

Clear all records.

Definition at line 191 of file logview.cpp.

FawkesNetworkClient * fawkes::LogView::get_client (  ) 

Get the used FawkesNetworkClient.

Returns:
Fawkes network client instance

Definition at line 173 of file logview.cpp.

References fawkes::ConnectionDispatcher::get_client().

ConnectionDispatcher * fawkes::LogView::get_connection_dispatcher (  )  const

Get ConnectionDispatcher instance that is used internally.

Returns:
connection dispatcher

Definition at line 183 of file logview.cpp.

void fawkes::LogView::set_client ( FawkesNetworkClient client  ) 

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

Generated on 1 Mar 2011 for Fawkes API by  doxygen 1.6.1