misc/quazip/JlCompress.h
author belphegorr <szabibibi@gmail.com>
Sun, 08 Jul 2012 19:15:38 +0300
changeset 7245 53f73f4ae203
parent 5752 ea95ee97c805
permissions -rw-r--r--
Modified frontend so that updating campaogn progress no longer changes current index of the mission combo box Updated Animate.lua (forgot to copy it last time) Mission 1: Fixed a bug where events would cause animations to stutter Moved a crate Made the princess and the elder pay attention to Leaks A Lot Changed the name of the chief to Righteous Beard Mission 2: - Mission 3: Removed leftover debug lines Solved a bug where Dense Cloud could not select weapons during final scene Made the hogs fave each other during the final animation Mission 4: Solved a bug where Dense Cloud would appear even if he's dead
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_ */