A resource loading task that can be used to retrieve an image from the network using HTTP or HTTPS. More...
#include <load_image_task_http.hpp>
Public Member Functions | |
| virtual void | loadFunction (const KzuResourceLoaderThreadContext *context) KZ_OVERRIDE |
| A function that performs the resource loading. More... | |
| LoadImageTaskHttp (const string &url, Domain *domain) | |
| Constructor. More... | |
| virtual | ~LoadImageTaskHttp ()=default |
| dtor More... | |
Public Member Functions inherited from kanzi::connect::LoadImageTask | |
| virtual void | finishFunction (const KzuResourceLoaderThreadContext *context) KZ_OVERRIDE |
| A function that is called when the loading is finished. More... | |
| virtual ResourceSharedPtr | getResult () KZ_OVERRIDE |
| A function that is called to retrieve the result of the loading. More... | |
| LoadImageTask (const string &url, Domain *domain) | |
| Constructor. More... | |
| virtual | ~LoadImageTask ()=default |
| Desctructor. More... | |
Additional Inherited Members | |
Protected Types inherited from kanzi::connect::LoadImageTask | |
| enum | ImageType { ImageType::JPG, ImageType::PNG, ImageType::UNSUPPORTED } |
| Specifies the supported file types. More... | |
Protected Member Functions inherited from kanzi::connect::LoadImageTask | |
| virtual void | decodeKanziBitmap (const KzuResourceLoaderThreadContext *context) |
| LoadImageTask (const LoadImageTask &other) KZ_DELETED_FUNCTION | |
| No copying. More... | |
| LoadImageTask & | operator= (const LoadImageTask &other) KZ_DELETED_FUNCTION |
| No assignment. More... | |
Static Protected Member Functions inherited from kanzi::connect::LoadImageTask | |
| static ImageType | detectImageType (const unsigned char *buffer, size_t lenght) |
| Detect image type based on buffer contents. More... | |
| static bool | isJpgImage (const unsigned char *buffer, size_t size) |
| Check if the given buffer contains a valid signature for JPG file. More... | |
| static bool | isPngImage (const unsigned char *buffer, size_t size) |
| Check if the given buffer contains a valid signature for PNG file. More... | |
Protected Attributes inherited from kanzi::connect::LoadImageTask | |
| Domain * | m_domain |
| BitmapImageUniquePtr | m_image |
| vector< char > | m_imageData |
| int | m_loadResult |
| KzcMemoryManager * | m_memoryManager |
| bool | m_statusReported |
| TextureSharedPtr | m_texture |
| string | m_url |
A resource loading task that can be used to retrieve an image from the network using HTTP or HTTPS.
|
explicit |
Constructor.
| url | HTTP URL of the resource. |
| domain | Kanzi UI Domain. |
|
virtualdefault |
dtor
|
virtual |
A function that performs the resource loading.
| context | Thread context, unused. |
Reimplemented from kanzi::connect::LoadImageTask.