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

Public Member Functions

 CSkinDownloadJob (CSkins *pSkins, const char *pName)
 
 ~CSkinDownloadJob ()
 
bool Abort () override REQUIRES(!m_Lock)
 
CImageInfoImageInfo ()
 
- Public Member Functions inherited from IJob
 IJob ()
 
virtual ~IJob ()
 
 IJob (const IJob &Other)=delete
 
IJoboperator= (const IJob &Other)=delete
 
EJobState State () const
 
bool Done () const
 
virtual bool Abort ()
 
bool IsAbortable () const
 

Protected Member Functions

void Run () override REQUIRES(!m_Lock)
 
- Protected Member Functions inherited from IJob
virtual void Run ()=0
 
void Abortable (bool Abortable)
 

Private Attributes

CSkinsm_pSkins
 
char m_aName [MAX_SKIN_LENGTH]
 
CLock m_Lock
 
std::shared_ptr< CHttpRequestm_pGetRequest
 
CImageInfo m_ImageInfo
 

Additional Inherited Members

- Public Types inherited from IJob
enum  EJobState { STATE_QUEUED = 0 , STATE_RUNNING , STATE_DONE , STATE_ABORTED }
 

Constructor & Destructor Documentation

◆ CSkinDownloadJob()

CSkins::CSkinDownloadJob::CSkinDownloadJob ( CSkins pSkins,
const char *  pName 
)

◆ ~CSkinDownloadJob()

CSkins::CSkinDownloadJob::~CSkinDownloadJob ( )

Member Function Documentation

◆ Abort()

bool CSkins::CSkinDownloadJob::Abort ( )
overridevirtual

Aborts the job, if it can be aborted.

Returns
true if abort was accepted, false otherwise.
Remarks
May be overridden to delegate abort to other jobs. Note that this function may be called from any thread and should be thread-safe.

Reimplemented from IJob.

◆ ImageInfo()

CImageInfo & CSkins::CSkinDownloadJob::ImageInfo ( )
inline

◆ Run()

void CSkins::CSkinDownloadJob::Run ( )
overrideprotectedvirtual

Performs tasks in a worker thread.

Implements IJob.

Member Data Documentation

◆ m_aName

char CSkins::CSkinDownloadJob::m_aName[MAX_SKIN_LENGTH]
private

◆ m_ImageInfo

CImageInfo CSkins::CSkinDownloadJob::m_ImageInfo
private

◆ m_Lock

CLock CSkins::CSkinDownloadJob::m_Lock
private

◆ m_pGetRequest

std::shared_ptr<CHttpRequest> CSkins::CSkinDownloadJob::m_pGetRequest
private

◆ m_pSkins

CSkins* CSkins::CSkinDownloadJob::m_pSkins
private

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