Utility class for receiving runtimedata along the existing connection to a server. More...
#include <stream_util_connect.hpp>
Public Member Functions | |
RuntimeDataSubscriber (ContentClient::RuntimeDataResultCallbackFunction callback) | |
Constructor. | |
void | onContentLoaded (ContentLoader *loader, ContentResult *result) override |
void | onContentInvalidated (ContentLoader *loader) override |
Callback to notify that previously loaded content is no longer valid. | |
void | onRuntimeDataUpdateReceived (ContentLoader *loader, const string &uri, const string &stream) override |
Callback to notify when runtime data update is received. | |
Utility class for receiving runtimedata along the existing connection to a server.
kanzi::connect::RuntimeDataSubscriber::RuntimeDataSubscriber | ( | ContentClient::RuntimeDataResultCallbackFunction | callback | ) |
Constructor.
callback | Callback function to be notified when data changes. |
|
overridevirtual |
Callback to notify that previously loaded content is no longer valid.
loader | Content loader that invalidated the content. |
Implements kanzi::connect::ContentLoader::Observer.
|
overridevirtual |
Implements kanzi::connect::ContentLoader::Observer.
|
overridevirtual |
Callback to notify when runtime data update is received.
Implements kanzi::connect::ContentLoader::Observer.