20 typedef auto_ptr<QIODevice>
CAIOPtr;
28 bool addFile(
const QString& filename, QIODevice& data,
bool replace =
true);
29 bool addFile(
const QString& filename, QByteArray data,
bool replace =
true);
31 inline bool contains(
const QString& filename);
33 qint64
write(QIODevice& dest, qint64 chunk);
34 qint64
write(QIODevice& dest);
35 inline bool open(QIODevice& dest) {
if(
_pos.contains(&dest)) {
return false; }
_pos[&dest].pos =
_pos[&dest].file =
_pos[&dest].eof = 0;
return true; }
36 inline void close(QIODevice& dest) {
_pos.remove(&dest); }
37 bool eof(QIODevice& dest);
64 void parse(QIODevice& data);
72 QHash<QIODevice*, CATarBufInfo>
_pos;
74 char *
bufncpy(
char*,
const char*,
size_t,
int = -1);
75 char *
bufncpyi(
char*&,
const char*,
size_t,
int = -1);