Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
Assets::Downloader::AssetDownloaderPrivate Class Reference
+ Collaboration diagram for Assets::Downloader::AssetDownloaderPrivate:

Public Member Functions

 AssetDownloaderPrivate (AssetDownloader *q)
 
void setLocalDownloadDir (const QDir &dir)
 
void setProgress (int progressValue, int progressMaximum, const QString &progressText)
 
void updateProgress (int progressValue, int progressMaximum)
 
void clearProgress (const QString &progressText)
 
void setupDownload (NetworkQuery *query, const QString &progressText)
 

Public Attributes

AssetDownloaderm_q = nullptr
 
std::unique_ptr< QNetworkAccessManagerm_manager
 
std::unique_ptr< QTemporaryDir > m_temporaryDir
 
TaskTreeRunner m_taskTreeRunner
 
QString m_lastProgressText
 
QDir m_localDownloadDir
 
QString m_jsonFileName
 
QString m_zipFileName
 
QDir m_preferredLocalDownloadDir
 
QUrl m_offlineAssetsFilePath
 
QUrl m_downloadBase
 

Detailed Description

Definition at line 33 of file assetdownloader.cpp.

Constructor & Destructor Documentation

◆ AssetDownloaderPrivate()

Assets::Downloader::AssetDownloaderPrivate::AssetDownloaderPrivate ( AssetDownloader * q)
inline

Definition at line 36 of file assetdownloader.cpp.

Member Function Documentation

◆ clearProgress()

void Assets::Downloader::AssetDownloaderPrivate::clearProgress ( const QString & progressText)
inline

Definition at line 68 of file assetdownloader.cpp.

References setProgress().

Referenced by setupDownload().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setLocalDownloadDir()

void Assets::Downloader::AssetDownloaderPrivate::setLocalDownloadDir ( const QDir & dir)
inline

Definition at line 52 of file assetdownloader.cpp.

References QDir::absolutePath(), dir, emit, QUrl::fromLocalFile(), Assets::Downloader::AssetDownloader::localDownloadDirChanged(), m_localDownloadDir, and m_q.

+ Here is the call graph for this function:

◆ setProgress()

void Assets::Downloader::AssetDownloaderPrivate::setProgress ( int progressValue,
int progressMaximum,
const QString & progressText )
inline

Definition at line 59 of file assetdownloader.cpp.

References emit, m_lastProgressText, m_q, and Assets::Downloader::AssetDownloader::progressChanged().

Referenced by clearProgress(), and updateProgress().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setupDownload()

void Assets::Downloader::AssetDownloaderPrivate::setupDownload ( NetworkQuery * query,
const QString & progressText )
inline

Definition at line 73 of file assetdownloader.cpp.

References clearProgress(), QObject::connect(), QNetworkReply::downloadProgress(), m_manager, reply, Tasking::NetworkQuery::started(), and updateProgress().

+ Here is the call graph for this function:

◆ updateProgress()

void Assets::Downloader::AssetDownloaderPrivate::updateProgress ( int progressValue,
int progressMaximum )
inline

Definition at line 64 of file assetdownloader.cpp.

References m_lastProgressText, and setProgress().

Referenced by setupDownload().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ m_downloadBase

QUrl Assets::Downloader::AssetDownloaderPrivate::m_downloadBase

Definition at line 50 of file assetdownloader.cpp.

◆ m_jsonFileName

QString Assets::Downloader::AssetDownloaderPrivate::m_jsonFileName

Definition at line 45 of file assetdownloader.cpp.

◆ m_lastProgressText

QString Assets::Downloader::AssetDownloaderPrivate::m_lastProgressText

Definition at line 42 of file assetdownloader.cpp.

Referenced by setProgress(), and updateProgress().

◆ m_localDownloadDir

QDir Assets::Downloader::AssetDownloaderPrivate::m_localDownloadDir

Definition at line 43 of file assetdownloader.cpp.

Referenced by setLocalDownloadDir().

◆ m_manager

std::unique_ptr<QNetworkAccessManager> Assets::Downloader::AssetDownloaderPrivate::m_manager

Definition at line 39 of file assetdownloader.cpp.

Referenced by setupDownload().

◆ m_offlineAssetsFilePath

QUrl Assets::Downloader::AssetDownloaderPrivate::m_offlineAssetsFilePath

Definition at line 49 of file assetdownloader.cpp.

◆ m_preferredLocalDownloadDir

QDir Assets::Downloader::AssetDownloaderPrivate::m_preferredLocalDownloadDir
Initial value:

Definition at line 47 of file assetdownloader.cpp.

◆ m_q

AssetDownloader* Assets::Downloader::AssetDownloaderPrivate::m_q = nullptr

Definition at line 37 of file assetdownloader.cpp.

Referenced by setLocalDownloadDir(), and setProgress().

◆ m_taskTreeRunner

TaskTreeRunner Assets::Downloader::AssetDownloaderPrivate::m_taskTreeRunner

Definition at line 41 of file assetdownloader.cpp.

◆ m_temporaryDir

std::unique_ptr<QTemporaryDir> Assets::Downloader::AssetDownloaderPrivate::m_temporaryDir

Definition at line 40 of file assetdownloader.cpp.

◆ m_zipFileName

QString Assets::Downloader::AssetDownloaderPrivate::m_zipFileName

Definition at line 46 of file assetdownloader.cpp.


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