QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
19 #include "qgis_core.h"
21 #include <QStringList>
38 CORE_EXPORT
bool isZipFile(
const QString &filename );
49 CORE_EXPORT
bool unzip(
const QString &
zip,
const QString &dir, QStringList &files
SIP_OUT );
59 CORE_EXPORT
bool zip(
const QString &
zip,
const QStringList &files );
68 CORE_EXPORT
bool decodeGzip(
const QByteArray &bytesIn, QByteArray &bytesOut )
SIP_SKIP;
76 CORE_EXPORT
bool decodeGzip(
const char *bytesIn, std::size_t size, QByteArray &bytesOut )
SIP_SKIP;
84 CORE_EXPORT
bool encodeGzip(
const QByteArray &bytesIn, QByteArray &bytesOut )
SIP_SKIP;
88 #endif //QGSZIPUTILS_H
CORE_EXPORT bool decodeGzip(const QByteArray &bytesIn, QByteArray &bytesOut)
Decodes gzip byte stream, returns true on success.
CORE_EXPORT bool isZipFile(const QString &filename)
Returns true if the file name is a zipped file ( i.e with a '.qgz' extension, false otherwise.
CORE_EXPORT bool unzip(const QString &zip, const QString &dir, QStringList &files)
Unzip a zip file in an output directory.
CORE_EXPORT bool encodeGzip(const QByteArray &bytesIn, QByteArray &bytesOut)
Encodes gzip byte stream, returns true on success.
CORE_EXPORT bool zip(const QString &zip, const QStringList &files)
Zip the list of files in the zip file.