|
resonance 1.0.1
|
Enquire about every slot a multi-tap makes available and collect the answers. More...
#include <getallconnectstatesmct.h>


Public Member Functions | |
| GetAllConnectStatesMCT (MemcardUser *pUser, Memcard *pCard, int nCookie, std::vector< MemcardConnectState > *pStates) | |
| Construct an idle enquiry. | |
| virtual | ~GetAllConnectStatesMCT () |
| Release the task. | |
| virtual void | OnCheckInfo (CheckInfoOp *pOp) |
| Append one slot's state to mStates and finish once every enquiry has reported. | |
| virtual void | Finish () |
| virtual void | Execute () |
| Queue one enquiry per available slot. | |
| Public Member Functions inherited from MemcardTask | |
| MemcardTask (MemcardUser *pUser, Memcard *pCard, int nPortSlot, int nCookie) | |
| Construct an idle task against one card slot. | |
| MemcardTask (MemcardUser *pUser, Memcard *pCard, int nCookie) | |
| Construct an idle task that does not address a single card slot. | |
| virtual void | UnusedHook () |
| Do nothing. | |
| Public Member Functions inherited from MemcardCBHandler | |
| virtual | ~MemcardCBHandler () |
| Release the receiver. | |
| virtual void | OnEntSpace (EntSpaceOp *pOp) |
| Report a finished free-entry enquiry. | |
| virtual void | OnFormat (FormatOp *pOp) |
| Report a finished format. | |
| virtual void | OnUnformat (UnformatOp *pOp) |
| Report a finished unformat. | |
| virtual void | OnCreateDir (CreateDirOp *pOp) |
| Report a finished directory creation. | |
| virtual void | OnListDir (ListDirOp *pOp) |
| Report a finished directory listing. | |
| virtual void | OnRead (ReadOp *pOp) |
| Report a finished read. | |
| virtual void | OnWrite (WriteOp *pOp) |
| Report a finished write. | |
| virtual void | OnOpenWrite (OpenWriteOp *pOp) |
| Report a finished open for writing. | |
| virtual void | OnOpenRead (OpenReadOp *pOp) |
| Report a finished open for reading. | |
| virtual void | OnClose (CloseOp *pOp) |
| Report a finished close. | |
| virtual void | OnSeek (SeekOp *pOp) |
| Report a finished seek. | |
| virtual void | OnDeleteFile (DeleteFileOp *pOp) |
| Report a finished file deletion. | |
| virtual void | OnRenameFile (RenameFileOp *pOp) |
| Report a finished rename. | |
Additional Inherited Members | |
| Protected Member Functions inherited from MemcardTask | |
| void | HandleError () |
| Abandon the task when the last operation reported a failure. | |
| Protected Attributes inherited from MemcardTask | |
| MemcardUser * | mUser |
| Memcard * | mCard |
| int | mCookie |
| int | mPortSlot |
| int | mState |
| int | mStatus |
Enquire about every slot a multi-tap makes available and collect the answers.
Its RTTI descriptor is at 0x008ef6b0. It has single inheritance from MemcardTask at offset 0. An instance is 0x48 bytes and the vtable is at 0x007dacf8.
Execute() queues one CheckInfo per slot, decides how many from sceMtapGetConnection(), and records the expected count. Each report appends one MemcardConnectState to the vector the task was given and increments the completed count, and the last of them finishes the task. The MemcardTask::mPortSlot the task was constructed with is not used, because the slots come from the tables instead.
Two faithful oddities. A multi-tap on port 1 yields four enquiries, and the same tap on port 2 yields none at all rather than four, which leaves the last four entries of both slot tables unreferenced by any code path. And the vector is borrowed rather than owned, which the destructor confirms by releasing nothing.
| GetAllConnectStatesMCT::GetAllConnectStatesMCT | ( | MemcardUser * | pUser, |
| Memcard * | pCard, | ||
| int | nCookie, | ||
| std::vector< MemcardConnectState > * | pStates ) |
Construct an idle enquiry.
The constructor is inlined into MemcardManager::CreateGetAllConnectStatesTask() at 0x001f2c70, its one site, and no address of its own survives. The site writes no port slot and clears mExpected and mCompleted.
| pUser | The receiver Finish() reports to. |
| pCard | The queue the task submits operations to. |
| nCookie | The tag that abandons exactly this task's operations. |
| pStates | Where the answers are appended. Borrowed, not owned. |
|
virtual |
Release the task.
The body releases nothing, which is what establishes that mStates is borrowed.
|
virtual |
Append one slot's state to mStates and finish once every enquiry has reported.
kMemcardStatusUnknown skips the append but still counts toward the total, so a missing card does not stall the task.
Reimplemented from MemcardCBHandler.
|
virtual |
|
virtual |
Queue one enquiry per available slot.
Implements MemcardTask.