misc/quazip/JlCompress.h
author nemo
Mon, 06 Feb 2012 20:04:32 -0500
changeset 6645 9ff40cf44827
parent 5752 ea95ee97c805
permissions -rw-r--r--
Fixes slot sprite and ammo sprites overlapping left side border. There is still the issue that boxes should be 32px between borders, but right now they are 33px on all but the first row (since the outside border overlaps it by 1px) causing the slot sprite to have 2px of border on the left and 1px of border on the right.
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_ */