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

#include <ItemDownloader.h>

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

Signals

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

Public Member Functions

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

Static Public Member Functions

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

Protected Member Functions

void setNetworkRequest (const String &url)
 

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()

~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()

bool HasNetworkManager ( )
static

◆ NetworkManager()

NetworkAccessManager * NetworkManager ( )
static

◆ percentChangedSignal

void percentChangedSignal ( )
signal

◆ SetAccessManager()

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 files: