![]() | InDesign SDK 20.5 |
#include <IHTTPAssetDownloadManager.h>

Public Types | |
| enum | { kDefaultIID = IID_IHTTPASSETDOWNLOADMANAGER } |
| typedef boost::function< void(const URI &inURI, const IDFile &cachedFilePath, HTTPLinkSubsystemTypes::HTTPAssetDownloadState inState, const float inProgress)> | AssetDownloadProgressCallback |
| typedef boost::function< void(const URI &inURI, HTTPLinkSubsystemTypes::HTTPAssetDownloadState inState, const IDFile &cachedFilePath)> | AssetDownloadCompletionCallback |
Public Member Functions | |
| virtual bool16 | Initialize ()=0 |
| virtual bool16 | Shutdown ()=0 |
| virtual bool16 | StartDownload (const URI &inUri, HTTPLinkSubsystemTypes::AssetDownloadMode inDownloadMode, IHTTPAssetDownloadManager::AssetDownloadProgressCallback progressCallback=NULL, IHTTPAssetDownloadManager::AssetDownloadCompletionCallback completionCallback=NULL)=0 |
| virtual bool16 | StartDownload (const URI &inUri, HTTPLinkSubsystemTypes::AssetDownloadMode inDownloadMode, const IDFile &downloadPath, IHTTPAssetDownloadManager::AssetDownloadProgressCallback progressCallback=NULL, IHTTPAssetDownloadManager::AssetDownloadCompletionCallback completionCallback=NULL)=0 |
| virtual bool16 | PauseDownload (const URI &inUri)=0 |
| virtual bool16 | ResumeDownload (const URI &inUri)=0 |
| virtual bool16 | CancelDownload (const URI &inUri)=0 |
| virtual bool16 | PauseAllDownloads ()=0 |
| virtual bool16 | ResumeAllDownloads ()=0 |
| virtual bool16 | CancelAllDownloads ()=0 |
| virtual HTTPLinkSubsystemTypes::HTTPAssetDownloadState | GetDownloadState (const URI &inUri) const =0 |
| virtual bool16 | GetProgress (const URI &inUri, float &outProgress) const =0 |
| virtual bool16 | InProgress (const URI &inUri) const =0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
IHTTPAssetDownloadManager manages downloads for http link assets(see IHTTPLinkSubsystemObjectFactory.h for more details). It is called when specific asset is not found in cache from IHTTPLinkResourceServerCache. Include this interface on http asset link resource server helper boss which is registered as kHTTPAssetLinkResourceServerHelperBoss. For custom implementation derive from above specified boss and override this interface. Also custom implementations should aggregate this interface on the boss serving IID_IHTTPLINKRESOURCESERVERAPIWRAPPER.
| typedef boost::function<void ( const URI& inURI, HTTPLinkSubsystemTypes::HTTPAssetDownloadState inState, const IDFile& cachedFilePath)> IHTTPAssetDownloadManager::AssetDownloadCompletionCallback |
| typedef boost::function<void ( const URI& inURI, const IDFile& cachedFilePath, HTTPLinkSubsystemTypes::HTTPAssetDownloadState inState, const float inProgress)> IHTTPAssetDownloadManager::AssetDownloadProgressCallback |
| pure virtual |
Cancels all the downloads currently running
| pure virtual |
| pure virtual |
| pure virtual |
| pure virtual |
Initializes the download manager
| pure virtual |
| pure virtual |
Pauses all the downloads
| pure virtual |
| pure virtual |
Resumes all the downloads
| pure virtual |
| pure virtual |
Shuts down the download manager
| pure virtual |
Starts the download for the input URI
| inUri | [IN] Input URI whose download progress is to be started |
| inDownloadMode | [IN] Download mode(sync/async) for the given input URI |
| progressCallback | [IN] Download progress callback |
| completionCallback | [IN] Download completion callback |
| pure virtual |
Starts the download for the input URI with download path specified
| inUri | [IN] Input URI whose download progress is to be started |
| inDownloadMode | [IN] Download mode(sync/async) for the given input URI |
| downloadPath | [IN] Download path for the given input URI |
| progressCallback | [IN] Download progress callback |
| completionCallback | [IN] Download completion callback |