swift
src
misc
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
12
#include "
misc/swiftmiscexport.h
"
13
14
class
QProcess
;
15
16
namespace
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
swift::misc::CCompressUtils
Compress utilities.
Definition:
compressutils.h:20
swift::misc
Free functions in swift::misc.
Definition:
aircraftmatcher.h:22
QByteArray
QProcess
QString
QStringList
swiftmiscexport.h
SWIFT_MISC_EXPORT
#define SWIFT_MISC_EXPORT
Export a class or function from the library.
Definition:
swiftmiscexport.h:19
Generated on Sun Oct 12 2025 20:05:12 for swift by
1.9.1