swift
Loading...
Searching...
No Matches
compressutils.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (C) 2018 swift Project Community / Contributors
2// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3
5
6#ifndef SWIFT_MISC_COMPRESSUTILS_H
7#define SWIFT_MISC_COMPRESSUTILS_H
8
9#include <QByteArray>
10#include <QStringList>
11
13
14class QProcess;
15
16namespace swift::misc
17{
19 class SWIFT_MISC_EXPORT CCompressUtils
20 {
21 public:
22 CCompressUtils() = delete;
23
26 static QByteArray lengthHeader(qint32 size);
27
29 static bool zipUncompress(const QString &file, const QString &directory, QStringList *stdOutAndError = nullptr);
30
31 private:
32 static bool runZipProcess(QProcess *zipProcess, QStringList *stdOutAndError);
33 };
34} // namespace swift::misc
35
36#endif // SWIFT_MISC_COMPRESSUTILS_H
static QByteArray lengthHeader(qint32 size)
Length header.
static bool zipUncompress(const QString &file, const QString &directory, QStringList *stdOutAndError=nullptr)
Unzip file.
Free functions in swift::misc.
#define SWIFT_MISC_EXPORT
Export a class or function from the library.