LoadImageTask¶
-
class
kanzi::connect::LoadImageTask: public LoadTask¶ A resource loading task that can be used to retrieve an image from the network using HTTP or HTTPS.
Subclassed by LoadImageTaskHttp
Public Functions
-
LoadImageTask(const string &url, Domain *domain)¶ Constructor.
- Parameters
url: HTTP url of the resource.domain: Kanzi UI Domain.
-
~LoadImageTask() = default¶ Desctructor.
-
void
finishFunction(const KzuResourceLoaderThreadContext *context) override¶ A function that is called when the loading is finished.
- Parameters
context: Thread context, unused
-
ResourceSharedPtr
getResult() override¶ A function that is called to retrieve the result of the loading.
- Return
A shared pointer to the resource that was loaded.
-
void
loadFunction(const KzuResourceLoaderThreadContext *context) override¶ A function that performs the actual resource loading.
- Parameters
context: Thread context, unused
-