FileLoader¶
-
class
kanzi::connect
::
FileLoader
: private VirtualfileObserver¶ Class to load files from a server or remote service over the connection adapters.
Public Functions
Constructor.
- Parameters
client
: Access to server, message dispatcher and task queue
-
~FileLoader () KZ_OVERRIDE
dtor
-
size_t
getUsedBlockCount
() const¶ Get the block count used in the last load.
- Return
Block count
-
int
getUsedBlockSize
() const¶ Get the block size used in the last load.
- Return
Block size in bytes
Public Static Functions
Utility function for downloading a file outside Kanzi main thread.
Blocks until file has been loaded or timeout
- Parameters
uri
: Unique resource identifier.me
: Instance of content loader to be used.outFile
: Memory buffer to write the data.initialResponseTimeout
: Timeout to wait for response from server