DBus::MethodProxyBase Class Reference

Base class for all proxy(remote) methods. More...

#include <methodproxybase.h>

Inheritance diagram for DBus::MethodProxyBase:

Public Member Functions

 ~MethodProxyBase ()
 
InterfaceProxyinterface_name () const
 
const std::string & name () const
 
std::shared_ptr< CallMessagecreate_call_message () const
 
std::shared_ptr< const ReturnMessagecall (std::shared_ptr< const CallMessage >, int timeout_milliseconds=-1) const
 

Static Public Member Functions

static std::shared_ptr< MethodProxyBasecreate (const std::string &name)
 

Protected Member Functions

 MethodProxyBase (const std::string &name)
 
 MethodProxyBase (const MethodProxyBase &other)
 

Private Member Functions

void set_interface (InterfaceProxy *proxy)
 
 DBUS_CXX_PROPAGATE_CONST (std::unique_ptr< priv_data >) m_priv
 

Friends

class InterfaceProxy
 

Detailed Description

Base class for all proxy(remote) methods.

This class allows remote methods to be used in a generic manner, as the MethodProxy class is templated and thus cannot be used in a generic manner(e.g. stored in a vector).

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

Constructor & Destructor Documentation

◆ MethodProxyBase() [1/2]

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

Referenced by create().

◆ MethodProxyBase() [2/2]

DBus::MethodProxyBase::MethodProxyBase ( const MethodProxyBase other)
protected

◆ ~MethodProxyBase()

DBus::MethodProxyBase::~MethodProxyBase ( )

Member Function Documentation

◆ call()

std::shared_ptr< const ReturnMessage > DBus::MethodProxyBase::call ( std::shared_ptr< const CallMessage call_message,
int  timeout_milliseconds = -1 
) const

◆ create()

std::shared_ptr< MethodProxyBase > DBus::MethodProxyBase::create ( const std::string &  name)
static

References MethodProxyBase(), and name().

◆ create_call_message()

std::shared_ptr< CallMessage > DBus::MethodProxyBase::create_call_message ( ) const

◆ DBUS_CXX_PROPAGATE_CONST()

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

◆ interface_name()

InterfaceProxy * DBus::MethodProxyBase::interface_name ( ) const

◆ name()

const std::string & DBus::MethodProxyBase::name ( ) const

Referenced by create().

◆ set_interface()

void DBus::MethodProxyBase::set_interface ( InterfaceProxy proxy)
private

Friends And Related Function Documentation

◆ InterfaceProxy

friend class InterfaceProxy
friend

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