wavelength 1.0.0
Loading...
Searching...
No Matches
memcardserialtask.h
Go to the documentation of this file.
1#pragma once
2
3#include "os/serialtasks.h"
4
14public:
21 ~MemcardSerialTask() override = default;
22
30 int GetResult();
31
38 virtual void OnDirListed() {
39 }
40
47 virtual void OnCardInfo() {
48 }
49
56 virtual void OnFileLoaded() {
57 }
58
59#ifdef VIDEO_STANDARD_PAL
66 virtual void OnDirChecked([[maybe_unused]] int bWhole) {
67 }
68#endif
69
70private:
71 int mResult;
72
73protected:
80 void OnStop() override;
81};
Memory card work made of MemcardTask steps that run one after another.
Definition memcardserialtask.h:13
virtual void OnCardInfo()
Learn that a card information step ended.
Definition memcardserialtask.h:47
~MemcardSerialTask() override=default
Destroy the object.
virtual void OnFileLoaded()
Learn that a file load step ended.
Definition memcardserialtask.h:56
void OnStop() override
Record MemcardTask::sStatus in mResult.
virtual void OnDirListed()
Learn that a directory listing step ended.
Definition memcardserialtask.h:38
int GetResult()
Report the outcome of the work.
Task that runs a list of tasks one after another.
Definition serialtasks.h:14