-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathzipfile.h
More file actions
34 lines (26 loc) · 694 Bytes
/
Copy pathzipfile.h
File metadata and controls
34 lines (26 loc) · 694 Bytes
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
#ifndef ZIPFILE_H
#define ZIPFILE_H
#include <QString>
#include <QByteArray>
#include <QDateTime>
class ZipFile
{
public:
ZipFile();
~ZipFile();
QString name() const;
bool isOpen() const;
bool create(const QString& name);
bool open(const QString& name);
void close();
bool addFile(const QString& name, const QByteArray& data);
bool addFile(const QString& name, const QString& sourceName);
bool extractFile(const QString& name, QByteArray& data);
bool extractFile(const QString& name, const QString& destName);
private:
QString filename;
QDateTime dateTime;
void* zip = Q_NULLPTR;
void* unz = Q_NULLPTR;
};
#endif // ZIPFILE_H