swift
Static Public Member Functions | List of all members
swift::misc::CCompressUtils Class Reference

Compress utilities. More...

Static Public Member Functions

static QByteArray lengthHeader (qint32 size)
 Length header. More...
 
static bool zip7Uncompress (const QString &file, const QString &directory, QStringList *stdOutAndError=nullptr)
 Unzip my using 7zip. More...
 
static bool hasZip7 (QStringList *stdOutAndError=nullptr)
 External program existing? More...
 
static bool whichZip7 (QStringList *stdOutAndError=nullptr)
 Uses which to determine if 7Zip exists. More...
 

Detailed Description

Compress utilities.

Definition at line 19 of file compressutils.h.

Member Function Documentation

◆ hasZip7()

bool swift::misc::CCompressUtils::hasZip7 ( QStringList *  stdOutAndError = nullptr)
static

External program existing?

Remarks
relies on external 7zip command line

Definition at line 66 of file compressutils.cpp.

◆ lengthHeader()

QByteArray swift::misc::CCompressUtils::lengthHeader ( qint32  size)
static

Length header.

Remarks
4 bytes -> 32bit

Definition at line 18 of file compressutils.cpp.

◆ whichZip7()

bool swift::misc::CCompressUtils::whichZip7 ( QStringList *  stdOutAndError = nullptr)
static

Uses which to determine if 7Zip exists.

Remarks
for UNIX systems, using which

Definition at line 79 of file compressutils.cpp.

◆ zip7Uncompress()

bool swift::misc::CCompressUtils::zip7Uncompress ( const QString &  file,
const QString &  directory,
QStringList *  stdOutAndError = nullptr 
)
static

Unzip my using 7zip.

Remarks
relies on external 7zip command line

Definition at line 42 of file compressutils.cpp.


The documentation for this class was generated from the following files: