#include <object.h>

Inheritance diagram for DBus::ObjectAdaptor:
Inheritance graph

Classes

class  Continuation
 
struct  Private
 

Public Member Functions

 ObjectAdaptor (Connection &conn, const Path &path)
 
 ~ObjectAdaptor ()
 
const ObjectAdaptorobject () const
 
- Public Member Functions inherited from DBus::Object
virtual ~Object ()
 
const DBus::Pathpath () const
 
const std::string & service () const
 
Connectionconn ()
 
void set_timeout (int new_timeout=-1)
 
int get_timeout () const
 
virtual const ObjectAdaptorobject () const =0
 

Static Public Member Functions

static ObjectAdaptorfrom_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)
 
Continuationfind_continuation (const Tag *tag)
 
- Protected Member Functions inherited from DBus::Object
 Object (Connection &conn, const Path &path, const char *service)
 
- Protected Member Functions inherited from DBus::AdaptorBase
InterfaceAdaptorfind_interface (const std::string &name)
 
virtual ~AdaptorBase ()
 
virtual void _emit_signal (SignalMessage &)=0
 

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
 

Additional Inherited Members

- Protected Attributes inherited from DBus::AdaptorBase
InterfaceAdaptorTable _interfaces
 

Detailed Description

Definition at line 116 of file object.h.

Member Typedef Documentation

◆ ContinuationMap

typedef std::map<const Tag *, Continuation *> DBus::ObjectAdaptor::ContinuationMap
private

Definition at line 174 of file object.h.

Constructor & Destructor Documentation

◆ ObjectAdaptor()

ObjectAdaptor::ObjectAdaptor ( Connection conn,
const Path path 
)

Definition at line 159 of file object.cpp.

References register_obj().

◆ ~ObjectAdaptor()

ObjectAdaptor::~ObjectAdaptor ( )

Definition at line 165 of file object.cpp.

References unregister_obj().

Member Function Documentation

◆ _emit_signal()

void ObjectAdaptor::_emit_signal ( SignalMessage sig)
privatevirtual

◆ child_nodes_from_prefix()

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().

◆ find_continuation()

ObjectAdaptor::Continuation * ObjectAdaptor::find_continuation ( const Tag tag)
protected

Definition at line 274 of file object.cpp.

References _continuations.

◆ from_path()

ObjectAdaptor * ObjectAdaptor::from_path ( const Path path)
static

Definition at line 105 of file object.cpp.

References _adaptor_table.

◆ from_path_prefix()

ObjectAdaptorPList ObjectAdaptor::from_path_prefix ( const std::string &  prefix)
static

Definition at line 115 of file object.cpp.

References _adaptor_table.

◆ handle_message()

◆ object()

const ObjectAdaptor * DBus::ObjectAdaptor::object ( ) const
inlinevirtual

Implements DBus::AdaptorBase.

Definition at line 180 of file object.h.

◆ register_obj()

void ObjectAdaptor::register_obj ( )
privatevirtual

◆ return_error()

◆ return_later()

void ObjectAdaptor::return_later ( const Tag tag)
protected

Definition at line 246 of file object.cpp.

◆ return_now()

◆ unregister_obj()

void ObjectAdaptor::unregister_obj ( bool  throw_on_error = true)
privatevirtual

Friends And Related Function Documentation

◆ Private

friend struct Private
friend

Definition at line 177 of file object.h.

Member Data Documentation

◆ _continuations

ContinuationMap DBus::ObjectAdaptor::_continuations
private

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: