|
MT Showcase SDK
|
Service instance is a general API for services used within the application All services need to be subclasses of the ServiceInstance. More...
#include <ServiceComponent.hpp>
Public Member Functions | |
| virtual void | removeInstance () override |
| Override this to run a tear down code for the services. More... | |
| virtual void | propertyReceived (const PropertyKey &key, const PropertyValue &value) override |
| Called for each property found for the creator component This function may be called same time from multiple threads. More... | |
Public Member Functions inherited from Showcase::ComponentInstance | |
| ComponentInstance (std::shared_ptr< Component > component) | |
| Create a new instance from the given component. More... | |
| virtual | ~ComponentInstance () |
| Each subclass needs to do needed clean up in their own destructors (should be enough to call removeInstance) More... | |
| virtual MultiWidgets::WidgetPtr | widgetInstance () |
| After first call of this, user of the component is required to keep track of the widget. More... | |
| virtual MultiWidgets::OperatorPtr | operatorInstance (MultiWidgets::Widget &host, bool immediate=false) |
| Assigns the operator to the given widget. More... | |
| std::shared_ptr< Component > | creator () const |
| An instance is always tied to a component and can't exist without the component that created it. More... | |
| virtual void | propertyLost (const PropertyKey &key, const PropertyValue &value) |
| Called when a property is unset for the component This function may be called same time from multiple threads. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from Showcase::ComponentInstance | |
| void | onDelete () |
| This needs to be set up so that when the actual instance (not this proxy object) is removed this is called (f.ex. More... | |
Service instance is a general API for services used within the application All services need to be subclasses of the ServiceInstance.
|
overridevirtual |
Called for each property found for the creator component This function may be called same time from multiple threads.
| key | identifies the target property |
| value | new value set for the property |
Reimplemented from Showcase::ComponentInstance.
|
overridevirtual |
Override this to run a tear down code for the services.
As the instance is this, there is no need to do anything additional
Implements Showcase::ComponentInstance.