DBus::MethodBase Class Referenceabstract

Base class for all methods(proxy and local). More...

#include <methodbase.h>

Inheritance diagram for DBus::MethodBase:

Public Member Functions

virtual ~MethodBase ()
 
const std::string & name () const
 
virtual HandlerResult handle_call_message (std::shared_ptr< Connection > connection, std::shared_ptr< const CallMessage > message)=0
 
virtual std::string introspect (int space_depth=0) const
 Returns a DBus XML description of this interface. More...
 
std::string arg_name (size_t i) const
 
void set_arg_name (size_t i, const std::string &name)
 
const std::vector< std::string > & arg_names () const
 

Protected Member Functions

 MethodBase (const std::string &name)
 
uint32_t sendMessage (std::shared_ptr< Connection > connection, const std::shared_ptr< const Message >)
 

Private Member Functions

 DBUS_CXX_PROPAGATE_CONST (std::unique_ptr< priv_data >) m_priv
 

Detailed Description

Base class for all methods(proxy and local).

Note that the name of the method is immutable and cannot be changed once a method is created.

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

Constructor & Destructor Documentation

◆ MethodBase()

DBus::MethodBase::MethodBase ( const std::string &  name)
protected

References name(), and SIMPLELOGGER_DEBUG.

◆ ~MethodBase()

DBus::MethodBase::~MethodBase ( )
virtual

Member Function Documentation

◆ arg_name()

std::string DBus::MethodBase::arg_name ( size_t  i) const

◆ arg_names()

const std::vector< std::string > & DBus::MethodBase::arg_names ( ) const

◆ DBUS_CXX_PROPAGATE_CONST()

DBus::MethodBase::DBUS_CXX_PROPAGATE_CONST ( std::unique_ptr< priv_data >  )
private

◆ handle_call_message()

virtual HandlerResult DBus::MethodBase::handle_call_message ( std::shared_ptr< Connection connection,
std::shared_ptr< const CallMessage message 
)
pure virtual

Implemented in DBus::Method< T_type >.

◆ introspect()

virtual std::string DBus::MethodBase::introspect ( int  space_depth = 0) const
inlinevirtual

Returns a DBus XML description of this interface.

Reimplemented in DBus::Method< T_type >.

◆ name()

◆ sendMessage()

uint32_t DBus::MethodBase::sendMessage ( std::shared_ptr< Connection connection,
const std::shared_ptr< const Message message 
)
protected

◆ set_arg_name()

void DBus::MethodBase::set_arg_name ( size_t  i,
const std::string &  name 
)

References name().


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