Step that lists the files of the server whose names begin with a prefix.
More...
#include <filelisttask.h>
|
| static void | OnResponse (int nConnection, int nType, int nSize, const rtMediusFileResponse *pResponse) |
| | Add a file whose name begins with the prefix, and finish the step the response is tagged with after the last file.
|
| 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 | OnStart () override |
| | Clear the names and send the request.
|
| void | OnStop () override |
| | Remove the tag of the task.
|
| virtual void | OnPoll () |
| | Advance the work, and set mState to kStateDone when it finishes.
|
Step that lists the files of the server whose names begin with a prefix.
The RTTI includes the name and records NetTask as the base. The vtable is at 0x003d5068 and the object is 0x14 bytes. The server sends one file per response. The step fails with RepoRemixStatusMsg::kStatusFailed when the request cannot be sent. The European release requests the files by pages of 50, and its object is 0x20 bytes.
◆ ~FileListTask()
| FileListTask::~FileListTask |
( |
| ) |
|
|
overridedefault |
Destroy the object.
- Ghidra address:
- NTSC-U/C: 0x0039c9e0
- Ghidra address:
- PAL: 0x0040b690
◆ FileListTask()
| FileListTask::FileListTask |
( |
String * | pPrefix, |
|
|
std::list< String > * | pFiles ) |
|
inline |
Construct a step.
Inline.
- Parameters
-
| pPrefix | The prefix. |
| pFiles | Receives the names of the files. |
◆ OnResponse()
| void FileListTask::OnResponse |
( |
int | nConnection, |
|
|
int | nType, |
|
|
int | nSize, |
|
|
const rtMediusFileResponse * | pResponse ) |
|
static |
Add a file whose name begins with the prefix, and finish the step the response is tagged with after the last file.
The name is inferred.
- Parameters
-
| nConnection | The connection. |
| nType | The kind of response. |
| nSize | The size of the response. |
| pResponse | The response. |
- Ghidra address:
- NTSC-U/C: 0x002670d8
- Ghidra address:
- PAL: 0x00270ca0
◆ OnStart()
| void FileListTask::OnStart |
( |
| ) |
|
|
overrideprotectedvirtual |
Clear the names and send the request.
- Ghidra address:
- NTSC-U/C: 0x00267018
- Ghidra address:
- PAL: 0x00270b40
Reimplemented from Task.
◆ mPrefix
◆ mFiles
| std::list<String>* FileListTask::mFiles |
|
protected |
Receives the names of the files.
◆ mPage
The page RequestPage() requests, from 0.
◆ mReceived
| int FileListTask::mReceived |
|
protected |
The files of the page received so far.
◆ mPageDone
| int FileListTask::mPageDone |
|
protected |
Non-zero once the last file of the page arrives.
The documentation for this class was generated from the following file: