DBus::PropertiesInterfaceProxy Class Reference

#include <propertiesinterfaceproxy.h>

Inheritance diagram for DBus::PropertiesInterfaceProxy:

Public Member Functions

Variant Get (std::string interface_name, std::string property_name)
 
void Set (std::string interface_name, std::string property_name, Variant property_value)
 
std::map< std::string, VariantGetAll (std::string interface_name)
 
- Public Member Functions inherited from DBus::InterfaceProxy
virtual ~InterfaceProxy ()
 
ObjectProxyobject () const
 
Path path () const
 
std::weak_ptr< Connectionconnection () const
 
const std::string & name () const
 
const Methodsmethods () const
 
std::shared_ptr< MethodProxyBasemethod (const std::string &name) const
 Returns the first method with the given name. More...
 
template<class T_type >
std::shared_ptr< MethodProxy< T_type > > create_method (const std::string &name)
 
bool add_method (std::shared_ptr< MethodProxyBase > method)
 Adds the named method. More...
 
void remove_method (const std::string &name)
 Removes the method with the given name. More...
 
void remove_method (std::shared_ptr< MethodProxyBase > method)
 Removed the specific method. More...
 
bool has_method (const std::string &name) const
 True if the interface has a method with the given name. More...
 
bool has_method (std::shared_ptr< MethodProxyBase > method) const
 True if the interface has the specified method. More...
 
const std::map< std::string, std::shared_ptr< PropertyProxyBase > > & properties () const
 Get the (local) cache of all properties. More...
 
std::shared_ptr< PropertyProxyBaseproperty (const std::string &name) const
 
bool has_property (const std::string &name) const
 True if the interface has a property with the given name. More...
 
bool has_property (std::shared_ptr< PropertyProxyBase > property) const
 True if the interface has the specified property. More...
 
void remove_property (const std::string &name)
 Removes the property with the given name. More...
 
void remove_property (std::shared_ptr< PropertyProxyBase > method)
 Removed the specific property. More...
 
template<class T_type >
std::shared_ptr< PropertyProxy< T_type > > create_property (const std::string &name, PropertyUpdateType update=PropertyUpdateType::Updates)
 Create a property with the given type, and the given name. More...
 
bool add_property (std::shared_ptr< PropertyProxyBase > property)
 Adds the given property. More...
 
void cache_properties ()
 Ask the remote object for the status of all of its properties. More...
 
std::shared_ptr< CallMessagecreate_call_message (const std::string &method_name) const
 
std::shared_ptr< const ReturnMessagecall (std::shared_ptr< const CallMessage >, int timeout_milliseconds=-1) const
 
template<class T_arg >
std::shared_ptr< SignalProxy< T_arg > > create_signal (const std::string &sig_name)
 
const Signalssignals () const
 
std::shared_ptr< SignalProxyBasesignal (const std::string &signame)
 
bool add_signal (std::shared_ptr< SignalProxyBase > sig)
 
bool remove_signal (const std::string &signame)
 
bool remove_signal (std::shared_ptr< SignalProxyBase > sig)
 
bool has_signal (const std::string &signame) const
 
bool has_signal (std::shared_ptr< SignalProxyBase > sig) const
 

Static Public Member Functions

static std::shared_ptr< PropertiesInterfaceProxycreate ()
 
- Static Public Member Functions inherited from DBus::InterfaceProxy
static std::shared_ptr< InterfaceProxycreate (const std::string &name=std::string())
 

Private Member Functions

 PropertiesInterfaceProxy ()
 

Private Attributes

std::shared_ptr< MethodProxy< Variant(std::string, std::string)> > m_get_method
 
std::shared_ptr< MethodProxy< void(std::string, std::string, Variant)> > m_set_method
 
std::shared_ptr< MethodProxy< std::map< std::string, Variant >std::string)> > m_getall_method
 

Additional Inherited Members

- Public Types inherited from DBus::InterfaceProxy
typedef std::multimap< std::string, std::shared_ptr< MethodProxyBase > > Methods
 
typedef std::set< std::shared_ptr< SignalProxyBase > > Signals
 
- Protected Member Functions inherited from DBus::InterfaceProxy
 InterfaceProxy (const std::string &name)
 

Constructor & Destructor Documentation

◆ PropertiesInterfaceProxy()

PropertiesInterfaceProxy::PropertiesInterfaceProxy ( )
private

References m_get_method, m_getall_method, and m_set_method.

Referenced by create().

Member Function Documentation

◆ create()

std::shared_ptr< PropertiesInterfaceProxy > PropertiesInterfaceProxy::create ( )
static

◆ Get()

DBus::Variant PropertiesInterfaceProxy::Get ( std::string  interface_name,
std::string  property_name 
)

References m_get_method.

◆ GetAll()

std::map<std::string,Variant> DBus::PropertiesInterfaceProxy::GetAll ( std::string  interface_name)

◆ Set()

void PropertiesInterfaceProxy::Set ( std::string  interface_name,
std::string  property_name,
Variant  property_value 
)

References m_set_method.

Member Data Documentation

◆ m_get_method

std::shared_ptr<MethodProxy<Variant(std::string,std::string)> > DBus::PropertiesInterfaceProxy::m_get_method
private

Referenced by Get(), and PropertiesInterfaceProxy().

◆ m_getall_method

std::shared_ptr<MethodProxy<std::map<std::string,Variant>std::string)> > DBus::PropertiesInterfaceProxy::m_getall_method
private

◆ m_set_method

std::shared_ptr<MethodProxy<void(std::string,std::string,Variant)> > DBus::PropertiesInterfaceProxy::m_set_method
private

Referenced by PropertiesInterfaceProxy(), and Set().


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