DBus::ObjectAdaptor Class Reference
#include <object.h>
Classes | |
class | Continuation |
struct | Private |
Public Member Functions | |
ObjectAdaptor (Connection &conn, const Path &path) | |
~ObjectAdaptor () | |
const ObjectAdaptor * | object () const |
Static Public Member Functions | |
static ObjectAdaptor * | from_path (const Path &path) |
static ObjectAdaptorPList | from_path_prefix (const std::string &prefix) |
static ObjectPathList | child_nodes_from_prefix (const std::string &prefix) |
Protected Member Functions | |
void | return_later (const Tag *tag) |
void | return_now (Continuation *ret) |
void | return_error (Continuation *ret, const Error error) |
Continuation * | find_continuation (const Tag *tag) |
Private Types | |
typedef std::map< const Tag *, Continuation * > | ContinuationMap |
Private Member Functions | |
void | _emit_signal (SignalMessage &) |
bool | handle_message (const Message &) |
void | register_obj () |
void | unregister_obj (bool throw_on_error=true) |
Private Attributes | |
ContinuationMap | _continuations |
Friends | |
struct | Private |
Detailed Description
Definition at line 116 of file object.h.
Member Typedef Documentation
typedef std::map<const Tag *, Continuation *> DBus::ObjectAdaptor::ContinuationMap [private] |
Constructor & Destructor Documentation
ObjectAdaptor::ObjectAdaptor | ( | Connection & | conn, | |
const Path & | path | |||
) |
Definition at line 159 of file object.cpp.
References register_obj().
ObjectAdaptor::~ObjectAdaptor | ( | ) |
Definition at line 165 of file object.cpp.
References unregister_obj().
Member Function Documentation
void ObjectAdaptor::_emit_signal | ( | SignalMessage & | sig | ) | [private, virtual] |
Implements DBus::AdaptorBase.
Definition at line 191 of file object.cpp.
References DBus::Object::conn(), DBus::Object::path(), DBus::SignalMessage::path(), and DBus::Connection::send().
ObjectPathList ObjectAdaptor::child_nodes_from_prefix | ( | const std::string & | prefix | ) | [static] |
Definition at line 134 of file object.cpp.
References _adaptor_table.
Referenced by DBus::IntrospectableAdaptor::Introspect().
ObjectAdaptor::Continuation * ObjectAdaptor::find_continuation | ( | const Tag * | tag | ) | [protected] |
Definition at line 274 of file object.cpp.
References _continuations.
ObjectAdaptor * ObjectAdaptor::from_path | ( | const Path & | path | ) | [static] |
Definition at line 105 of file object.cpp.
References _adaptor_table.
ObjectAdaptorPList ObjectAdaptor::from_path_prefix | ( | const std::string & | prefix | ) | [static] |
Definition at line 115 of file object.cpp.
References _adaptor_table.
bool ObjectAdaptor::handle_message | ( | const Message & | msg | ) | [private, virtual] |
Implements DBus::Object.
Definition at line 203 of file object.cpp.
References _continuations, DBus::Object::conn(), DBus::debug_log, DBus::InterfaceAdaptor::dispatch_method(), DBus::AdaptorBase::find_interface(), DBus::CallMessage::interface(), DBus::CallMessage::member(), DBus::Error::message(), DBus::Error::name(), DBus::Connection::send(), ReturnLaterError::tag, and DBus::Message::type().
Referenced by DBus::ObjectAdaptor::Private::message_function_stub().
const ObjectAdaptor * DBus::ObjectAdaptor::object | ( | ) | const [inline, virtual] |
Implements DBus::AdaptorBase.
void ObjectAdaptor::register_obj | ( | ) | [private, virtual] |
Implements DBus::Object.
Definition at line 170 of file object.cpp.
References _adaptor_table, _vtable, DBus::Connection::conn, DBus::Object::conn(), DBus::debug_log, and DBus::Object::path().
Referenced by ObjectAdaptor().
void ObjectAdaptor::return_error | ( | Continuation * | ret, | |
const Error | error | |||
) | [protected] |
Definition at line 263 of file object.cpp.
References DBus::ObjectAdaptor::Continuation::_call, DBus::ObjectAdaptor::Continuation::_conn, _continuations, DBus::ObjectAdaptor::Continuation::_tag, DBus::Error::message(), DBus::Error::name(), and DBus::Connection::send().
void ObjectAdaptor::return_later | ( | const Tag * | tag | ) | [protected] |
Definition at line 246 of file object.cpp.
void ObjectAdaptor::return_now | ( | Continuation * | ret | ) | [protected] |
Definition at line 252 of file object.cpp.
References DBus::ObjectAdaptor::Continuation::_conn, _continuations, DBus::ObjectAdaptor::Continuation::_return, DBus::ObjectAdaptor::Continuation::_tag, and DBus::Connection::send().
void ObjectAdaptor::unregister_obj | ( | bool | throw_on_error = true |
) | [private, virtual] |
Implements DBus::Object.
Definition at line 182 of file object.cpp.
References _adaptor_table, DBus::Connection::conn, DBus::Object::conn(), DBus::debug_log, and DBus::Object::path().
Referenced by ~ObjectAdaptor().
Friends And Related Function Documentation
Member Data Documentation
Definition at line 175 of file object.h.
Referenced by find_continuation(), handle_message(), return_error(), and return_now().
The documentation for this class was generated from the following files: