You.i Engine
YiRemoteAssetDownloadHelper.h
Go to the documentation of this file.
1 // © You i Labs Inc. 2000-2017. All rights reserved.
2 #ifndef _YI_REMOTE_ASSET_DOWNLOAD_HELPER_H_
3 #define _YI_REMOTE_ASSET_DOWNLOAD_HELPER_H_
4 
6 
7 class CYIHTTPRequest;
8 class CYIHTTPResponse;
9 
24 {
25 public:
31 
36 
38 
42  void ClearData();
43 
47  const std::vector<uint8_t> &GetData() const;
48 
49 protected:
53  virtual void OnRequestCompleted(const std::shared_ptr<CYIHTTPRequest> &pRequest, const std::shared_ptr<CYIHTTPResponse> &pResponse, bool bCachedResponse) override;
54 
60  virtual void CancelDownloadImplementation() override;
61 
62 private:
63  std::vector<uint8_t> m_data;
65 };
66 
71 #endif
A download helper class used for downloading assets off of web servers.
Definition: YiRemoteAssetDownloadHelper.h:23
#define YI_DISALLOW_COPY_AND_ASSIGN(TypeName)
Delete the copy constructor and assignment operator (and consequently the move constructor as well) ...
Definition: YiPredef.h:114
Contains information required to configure and perform a HTTP request.
Definition: YiHTTPRequest.h:34
An HTTP response class which includes the header and body portions of the response.
Definition: YiHTTPResponse.h:24
Definition: YiAbstractDownloadHelper.h:23
A class used to encapsulate an URL.
Definition: YiUrl.h:24
virtual void CancelDownloadImplementation() override
virtual void OnRequestCompleted(const std::shared_ptr< CYIHTTPRequest > &pRequest, const std::shared_ptr< CYIHTTPResponse > &pResponse, bool bCachedResponse) override
const std::vector< uint8_t > & GetData() const