35 void Finish(
bool bSucceeded,
int nResult);
85 static std::list<NetTaskTag>
sTags;
A request to the online library, as the NetTask steps that run one after another.
Definition netmultitask.h:14
void Finish(bool bSucceeded, int nResult)
End the task, and record a failure in the result of the NetMultiTask that runs it.
NetMultiTask * GetParent() const
Definition nettask.h:67
static int sNextTag
The number the next tag takes.
Definition nettask.h:93
static NetTask * FindTag(const char *pszTag)
Find the task of a tag.
static std::list< NetTaskTag > sTags
The tags MakeTag() created and RemoveTag() has not removed.
Definition nettask.h:85
void OnStop() override
Remove the tag of the task.
static void MakeTag(NetTask *pTask, char *pszTag)
Create the next tag of a task and copy its text.
static void RemoveTag(NetTask *pTask)
Remove the first tag of a task.
void SetParent(NetMultiTask *pParent)
Set the NetMultiTask that runs the task.
Definition nettask.h:76
NetTask()
Construct a task outside any NetMultiTask.
Definition nettask.h:24
Task()
Construct an idle task.
Definition task.h:24