all repos — mgba @ 2ff580925222a8cc8012b641a0d4193986664257

mGBA Game Boy Advance Emulator

src/platform/qt/VFileDevice.h (view raw)

 1#ifndef QGBA_VFILE_DEVICE
 2#define QGBA_VFILE_DEVICE
 3
 4#include <QFileDevice>
 5
 6struct VFile;
 7
 8namespace QGBA {
 9
10class VFileDevice : public QIODevice {
11Q_OBJECT
12
13public:
14	VFileDevice(VFile* vf, QObject* parent = nullptr);
15
16protected:
17	virtual qint64 readData(char* data, qint64 maxSize) override;
18	virtual qint64 writeData(const char* data, qint64 maxSize) override;
19	virtual qint64 size() const override;
20
21private:
22	mutable VFile* m_vf;
23};
24
25}
26
27#endif