00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef _TAR_H
00021 #define _TAR_H
00022
00023 #include <sys/types.h>
00024
00025 #include <kio/global.h>
00026 #include <kio/slavebase.h>
00027
00028 class ArchiveProtocol : public KIO::SlaveBase
00029 {
00030 public:
00031 ArchiveProtocol( const TQCString &pool, const TQCString &app );
00032 virtual ~ArchiveProtocol();
00033
00034 virtual void listDir( const KURL & url );
00035 virtual void stat( const KURL & url );
00036 virtual void get( const KURL & url );
00037
00038 protected:
00039 void createUDSEntry( const KArchiveEntry * tarEntry, KIO::UDSEntry & entry );
00040
00048 bool checkNewFile( const KURL & url, TQString & path, KIO::Error& errorNum );
00049
00050 KArchive * m_archiveFile;
00051 TQString m_archiveName;
00052 time_t m_mtime;
00053 };
00054
00055 #endif