-
Notifications
You must be signed in to change notification settings - Fork 0
/
zzz.h
32 lines (27 loc) · 707 Bytes
/
zzz.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
#ifndef ZZZ_H
#define ZZZ_H
#include <QString>
#include <QFile>
#include <QDir>
#include "observer.h"
class Zzz
{
public:
explicit Zzz(const QString &fileName);
bool extractTo(const QDir &dir, Observer *observer);
bool packFrom(const QDir &dir, Observer *observer);
inline const QString &lastOutErrorString() const {
return _lastOutErrorString;
}
inline QString lastInErrorString() const {
return f.errorString();
}
private:
bool _packFrom(QFile *temp, const QDir &dir, Observer *observer);
static QString toQtSeparators(const QString &path);
static QString toFF8Separators(const QString &path);
QFile f;
QFile::FileError _lastOutError;
QString _lastOutErrorString;
};
#endif // ZZZ_H