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())...
124 , _Interfaces(getProxy())...
138 ProxyInterfaces(std::unique_ptr<sdbus::IConnection>&& connection, std::string destination, std::string objectPath)
140 , _Interfaces(getProxy())...
153 getProxy().finishRegistration();
165 getProxy().unregister();
173 return getProxy().getObjectPath();
ProxyInterfaces(IConnection &connection, std::string destination, std::string objectPath)
Creates native-like proxy object instance.
Definition: ProxyInterfaces.h:122
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:138
void registerProxy()
Finishes proxy registration and makes the proxy ready for use.
Definition: ProxyInterfaces.h:151
void unregisterProxy()
Unregisters the proxy so it no more receives signals and async call replies.
Definition: ProxyInterfaces.h:163
ProxyInterfaces(std::string destination, std::string objectPath)
Creates native-like proxy object instance.
Definition: ProxyInterfaces.h:106
Definition: ProxyInterfaces.h:92
const std::string & getObjectPath() const
Returns object path of the underlying DBus object.
Definition: ProxyInterfaces.h:171
Definition: ProxyInterfaces.h:51
Definition: AdaptorInterfaces.h:36
Definition: IConnection.h:47