1 |
cycrow |
1 |
#ifndef __QTCATPCK_H__
|
|
|
2 |
#define __QTCATPCK_H__
|
|
|
3 |
|
|
|
4 |
#include <QString.h>
|
|
|
5 |
#include <QPtrList.h>
|
|
|
6 |
#include <QFile.h>
|
|
|
7 |
#include <QFileInfo.h>
|
|
|
8 |
|
|
|
9 |
typedef struct SCatFile {
|
|
|
10 |
QString sName;
|
|
|
11 |
long iSize;
|
|
|
12 |
} SCatFile;
|
|
|
13 |
|
|
|
14 |
void UnpackFile ( const QString &filename, const QString &unpackedFile );
|
|
|
15 |
bool PackFile ( QFile *readfile, const QString &filename, bool bPCK );
|
|
|
16 |
bool PackFile ( unsigned char *data, size_t size, const QString &filename, bool bPCK );
|
|
|
17 |
bool ExtractFromCat ( const QString &filename, const QString &savefile, bool convert = false, bool plain = false );
|
|
|
18 |
void CopyCatFile ( const QString &from, const QString &to );
|
|
|
19 |
bool RemoveFromCat ( const QString &file );
|
|
|
20 |
QPtrList<SCatFile> GetCatList ( const QString &file );
|
|
|
21 |
bool ExtractFile ( const QString &dir, const QString &file, const QString &to );
|
|
|
22 |
|
|
|
23 |
#endif //__QTCATPCK_H__
|