10 #define TAR_CANNOTCREATE 1
11 #define TAR_NOTFOUND 2
12 #define TAR_CANTSTAT 3
13 #define TAR_FILENAMETOOLONG 4
14 #define TAR_INTERNAL 5
15 #define TAR_READERROR 6
16 #define TAR_WRITEERROR 7
17 #define TAR_ARCHIVEERROR 8
18 #define TAR_MKDIRFAILED 9
33 int create (
const QString&,
const QString&, QStringList* = 0 );
41 int create (
const QString&,
const QStringList&,
49 int extract(
const QString&, QStringList* = 0 );
56 int list (
const QString&, QStringList& );
62 QString explain(
const int );
91 #define BLOCK_SIZE 512
92 #define BLOCKING_FACTOR 20
108 void process_dir (
const QString&, QStringList& );
109 void write_file (
const QString& );
110 void write_long_filename (
const QString& );
111 void flush_buffer (
void );
112 void archive_end (
void );
113 bool validate_header (
void );
114 void read_block (
void );
115 QString get_long_filename (
void );
116 QString format_permissions (
const unsigned int,
const bool );
117 QString format_datetime (
const unsigned int );