27 #ifndef SDBUS_CXX_ADAPTORINTERFACES_H_ 28 #define SDBUS_CXX_ADAPTORINTERFACES_H_ 54 : object_(std::move(
object))
58 const IObject& getObject()
const 60 assert(object_ !=
nullptr);
66 assert(object_ !=
nullptr);
71 std::unique_ptr<IObject> object_;
90 template <
typename... _Interfaces>
93 ,
public _Interfaces...
106 , _Interfaces(getObject())...
119 getObject().finishRegistration();
131 getObject().unregister();
139 return getObject().getObjectPath();
const std::string & getObjectPath() const
Returns object path of the underlying DBus object.
Definition: AdaptorInterfaces.h:137
std::unique_ptr< sdbus::IObject > createObject(sdbus::IConnection &connection, std::string objectPath)
Creates instance representing a D-Bus object.
Definition: AdaptorInterfaces.h:91
Definition: AdaptorInterfaces.h:50
void unregisterAdaptor()
Unregisters adaptors's API and removes it from the bus.
Definition: AdaptorInterfaces.h:129
AdaptorInterfaces(IConnection &connection, std::string objectPath)
Creates object instance.
Definition: AdaptorInterfaces.h:104
Definition: AdaptorInterfaces.h:36
Definition: IConnection.h:47
void registerAdaptor()
Finishes adaptor API registration and publishes the adaptor on the bus.
Definition: AdaptorInterfaces.h:117