wavelength 1.0.0
Loading...
Searching...
No Matches
mcinitialchecktask.h
Go to the documentation of this file.
1#pragma once
2
6
8constexpr int kInitialCheckListingCount = 2;
9
19public:
26 ~MCInitialCheckTask() override = default;
27
35
43 void Set(int nPort);
44
52 void OnDirListed() override;
53
56 return mGetInfo;
57 }
58
60 int GetNeeded() const {
61 return mNeeded;
62 }
63
64private:
65 MCGetInfoTask *mGetInfo;
66 // The step above belongs to the SerialTasks list.
68 int mNeeded;
69 unsigned char mListing;
70};
Task that lists the entries matching a name into MemcardTask::sDirEntries and MemcardTask::sDirCount.
Definition mcgetdirtask.h:15
Task that reads the type, the free space, and the format of a card.
Definition mcgetinfotask.h:11
MCGetInfoTask * GetGetInfo() const
Definition mcinitialchecktask.h:55
~MCInitialCheckTask() override=default
Destroy the object.
void Set(int nPort)
Prepare the work, and make g_MemcardPath the Freq directory.
int GetNeeded() const
Definition mcinitialchecktask.h:60
void OnDirListed() override
Add the space a missing directory or a missing Freq needs, and compare the total with the free space ...
MCInitialCheckTask()
Construct the steps.
Memory card work made of MemcardTask steps that run one after another.
Definition memcardserialtask.h:13
constexpr int kInitialCheckListingCount
The listings MCInitialCheckTask makes: the Freq directory, then its Freq files.
Definition mcinitialchecktask.h:8