dbus-cxx logo
Public Types | Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
DBus::MessageHandler Class Reference

This class provides a common base class for all message handlers. More...

#include <messagehandler.h>

Inheritance diagram for DBus::MessageHandler:
Inheritance graph
[legend]

Public Types

typedef DBusCxxPointer
< MessageHandler
pointer
typedef DBusCxxWeakPointer
< MessageHandler
weak_pointer
typedef sigc::signal
< HandlerResult,
DBusCxxPointer< Connection >
, Message::const_pointer >
::accumulated
< MessageHandlerAccumulator
MessageSignal

Public Member Functions

virtual ~MessageHandler ()
virtual HandlerResult handle_message (DBusCxxPointer< Connection >, Message::const_pointer)
 The default implementation simply emits the message signal and returns the result.
MessageSignalsignal_message ()

Protected Member Functions

 MessageHandler ()

Static Protected Member Functions

static DBusHandlerResult message_handler_callback (DBusConnection *connection, DBusMessage *message, void *user_data)
 When used as a callback, this method expects.

Protected Attributes

MessageSignal m_signal_message

Detailed Description

This class provides a common base class for all message handlers.

Author
Rick L Vinyard Jr rviny.nosp@m.ard@.nosp@m.cs.nm.nosp@m.su.e.nosp@m.du

Member Typedef Documentation

Constructor & Destructor Documentation

DBus::MessageHandler::MessageHandler ( )
protected
DBus::MessageHandler::~MessageHandler ( )
virtual

Member Function Documentation

HandlerResult DBus::MessageHandler::handle_message ( DBusCxxPointer< Connection conn,
Message::const_pointer  msg 
)
virtual

The default implementation simply emits the message signal and returns the result.

Reimplemented in DBus::Object, and DBus::SignalReceiver.

References m_signal_message.

Referenced by message_handler_callback().

DBusHandlerResult DBus::MessageHandler::message_handler_callback ( DBusConnection *  connection,
DBusMessage *  message,
void *  user_data 
)
staticprotected

When used as a callback, this method expects.

Parameters
user_datato contain a pointer to the MessageHandler instance.

References DBus::Message::create(), handle_message(), and DBus::Connection::self().

MessageHandler::MessageSignal & DBus::MessageHandler::signal_message ( )

References m_signal_message.

Member Data Documentation

MessageSignal DBus::MessageHandler::m_signal_message
protected

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

Generated on Sat Sep 21 2013 17:22:40 for dbus-cxx by doxygen 1.8.1.2