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())...
virtual void finishRegistration()=0
Finishes object API registration and publishes the object on the bus.
std::unique_ptr< sdbus::IObject > createObject(sdbus::IConnection &connection, std::string objectPath)
Creates instance representing a D-Bus object.
virtual void unregister()=0
Unregisters object's API and removes object from the bus.
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: IConnection.h:47
void registerAdaptor()
Finishes adaptor API registration and publishes the adaptor on the bus.
Definition: AdaptorInterfaces.h:117