F:/KPlato/koffice/libs/store/KoZipStore.h

Aller à la documentation de ce fichier.
00001 /* This file is part of the KDE project
00002    Copyright (C) 2002 David Faure <faure@kde.org>
00003 
00004    This library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Library General Public
00006    License as published by the Free Software Foundation; either
00007    version 2 of the License, or (at your option) any later version.
00008 
00009    This library is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012    Library General Public License for more details.
00013 
00014    You should have received a copy of the GNU Library General Public License
00015    along with this library; see the file COPYING.LIB.  If not, write to
00016    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017  * Boston, MA 02110-1301, USA.
00018 */
00019 
00020 #ifndef koZipStore_h
00021 #define koZipStore_h
00022 
00023 #include "KoStoreBase.h"
00024 //Added by qt3to4:
00025 #include <QByteArray>
00026 
00027 class KZip;
00028 class KArchiveDirectory;
00029 class KUrl;
00030 
00031 class KoZipStore : public KoStoreBase
00032 {
00033 public:
00034     KoZipStore( const QString & _filename, Mode _mode, const QByteArray & appIdentification );
00035     KoZipStore( QIODevice *dev, Mode mode, const QByteArray & appIdentification );
00041     KoZipStore( QWidget* window, const KUrl& _url, const QString & _filename, Mode _mode, const QByteArray & appIdentification );
00042     ~KoZipStore();
00043 
00044     virtual qint64 write( const char* _data, qint64 _len );
00045 protected:
00046     virtual bool init( Mode _mode, const QByteArray& appIdentification );
00047     virtual bool openWrite( const QString& name );
00048     virtual bool openRead( const QString& name );
00049     virtual bool closeWrite();
00050     virtual bool closeRead() { return true; }
00051     virtual bool enterRelativeDirectory( const QString& dirName );
00052     virtual bool enterAbsoluteDirectory( const QString& path );
00053     virtual bool fileExists( const QString& absPath ) const;
00054 
00056     KZip * m_pZip;
00057 
00060     const KArchiveDirectory* m_currentDir;
00061 };
00062 
00063 #endif

Généré le Wed Nov 22 23:41:14 2006 pour KPlato par  doxygen 1.5.1-p1