DDraceNetwork Docs
CUpdaterFetchTask Class Reference
Inheritance diagram for CUpdaterFetchTask:
[legend]
Collaboration diagram for CUpdaterFetchTask:
[legend]

Public Member Functions

 CUpdaterFetchTask (CUpdater *pUpdater, const char *pFile, const char *pDestPath)
 
- Public Member Functions inherited from CHttpRequest
 CHttpRequest (const char *pUrl)
 
virtual ~CHttpRequest ()
 
void Timeout (CTimeout Timeout)
 
void MaxResponseSize (int64_t MaxResponseSize)
 
void IfModifiedSince (int64_t IfModifiedSince)
 
void LogProgress (HTTPLOG LogProgress)
 
void IpResolve (IPRESOLVE IpResolve)
 
void FailOnErrorStatus (bool FailOnErrorStatus)
 
void WriteToFile (IStorage *pStorage, const char *pDest, int StorageType)
 
void ExpectSha256 (const SHA256_DIGEST &Sha256)
 
void Head ()
 
void Post (const unsigned char *pData, size_t DataLength)
 
void PostJson (const char *pJson)
 
void Header (const char *pNameColonValue)
 
void HeaderString (const char *pName, const char *pValue)
 
void HeaderInt (const char *pName, int Value)
 
const char * Dest ()
 
double Current () const
 
double Size () const
 
int Progress () const
 
EHttpState State () const
 
bool Done () const
 
void Abort ()
 
void Wait ()
 
void Result (unsigned char **ppResult, size_t *pResultLength) const
 
json_valueResultJson () const
 
const SHA256_DIGESTResultSha256 () const
 
int StatusCode () const
 
std::optional< int64_t > ResultAgeSeconds () const
 
std::optional< int64_t > ResultLastModified () const
 

Protected Member Functions

void OnCompletion (EHttpState State) override
 
virtual void OnProgress ()
 
virtual void OnCompletion (EHttpState State)
 

Private Member Functions

void OnProgress () override
 

Private Attributes

char m_aBuf [256]
 
char m_aBuf2 [256]
 
CUpdaterm_pUpdater
 

Constructor & Destructor Documentation

◆ CUpdaterFetchTask()

CUpdaterFetchTask::CUpdaterFetchTask ( CUpdater pUpdater,
const char *  pFile,
const char *  pDestPath 
)

Member Function Documentation

◆ OnCompletion()

void CUpdaterFetchTask::OnCompletion ( EHttpState  State)
overrideprotectedvirtual

Reimplemented from CHttpRequest.

◆ OnProgress()

void CUpdaterFetchTask::OnProgress ( )
overrideprivatevirtual

Reimplemented from CHttpRequest.

Member Data Documentation

◆ m_aBuf

char CUpdaterFetchTask::m_aBuf[256]
private

◆ m_aBuf2

char CUpdaterFetchTask::m_aBuf2[256]
private

◆ m_pUpdater

CUpdater* CUpdaterFetchTask::m_pUpdater
private

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