A step of a request to the online library, run by a NetMultiTask.
More...
#include <nettask.h>
|
| 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.
|
| static NetTask * | FindTag (const char *pszTag) |
| | Find the task of a tag.
|
|
| void | OnStop () override |
| | Remove the tag of the task.
|
| virtual void | OnStart () |
| | Begin the work.
|
| virtual void | OnPoll () |
| | Advance the work, and set mState to kStateDone when it finishes.
|
A step of a request to the online library, run by a NetMultiTask.
The RTTI includes the name and records Task as the base. A task that waits for a callback of the library passes the callback a tag from MakeTag(), and the callback finds the task again with FindTag().
◆ NetTask()
Construct a task outside any NetMultiTask.
The constructor has no out-of-line copy.
◆ Finish()
| void NetTask::Finish |
( |
bool | bSucceeded, |
|
|
int | nResult ) |
End the task, and record a failure in the result of the NetMultiTask that runs it.
- Parameters
-
| bSucceeded | Whether the step succeeded. |
| nResult | The result the NetMultiTask records after a failure. |
- Ghidra address:
- NTSC-U/C: 0x0026a450
- Ghidra address:
- PAL: 0x00273fe0
◆ MakeTag()
| void NetTask::MakeTag |
( |
NetTask * | pTask, |
|
|
char * | pszTag ) |
|
static |
Create the next tag of a task and copy its text.
- Parameters
-
| pTask | The task. |
| pszTag | Receives the text of the tag. |
- Ghidra address:
- NTSC-U/C: 0x0026a270
- Ghidra address:
- PAL: 0x00273e00
◆ RemoveTag()
| void NetTask::RemoveTag |
( |
NetTask * | pTask | ) |
|
|
static |
Remove the first tag of a task.
- Parameters
-
- Ghidra address:
- NTSC-U/C: 0x0026a398
- Ghidra address:
- PAL: 0x00273f28
◆ FindTag()
| NetTask * NetTask::FindTag |
( |
const char * | pszTag | ) |
|
|
static |
Find the task of a tag.
- Parameters
-
| pszTag | The text of the tag. |
- Returns
- The task, or null when the tag was removed.
- Ghidra address:
- NTSC-U/C: 0x0026a480
- Ghidra address:
- PAL: 0x00274010
◆ GetParent()
◆ SetParent()
◆ OnStop()
Remove the tag of the task.
- Ghidra address:
- NTSC-U/C: 0x0026a430
- Ghidra address:
- PAL: 0x00273fc0
Reimplemented from Task.
◆ sTags
◆ sNextTag
The number the next tag takes.
- Ghidra address:
- NTSC-U/C: 0x003b0bd4
- Ghidra address:
- PAL: 0x0042faa4
The documentation for this class was generated from the following file: