API Documentation
Loading...
Searching...
No Matches
ItemDownloader Class Reference

Used for Downloading resources from a network. More...

#include <ItemDownloader.h>

Inheritance diagram for ItemDownloader:
[legend]
Collaboration diagram for ItemDownloader:
[legend]

Signals

void downloadedSignal ()
 
void downloadFailedSignal (int)
 
void percentChangedSignal ()
 

Public Member Functions

uint08 currentDownloadSize () const
 
const QByteArray & downloadedData () const
 
fltp08 downloadPercent () const
 
 ItemDownloader (const String &url, QObject *parent=nullptr)
 
 ItemDownloader (QUrl url, QObject *parent=nullptr)
 
void start ()
 
uint08 totalDownloadSize () const
 
virtual ~ItemDownloader ()
 

Static Public Member Functions

static bool HasNetworkManager ()
 
static NetworkAccessManagerNetworkManager ()
 
static void SetAccessManager (NetworkAccessManager *manager)
 

Protected Member Functions

void setNetworkRequest (const String &url)
 

Detailed Description

Used for Downloading resources from a network.


Constructor & Destructor Documentation

◆ ItemDownloader() [1/2]

ItemDownloader ( const String & url,
QObject * parent = nullptr )
explicit

◆ ItemDownloader() [2/2]

ItemDownloader ( QUrl url,
QObject * parent = nullptr )
explicit

◆ ~ItemDownloader()

virtual ~ItemDownloader ( )
virtual

Member Function Documentation

◆ currentDownloadSize()

uint08 currentDownloadSize ( ) const
inlinenodiscard

◆ downloadedData()

const QByteArray & downloadedData ( ) const
nodiscard

◆ downloadedSignal

void downloadedSignal ( )
signal

◆ downloadFailedSignal

void downloadFailedSignal ( int )
signal

◆ downloadPercent()

fltp08 downloadPercent ( ) const
nodiscard

◆ HasNetworkManager()

static bool HasNetworkManager ( )
static

◆ NetworkManager()

static NetworkAccessManager * NetworkManager ( )
static

◆ percentChangedSignal

void percentChangedSignal ( )
signal

◆ SetAccessManager()

static void SetAccessManager ( NetworkAccessManager * manager)
static

◆ setNetworkRequest()

void setNetworkRequest ( const String & url)
protected

◆ start()

void start ( )

◆ totalDownloadSize()

uint08 totalDownloadSize ( ) const
inlinenodiscard

The documentation for this class was generated from the following file: