![]() |
dbus-cxx
|
#include <objectmanagerproxy.h>
Public Member Functions | |
ObjectManagerObjects | GetManagedObjects () |
DBus::SignalProxy< void(Path, std::map< std::string, std::map< std::string, DBus::Variant > >)> & | signal_InterfacesAdded () |
DBus::SignalProxy< void(Path, std::vector< std::string > interfaces)> & | signal_InterfacesRemoved () |
![]() | |
virtual | ~InterfaceProxy () |
ObjectProxy * | object () const |
Path | path () const |
std::weak_ptr< Connection > | connection () const |
const std::string & | name () const |
const Methods & | methods () const |
std::shared_ptr< MethodProxyBase > | method (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< PropertyProxyBase > | property (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< CallMessage > | create_call_message (const std::string &method_name) const |
std::shared_ptr< const ReturnMessage > | call (std::shared_ptr< const CallMessage >, int timeout_milliseconds=-1) const |
std::shared_ptr< const ReturnMessage > | call_notimeout (std::shared_ptr< const CallMessage >) const |
template<class T_arg > | |
std::shared_ptr< SignalProxy< T_arg > > | create_signal (const std::string &sig_name) |
const Signals & | signals () const |
std::shared_ptr< SignalProxyBase > | signal (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< ObjectManagerProxy > | create () |
![]() | |
static std::shared_ptr< InterfaceProxy > | create (const std::string &name=std::string()) |
Private Member Functions | |
ObjectManagerProxy () | |
Private Attributes | |
std::shared_ptr< MethodProxy< ObjectManagerObjects()> > | m_get_managed_objects_method |
std::shared_ptr< DBus::SignalProxy< void(Path, std::map< std::string, std::map< std::string, DBus::Variant > >)> > | m_signal_interfaces_added |
std::shared_ptr< DBus::SignalProxy< void(Path, std::vector< std::string >)> > | m_signal_interfaces_removed |
Additional Inherited Members | |
![]() | |
typedef std::multimap< std::string, std::shared_ptr< MethodProxyBase > > | Methods |
typedef std::set< std::shared_ptr< SignalProxyBase > > | Signals |
![]() | |
InterfaceProxy (const std::string &name) | |
|
private |
References DBus::InterfaceProxy::create_signal(), m_get_managed_objects_method, m_signal_interfaces_added, and m_signal_interfaces_removed.
Referenced by create().
|
static |
References ObjectManagerProxy().
DBus::ObjectManagerObjects ObjectManagerProxy::GetManagedObjects | ( | ) |
References m_get_managed_objects_method.
DBus::SignalProxy< void(DBus::Path, std::map< std::string, std::map< std::string, DBus::Variant > >)> & ObjectManagerProxy::signal_InterfacesAdded | ( | ) |
References m_signal_interfaces_added.
DBus::SignalProxy< void(DBus::Path, std::vector< std::string > interfaces)> & ObjectManagerProxy::signal_InterfacesRemoved | ( | ) |
References m_signal_interfaces_removed.
|
private |
Referenced by GetManagedObjects(), and ObjectManagerProxy().
|
private |
Referenced by ObjectManagerProxy(), and signal_InterfacesAdded().
|
private |
Referenced by ObjectManagerProxy(), and signal_InterfacesRemoved().