QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
QGCDecompressDevice.h
Go to the documentation of this file.
1#pragma once
2
5
7
22{
23 Q_OBJECT
24
25public:
30 explicit QGCDecompressDevice(QIODevice *source, QObject *parent = nullptr);
31
35 explicit QGCDecompressDevice(const QString &filePath, QObject *parent = nullptr);
36
37 ~QGCDecompressDevice() override = default;
38
39 // QIODevice interface
40 bool open(OpenMode mode) override;
41
42protected:
43 bool initArchive() override;
44 bool prepareForReading() override;
45 bool isReadyToRead() const override { return _headerRead; }
46 void resetState() override;
47
48private:
49 bool _headerRead = false;
50};
Base class for QIODevice wrappers using libarchive.
Base class for QIODevice wrappers that use libarchive for decompression.
QIODevice wrapper for streaming decompression of single-file formats.
bool prepareForReading() override
bool isReadyToRead() const override
~QGCDecompressDevice() override=default
bool initArchive() override
void resetState() override
Reset all state (called by close())
bool open(OpenMode mode) override