![]() |
DDNet documentation
|
#include <updater.h>
Public Member Functions | |
| CUpdater () | |
| EUpdaterState | GetCurrentState () override REQUIRES(!m_Lock) |
| void | GetCurrentFile (char *pBuf, int BufSize) override REQUIRES(!m_Lock) |
| int | GetCurrentPercent () override REQUIRES(!m_Lock) |
| void | InitiateUpdate () REQUIRES(!m_Lock) override |
| void | Init () |
| void | Update () REQUIRES(!m_Lock) override |
| Public Member Functions inherited from IInterface | |
| IInterface () | |
| virtual void | Shutdown () |
| virtual | ~IInterface ()=default |
Private Member Functions | |
| EUpdaterState m_State | GUARDED_BY (m_Lock) |
| char m_aStatus[256] | GUARDED_BY (m_Lock) |
| int m_Percent | GUARDED_BY (m_Lock) |
| void | AddFileJob (const char *pFile, bool Job) |
| void | FetchFile (const char *pFile, const char *pDestPath=nullptr) REQUIRES(!m_Lock) |
| bool | MoveFile (const char *pFile) |
| void | ParseUpdate () REQUIRES(!m_Lock) |
| void | PerformUpdate () REQUIRES(!m_Lock) |
| void | RunningUpdate () REQUIRES(!m_Lock) |
| void | CommitUpdate () REQUIRES(!m_Lock) |
| bool | ReplaceClient () |
| bool | ReplaceServer () |
| void | SetCurrentState (EUpdaterState NewState) REQUIRES(!m_Lock) |
Private Attributes | |
| class IClient * | m_pClient |
| class IStorage * | m_pStorage |
| class IEngine * | m_pEngine |
| class IHttp * | m_pHttp |
| CLock | m_Lock |
| char | m_aClientExecTmp [64] |
| char | m_aServerExecTmp [64] |
| std::forward_list< std::pair< std::string, bool > > | m_FileJobs |
| std::shared_ptr< CUpdaterFetchTask > | m_pCurrentTask |
| decltype(m_FileJobs) ::iterator | m_CurrentJob |
| bool | m_ClientUpdate |
| bool | m_ServerUpdate |
| bool | m_ClientFetched |
| bool | m_ServerFetched |
Friends | |
| class | CUpdaterFetchTask |
Additional Inherited Members | |
| Public Types inherited from IUpdater | |
| enum | EUpdaterState { CLEAN , GETTING_MANIFEST , GOT_MANIFEST , PARSING_UPDATE , DOWNLOADING , MOVE_FILES , NEED_RESTART , FAIL } |
| Static Public Member Functions inherited from IUpdater | |
| static const char * | InterfaceName () |
| Protected Member Functions inherited from IInterface | |
| IKernel * | Kernel () |
| CUpdater::CUpdater | ( | ) |
|
private |
|
private |
|
private |
|
overridevirtual |
Implements IUpdater.
|
overridevirtual |
Implements IUpdater.
|
overridevirtual |
Implements IUpdater.
|
private |
|
private |
|
private |
| void CUpdater::Init | ( | ) |
|
overridevirtual |
Implements IUpdater.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
overridevirtual |
Implements IUpdater.
|
friend |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |