Abstract class that retrieves content from external location.
More...
#include <content_loader.hpp>
|
class | Observer |
| Class that contains callbacks to deliver the results. More...
|
|
Abstract class that retrieves content from external location.
◆ ContentLoader()
kanzi::connect::ContentLoader::ContentLoader |
( |
| ) |
|
◆ ~ContentLoader()
virtual kanzi::connect::ContentLoader::~ContentLoader |
( |
| ) |
|
|
virtualdefault |
◆ addObserver()
void kanzi::connect::ContentLoader::addObserver |
( |
Observer * | observer | ) |
|
Subscribe to content notification callbacks.
- Parameters
-
◆ notifyContentInvalidated()
void kanzi::connect::ContentLoader::notifyContentInvalidated |
( |
| ) |
|
|
protected |
Invoke observer callback when previously loaded content is invalidated.
◆ notifyContentLoaded()
void kanzi::connect::ContentLoader::notifyContentLoaded |
( |
ContentResult * | result | ) |
|
|
protected |
Invoke observer callback when new content result is received.
◆ notifyRuntimeDataUpdateReceived()
void kanzi::connect::ContentLoader::notifyRuntimeDataUpdateReceived |
( |
const string & | uri, |
|
|
const string & | stream ) |
|
protected |
◆ removeObserver()
void kanzi::connect::ContentLoader::removeObserver |
( |
Observer * | observer | ) |
|
Unsubscribe from content notification callbacks.
- Parameters
-
◆ start()
◆ startRuntime()
virtual void kanzi::connect::ContentLoader::startRuntime |
( |
const string | uri, |
|
|
int | credits, |
|
|
int | creditReturnInterval ) |
|
pure virtual |
Starts runtime loading of data from a specific address.
- Parameters
-
uri | the uri where from to load. |
credits | total amount of transfer credits. |
creditReturnInterval | after how many received packets credits are returned to sender. |
Implemented in kanzi::connect::DefaultContentLoader.
◆ stop()
virtual void kanzi::connect::ContentLoader::stop |
( |
| ) |
|
|
pure virtual |
The documentation for this class was generated from the following file:
- content_service/content_loader.hpp