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
8#include <QtCore/QLoggingCategory>
9
10Q_DECLARE_LOGGING_CATEGORY(QGCDecompressDeviceLog)
11
12
24{
25 Q_OBJECT
26
27public:
32 explicit QGCDecompressDevice(QIODevice *source, QObject *parent = nullptr);
33
37 explicit QGCDecompressDevice(const QString &filePath, QObject *parent = nullptr);
38
39 ~QGCDecompressDevice() override = default;
40
41 // QIODevice interface
42 bool open(OpenMode mode) override;
43
44protected:
45 bool initArchive() override;
46 bool prepareForReading() override;
47 bool isReadyToRead() const override { return _headerRead; }
48 void resetState() override;
49
50private:
51 bool _headerRead = false;
52};
Q_DECLARE_LOGGING_CATEGORY(AndroidSerialLog)
Base class for QIODevice wrappers using libarchive.
bool isReadyToRead() const override
~QGCDecompressDevice() override=default