swift
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 {
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
Compress utilities.
Definition: compressutils.h:20
Free functions in swift::misc.
#define SWIFT_MISC_EXPORT
Export a class or function from the library.