diff options
Diffstat (limited to 'rbutil/rbutilqt/base/ziputil.h')
-rw-r--r-- | rbutil/rbutilqt/base/ziputil.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/rbutil/rbutilqt/base/ziputil.h b/rbutil/rbutilqt/base/ziputil.h index 49a1bd3f06..25c3dce391 100644 --- a/rbutil/rbutilqt/base/ziputil.h +++ b/rbutil/rbutilqt/base/ziputil.h | |||
@@ -20,11 +20,12 @@ | |||
20 | #define ZIPUTIL_H | 20 | #define ZIPUTIL_H |
21 | 21 | ||
22 | #include <QtCore> | 22 | #include <QtCore> |
23 | #include "archiveutil.h" | ||
23 | #include "quazip/quazip.h" | 24 | #include "quazip/quazip.h" |
24 | #include "quazip/quazipfile.h" | 25 | #include "quazip/quazipfile.h" |
25 | #include "quazip/quazipfileinfo.h" | 26 | #include "quazip/quazipfileinfo.h" |
26 | 27 | ||
27 | class ZipUtil : public QObject | 28 | class ZipUtil : public ArchiveUtil |
28 | { | 29 | { |
29 | Q_OBJECT | 30 | Q_OBJECT |
30 | 31 | ||
@@ -32,12 +33,12 @@ class ZipUtil : public QObject | |||
32 | ZipUtil(QObject* parent); | 33 | ZipUtil(QObject* parent); |
33 | ~ZipUtil(); | 34 | ~ZipUtil(); |
34 | bool open(QString& zipfile, QuaZip::Mode mode = QuaZip::mdUnzip); | 35 | bool open(QString& zipfile, QuaZip::Mode mode = QuaZip::mdUnzip); |
35 | bool close(void); | 36 | virtual bool close(void); |
36 | bool extractArchive(QString& dest, QString file = ""); | 37 | virtual bool extractArchive(const QString& dest, QString file = ""); |
37 | bool appendDirToArchive(QString& source, QString& basedir); | 38 | bool appendDirToArchive(QString& source, QString& basedir); |
38 | bool appendFileToArchive(QString& file, QString& basedir); | 39 | bool appendFileToArchive(QString& file, QString& basedir); |
39 | qint64 totalUncompressedSize(unsigned int clustersize = 0); | 40 | qint64 totalUncompressedSize(unsigned int clustersize = 0); |
40 | QStringList files(void); | 41 | virtual QStringList files(void); |
41 | 42 | ||
42 | signals: | 43 | signals: |
43 | void logProgress(int, int); | 44 | void logProgress(int, int); |