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

explicit LoadImageTask(const string &url, Domain *domain)

Constructor.

Parameters
  • url: HTTP url of the resource.

  • domain: Kanzi UI Domain.

virtual ~LoadImageTask() = default

Desctructor.

virtual void finishFunction (const KzuResourceLoaderThreadContext *context) KZ_OVERRIDE

A function that is called when the loading is finished.

Parameters
  • context: Thread context, unused

virtual ResourceSharedPtr getResult () KZ_OVERRIDE

A function that is called to retrieve the result of the loading.

Return

A shared pointer to the resource that was loaded.

virtual void loadFunction (const KzuResourceLoaderThreadContext *context) KZ_OVERRIDE

A function that performs the actual resource loading.

Parameters
  • context: Thread context, unused