27 #ifndef SDBUS_CXX_PROXYINTERFACES_H_ 28 #define SDBUS_CXX_PROXYINTERFACES_H_ 55 : proxy_(std::move(proxy))
57 assert(proxy_ !=
nullptr);
60 const IProxy& getProxy()
const 62 assert(proxy_ !=
nullptr);
68 assert(proxy_ !=
nullptr);
73 std::unique_ptr<IProxy> proxy_;
91 template <
typename... _Interfaces>
94 ,
public _Interfaces...
108 , _Interfaces(getProxy())...
123 , _Interfaces(getProxy())...
139 , _Interfaces(getProxy())...
153 ProxyInterfaces(std::unique_ptr<sdbus::IConnection>&& connection, std::string destination, std::string objectPath)
155 , _Interfaces(getProxy())...
171 , _Interfaces(getProxy())...
ProxyInterfaces(std::string destination, std::string objectPath, dont_run_event_loop_thread_t)
Creates native-like proxy object instance.
Definition: ProxyInterfaces.h:121
ProxyInterfaces(IConnection &connection, std::string destination, std::string objectPath)
Creates native-like proxy object instance.
Definition: ProxyInterfaces.h:137
virtual void finishRegistration()=0
Finishes the registration of signal handlers.
std::unique_ptr< sdbus::IProxy > createProxy(sdbus::IConnection &connection, std::string destination, std::string objectPath)
Creates a proxy object for a specific remote D-Bus object.
ProxyInterfaces(std::unique_ptr< sdbus::IConnection > &&connection, std::string destination, std::string objectPath)
Creates native-like proxy object instance.
Definition: ProxyInterfaces.h:153
Definition: TypeTraits.h:91
virtual void unregister()=0
Unregisters proxy's signal handlers and stops receving replies to pending async calls.
void registerProxy()
Finishes proxy registration and makes the proxy ready for use.
Definition: ProxyInterfaces.h:182
void unregisterProxy()
Unregisters the proxy so it no more receives signals and async call replies.
Definition: ProxyInterfaces.h:194
ProxyInterfaces(std::string destination, std::string objectPath)
Creates native-like proxy object instance.
Definition: ProxyInterfaces.h:106
ProxyInterfaces(std::unique_ptr< sdbus::IConnection > &&connection, std::string destination, std::string objectPath, dont_run_event_loop_thread_t)
Creates native-like proxy object instance.
Definition: ProxyInterfaces.h:169
virtual const std::string & getObjectPath() const =0
Returns object path of the underlying DBus object.
Definition: ProxyInterfaces.h:92
const std::string & getObjectPath() const
Returns object path of the underlying DBus object.
Definition: ProxyInterfaces.h:202
Definition: ProxyInterfaces.h:51
Definition: AdaptorInterfaces.h:36
Definition: IConnection.h:49