wavelength 1.0.0
Loading...
Searching...
No Matches
mccheckremixspaceneededtask.h
Go to the documentation of this file.
1#pragma once
2
3#include <vector>
4
5#ifdef VIDEO_STANDARD_PAL
7#endif
12#include "os/string.h"
13
27public:
34 ~MCCheckRemixSpaceNeededTask() override = default;
35
43
55 void Set(SaveSpaceUser *pUser, int nPort, const char *pszName, int nFileSize, int nOverwrite);
56
64 void OnDirListed() override;
65
66#ifdef VIDEO_STANDARD_PAL
73 void OnDirChecked(int bWhole) override;
74#endif
75
76protected:
83 void OnStop() override;
84
85private:
86#ifdef VIDEO_STANDARD_PAL
95 void Evaluate();
96#endif
97
98 // The steps belong to the SerialTasks list.
99 MCGetInfoTask *mGetInfo;
100#ifdef VIDEO_STANDARD_PAL
102 std::vector<MCCheckDirExistsTask *> mCheckDirs;
103#endif
104 std::vector<MCGetDirTask *> mGetDirs;
105#ifdef VIDEO_STANDARD_PAL
107 std::vector<int> mDirRemixCounts;
108#endif
109 SaveSpaceUser *mUser;
110 String mFileName;
111 int mFileSize;
112 int mNeeded;
113#ifndef VIDEO_STANDARD_PAL
114 unsigned char mRemixCount;
115#endif
116 unsigned char mDirIndex;
117 int mFound;
118 int mFoundSize;
119 int mOverwrite;
120};
void OnDirListed() override
Search one listed directory for the file, and measure the space once every directory is listed.
~MCCheckRemixSpaceNeededTask() override=default
Destroy the object.
MCCheckRemixSpaceNeededTask()
Construct the steps, one listing for each remix directory.
void Set(SaveSpaceUser *pUser, int nPort, const char *pszName, int nFileSize, int nOverwrite)
Prepare the work, and clear g_MemcardPath.
void OnStop() override
End with the outcome, and report it to mUser.
Task that reads the type, the free space, and the format of a card.
Definition mcgetinfotask.h:11
Memory card work made of MemcardTask steps that run one after another.
Definition memcardserialtask.h:13
Receiver of the space a save needs, from the tasks that measure the space.
Definition savespaceuser.h:9
Growable text buffer that is also a PrnStream.
Definition string.h:19