wavelength 1.0.0
Loading...
Searching...
No Matches
mcgetinfotask.h
Go to the documentation of this file.
1#pragma once
2
5
11class MCGetInfoTask : public MemcardTask {
12public:
19 ~MCGetInfoTask() override = default;
20
30 void Set(MemcardSerialTask *pOwner, int nPort, int nAcceptNewCard);
31
41 void OnGetInfo(int nResult) override;
42
44 int GetFree() const {
45 return mFree;
46 }
47
49 int GetType() const {
50 return mType;
51 }
52
54 int GetFormat() const {
55 return mFormat;
56 }
57
58private:
59 int mFree;
60 int mType;
61 int mFormat;
62 int mAcceptNewCard;
63 MemcardSerialTask *mOwner;
64
65protected:
72 void OnStart() override;
73};
Task that reads the type, the free space, and the format of a card.
Definition mcgetinfotask.h:11
int GetFree() const
Definition mcgetinfotask.h:44
int GetType() const
Definition mcgetinfotask.h:49
~MCGetInfoTask() override=default
Destroy the object.
int GetFormat() const
Definition mcgetinfotask.h:54
void Set(MemcardSerialTask *pOwner, int nPort, int nAcceptNewCard)
Prepare the task.
void OnGetInfo(int nResult) override
Record the outcome, finish, and tell mOwner.
void OnStart() override
Issue the command.
Memory card work made of MemcardTask steps that run one after another.
Definition memcardserialtask.h:13
MemcardTask()
Construct an idle task for the first slot.
Definition memcardtask.h:41