misc/quazip/JlCompress.h
author sheepluva
Tue, 04 Sep 2012 13:18:26 +0200
changeset 7669 a85e1c167b69
parent 5752 ea95ee97c805
permissions -rw-r--r--
I didn't want to do this since it seems less clean, but... moving the stats-fix into CheckForWin, since that function is the one sending the damage stats (whyyyy?) therefore it's not sufficient to update stats after calling it, some of the stats won't be transfered to frontend then
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_ */