misc/quazip/JlCompress.h
author unc0rr
Fri, 28 Sep 2012 00:39:20 +0400
changeset 7715 8b653edac2a2
parent 5752 ea95ee97c805
permissions -rw-r--r--
Shutup pas2c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5752
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
     1
#ifndef JLCOMPRESSFOLDER_H_
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
     2
#define JLCOMPRESSFOLDER_H_
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
     3
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
     4
#include "quazip.h"
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
     5
#include "quazipfile.h"
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
     6
#include "quazipfileinfo.h"
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
     7
#include <QString>
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
     8
#include <QDir>
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
     9
#include <QFileInfo>
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    10
#include <QFile>
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    11
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    12
class QUAZIP_EXPORT JlCompress {
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    13
private:
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    14
    static bool compressFile(QuaZip* zip, QString fileName, QString fileDest);
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    15
    static bool compressSubDir(QuaZip* parentZip, QString dir, QString parentDir, bool recursive = true);
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    16
    static bool extractFile(QuaZip* zip, QString fileName, QString fileDest);
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    17
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    18
    static bool removeFile(QStringList listFile);
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    19
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    20
public:
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    21
    static bool compressFile(QString fileCompressed, QString file);
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    22
    static bool compressFiles(QString fileCompressed, QStringList files);
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    23
    static bool compressDir(QString fileCompressed, QString dir = QString(), bool recursive = true);
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    24
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    25
public:
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    26
    static QString extractFile(QString fileCompressed, QString file, QString fileDest = QString());
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    27
    static QStringList extractFiles(QString fileCompressed, QStringList files, QString dir = QString());
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    28
    static QStringList extractDir(QString fileCompressed, QString dir = QString());
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    29
    static QStringList getFileList(QString fileCompressed);
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    30
};
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    31
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    32
#endif /* JLCOMPRESSFOLDER_H_ */