wavelength 1.0.0
Loading...
Searching...
No Matches
MCListNetConfigsTask Class Reference

Work that lists the network configurations: read the card information, then request the configurations from the network layer. More...

#include <mclistnetconfigstask.h>

Inheritance diagram for MCListNetConfigsTask:
Collaboration diagram for MCListNetConfigsTask:

Public Member Functions

 ~MCListNetConfigsTask () override=default
 Destroy the object.
 MCListNetConfigsTask ()
 Construct the steps.
void Set (int nPort)
 Prepare the work.
void OnCardInfo () override
 Fail the information step when the card read succeeded but the card is not formatted.
std::list< InetConfig > * GetConfigs ()
 Report the configurations found.
Public Member Functions inherited from MemcardSerialTask
 ~MemcardSerialTask () override=default
 Destroy the object.
int GetResult ()
 Report the outcome of the work.
virtual void OnDirListed ()
 Learn that a directory listing step ended.
virtual void OnFileLoaded ()
 Learn that a file load step ended.
Public Member Functions inherited from SerialTasks
 ~SerialTasks () override
 Release the list and every task in it.
void Add (Task *pTask)
 Append a task, which the list then manages.
Public Member Functions inherited from Task
 Task ()
 Construct an idle task.
virtual ~Task ()
 Release the task.
int Poll ()
 Report the state after giving a running task one poll.
void Start ()
 Enter the running state and call OnStart(), unless the task is already running.
void Stop ()
 Call OnStop() when the task is running, and return to the idle state.
void Finish (bool bSucceeded)
 End the task from outside its poll, and call OnStop() when it was running.
int GetState () const
 Report mState.

Additional Inherited Members

Public Types inherited from Task
enum  State { kStateIdle = 0 , kStateRunning = 1 , kStateDone = 2 , kStateFailed = 3 }
 Values of mState. More...
Protected Member Functions inherited from MemcardSerialTask
void OnStop () override
 Record MemcardTask::sStatus in mResult.
Protected Member Functions inherited from SerialTasks
void OnStart () override
 Start the first task, or finish with success when the list is empty.
void OnStop () override
 Stop the task that runs now.
void OnPoll () override
 Poll the task that runs now, start the next one after it is done, and finish after the last one or after a failure.
const std::vector< std::unique_ptr< Task > > & GetTasks () const

Detailed Description

Work that lists the network configurations: read the card information, then request the configurations from the network layer.

The RTTI records the class as deriving from MemcardSerialTask. The object is 0x28 bytes. An unformatted card fails with MemcardTask::kStatusUnformatted.

Constructor & Destructor Documentation

◆ ~MCListNetConfigsTask()

MCListNetConfigsTask::~MCListNetConfigsTask ( )
overridedefault

Destroy the object.

Ghidra address:
NTSC-U/C: 0x00353bb0
Ghidra address:
PAL: 0x003c0eb8

◆ MCListNetConfigsTask()

MCListNetConfigsTask::MCListNetConfigsTask ( )

Construct the steps.

Ghidra address:
NTSC-U/C: 0x00162588
Ghidra address:
PAL: 0x001652a8

Member Function Documentation

◆ Set()

void MCListNetConfigsTask::Set ( int nPort)

Prepare the work.

Parameters
nPortThe memory card slot.
Ghidra address:
NTSC-U/C: 0x00162630
Ghidra address:
PAL: 0x00165350

◆ OnCardInfo()

void MCListNetConfigsTask::OnCardInfo ( )
overridevirtual

Fail the information step when the card read succeeded but the card is not formatted.

Ghidra address:
NTSC-U/C: 0x00162688
Ghidra address:
PAL: 0x001653a8

Reimplemented from MemcardSerialTask.

◆ GetConfigs()

std::list< InetConfig > * MCListNetConfigsTask::GetConfigs ( )

Report the configurations found.

Returns
The configurations.
Ghidra address:
NTSC-U/C: 0x001626c8
Ghidra address:
PAL: 0x001653e8

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