A class that implements data source that is able to load content from Kanzi Connect server.
More...
|
| KZ_METACLASS_END () |
|
virtual | ~KanziConnectDataSource () override |
|
| KZ_METACLASS_END () |
|
void | onDataObjectChanged (RuntimeDataObjectWeakPtr runtimeObject, const DataObjectSharedPtr dataObject) |
| Handler for changes coming from the DataObjects under the data source data tree. More...
|
|
virtual void | onPropertyChanged (AbstractPropertyType propertyType, PropertyNotificationReason reason) override |
|
void | start () |
| Starts operation. More...
|
|
void | stop () |
| Stops operation. More...
|
|
virtual | ~AbstractConnectDataSource () override |
| Destructor. More...
|
|
virtual DataObjectSharedPtr | getData () override |
|
virtual void | loadFromKZB (Domain *domain, KzbFile &kzbFile, ReadOnlyMemoryFile &file, KzbMemoryParser &parser) override |
|
virtual void | unloadOverride () |
|
void | addAdapter (ContentAdapterSharedPtr adapter) |
| Adds new adapter to list of adapters, but does not set up or start it. More...
|
|
| ContentAdapterManager (ContextSharedPtr context, DataSource *dataSource) |
| Constructor. More...
|
|
| ContentAdapterManager (DataSource *dataSource) |
| Constructor. More...
|
|
virtual ContentAdapterSharedPtr | createAdapter (const string &serverName, const ContentAdapterConfigurationSharedPtr config, Domain *domain) |
| Creates a standard adapter. More...
|
|
void | destroyAllAdapters () |
| Stops and cleans up all adapters. More...
|
|
ContentAdapterSharedPtr | findDynamicSource (const string &name) |
| Locates a dynamic source with given name. More...
|
|
ContentAdapterSharedPtr | findSource (const string &name) |
| Locates a source with given name. More...
|
|
ContentAdapterManager::AdapterContainer | getAdapters () |
| Retrieves all currently known adapters. More...
|
|
ContextSharedPtr | getContext () const |
| Returns gateway to Kanzi Connect server. More...
|
|
void | initializeAllAdapters (DataObjectSharedPtr root) |
| Initializes all adapters. More...
|
|
void | removeAdapter (ContentAdapterSharedPtr adapter) |
| Removes adapter from list of adapters. More...
|
|
void | setContext (ContextSharedPtr context) |
| Set gateway to Kanzi Connect server. More...
|
|
virtual ContentAdapterSharedPtr | startAdapter (const string &serverName, DataObjectSharedPtr root, const ContentAdapterConfigurationSharedPtr config) |
| Instantiates and starts new adapter according to given parameters. More...
|
|
void | startAllAdapters () |
| Starts all adapters. More...
|
|
virtual void | stopAdapter (ContentAdapterSharedPtr adapter) |
| Stops an existing adapter. More...
|
|
void | stopAllAdapters () |
| Stops all existing adapters. More...
|
|
virtual | ~ContentAdapterManager ()=default |
| dtor More...
|
|
A class that implements data source that is able to load content from Kanzi Connect server.
The class can be configured with XML file, that describes the data tree and source tables and columns in the database.
See example of data.xml file below.
<root>
<source uri="service://com.rightware.service_name/content_path" name="data_object_name">
<field column="column_name" type="int" name="data_object_name"/>
</source>
<source uri="service://com.rightware.service_name" name="data_object_name">
<field column="column_name" type="int" name="data_object_name"/>
</source>
<source uri="content://com.rightware.content/contacts" name="contacts">
<field column="contact_id" type="int" name="id"/>
<field column="contact_firstname" type="string" name="firstname"/>
<field column="contact_lastname" type="string" name="lastname"/>
<field column="contact_phone" type="string" name="phone"/>
</source>
<source uri="service://com.rightware.media" name="media_state">
<field column="current_track_id" type="int" name="current_track"/>
</source>
</root>