forked from psemiletov/tea-qt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tzipper.h
40 lines (26 loc) · 786 Bytes
/
tzipper.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef TZIPPER_H
#define TZIPPER_H
#include <QObject>
#include <QFileInfo>
#include <QStringList>
#include "quazip.h"
#include "quazipfile.h"
class CZipper: public QObject
{
Q_OBJECT
public:
QString string_data;
QString archive_fullpath;
QString archive_name;
QStringList files_list;
bool pack_prepared();
bool zip_directory (const QString &archpath, const QString &dir2pack);
bool read_as_utf8 (const QString &archname, const QString &fname);
bool unzip (const QString &archpath, const QString &destdir);
QStringList unzip_list (const QString &archpath);
signals:
void new_iteration (const QFileInfo &fi);
void unpack_iteration (const QString &fname);
};
QByteArray gzip_deflateFile (const QString &fileName);
#endif // TZIPPER_H