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
6
#include "
QGCArchiveDeviceBase.h
"
7
8
#include <QtCore/QLoggingCategory>
9
10
Q_DECLARE_LOGGING_CATEGORY
(QGCDecompressDeviceLog)
11
12
23
class
QGCDecompressDevice
: public
QGCArchiveDeviceBase
24
{
25
Q_OBJECT
26
27
public
:
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
44
protected
:
45
bool
initArchive()
override
;
46
bool
prepareForReading()
override
;
47
bool
isReadyToRead
()
const override
{
return
_headerRead; }
48
void
resetState()
override
;
49
50
private
:
51
bool
_headerRead =
false
;
52
};
Q_DECLARE_LOGGING_CATEGORY
Q_DECLARE_LOGGING_CATEGORY(AndroidSerialLog)
QGCArchiveDeviceBase.h
Base class for QIODevice wrappers using libarchive.
QGCArchiveDeviceBase
Definition
QGCArchiveDeviceBase.h:18
QGCDecompressDevice
Definition
QGCDecompressDevice.h:24
QGCDecompressDevice::isReadyToRead
bool isReadyToRead() const override
Definition
QGCDecompressDevice.h:47
QGCDecompressDevice::~QGCDecompressDevice
~QGCDecompressDevice() override=default
src
Utilities
Compression
QGCDecompressDevice.h
Generated by
1.9.8