DDraceNetwork Documentation
Loading...
Searching...
No Matches
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)
bool Abort () override REQUIRES(!m_Lock)
Public Member Functions inherited from CSkins::CAbstractSkinLoadJob
 CAbstractSkinLoadJob (CSkins *pSkins, const char *pName)
 ~CAbstractSkinLoadJob () override
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
bool IsAbortable () const

Protected Member Functions

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

Private Member Functions

std::shared_ptr< CHttpRequest > m_pGetRequest GUARDED_BY (m_Lock)

Private Attributes

CLock m_Lock

Additional Inherited Members

Public Types inherited from IJob
enum  EJobState { STATE_QUEUED = 0 , STATE_RUNNING , STATE_DONE , STATE_ABORTED }
Public Attributes inherited from CSkins::CAbstractSkinLoadJob
CSkinLoadData m_Data
bool m_NotFound = false
Protected Attributes inherited from CSkins::CAbstractSkinLoadJob
CSkinsm_pSkins
char m_aName [MAX_SKIN_LENGTH]

Constructor & Destructor Documentation

◆ CSkinDownloadJob()

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

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.

◆ GUARDED_BY()

std::shared_ptr< CHttpRequest > m_pGetRequest CSkins::CSkinDownloadJob::GUARDED_BY ( m_Lock )
private

◆ Run()

void CSkins::CSkinDownloadJob::Run ( )
overrideprotectedvirtual

Performs tasks in a worker thread.

Implements IJob.

Member Data Documentation

◆ m_Lock

CLock CSkins::CSkinDownloadJob::m_Lock
private

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