|
wavelength 1.0.0
|
Work that loads a saved remix: read the card information, find the remix file, and read the remix. More...
#include <mcloadremixtask.h>


Public Member Functions | |
| ~MCLoadRemixTask () override=default | |
| Destroy the object. | |
| MCLoadRemixTask () | |
| Construct the steps. | |
| void | Set (int nPort, const char *pszName, void *pBuffer, int nSize) |
| Prepare the work. | |
| 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 | OnCardInfo () |
| Learn that a card information 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 |
Work that loads a saved remix: read the card information, find the remix file, and read the remix.
The RTTI records the class as deriving from MemcardSerialTask. The object is 0x2c bytes.
|
overridedefault |
Destroy the object.
| MCLoadRemixTask::MCLoadRemixTask | ( | ) |
Construct the steps.
| void MCLoadRemixTask::Set | ( | int | nPort, |
| const char * | pszName, | ||
| void * | pBuffer, | ||
| int | nSize ) |
Prepare the work.
| nPort | The memory card slot. |
| pszName | The name of the remix file, without its extension. |
| pBuffer | Receives the remix. The caller retains it. |
| nSize | The number of bytes to read. |