lib
KoZipStore.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef koZipStore_h
00021 #define koZipStore_h
00022
00023 #include "KoStoreBase.h"
00024
00025 class KZip;
00026 class KArchiveDirectory;
00027 class KURL;
00028
00029 class KoZipStore : public KoStoreBase
00030 {
00031 public:
00032 KoZipStore( const QString & _filename, Mode _mode, const QCString & appIdentification );
00033 KoZipStore( QIODevice *dev, Mode mode, const QCString & appIdentification );
00039 KoZipStore( QWidget* window, const KURL& _url, const QString & _filename, Mode _mode, const QCString & appIdentification );
00040 ~KoZipStore();
00041
00042 virtual Q_LONG write( const char* _data, Q_ULONG _len );
00043 protected:
00044 virtual bool init( Mode _mode, const QCString& appIdentification );
00045 virtual bool openWrite( const QString& name );
00046 virtual bool openRead( const QString& name );
00047 virtual bool closeWrite();
00048 virtual bool closeRead() { return true; }
00049 virtual bool enterRelativeDirectory( const QString& dirName );
00050 virtual bool enterAbsoluteDirectory( const QString& path );
00051 virtual bool fileExists( const QString& absPath ) const;
00052
00054 KZip * m_pZip;
00055
00058 const KArchiveDirectory* m_currentDir;
00059 };
00060
00061 #endif
|