resonance 1.0.1
Loading...
Searching...
No Matches
openreadop.h
Go to the documentation of this file.
1#pragma once
2
3#include "memcard/memcardop.h"
4#include "os/hxstr.h"
5
15class OpenReadOp : public MemcardOp {
16public:
27 OpenReadOp(MemcardCBHandler *pHandler, int nPortSlot, const HxStr &path, int nCookie);
28
33 virtual ~OpenReadOp();
34
39 virtual void Execute();
40
45 virtual void NotifyDone();
46
57 virtual void InterpretResult();
58
61
63 int mFile;
64};
Heap-allocated NUL-terminated string.
Definition hxstr.h:41
Receiver notified once a queued memory-card operation has finished.
Definition memcardcbhandler.h:34
MemcardOp(MemcardCBHandler *pHandler, int nPortSlot, int nCookie)
Construct an operation against one card slot, with no libmc call issued yet.
virtual void NotifyDone()
virtual void Execute()
int mFile
The descriptor, valid once mStatus is kMemcardStatusOk.
Definition openreadop.h:63
OpenReadOp(MemcardCBHandler *pHandler, int nPortSlot, const HxStr &path, int nCookie)
Construct an open for reading.
virtual ~OpenReadOp()
virtual void InterpretResult()
Record the descriptor, or map the failure.
HxStr mPath
The file to open.
Definition openreadop.h:60