KDECore
kar.h
Go to the documentation of this file.
00001 /* This file is part of the KDE libraries 00002 Copyright (C) 2002 Laurence Anderson <l.d.anderson@warwick.ac.uk> 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 version 2 as published by the Free Software Foundation. 00007 00008 This library is distributed in the hope that it will be useful, 00009 but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00011 Library General Public License for more details. 00012 00013 You should have received a copy of the GNU Library General Public License 00014 along with this library; see the file COPYING.LIB. If not, write to 00015 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00016 Boston, MA 02110-1301, USA. 00017 */ 00018 #ifndef KAR_H 00019 #define KAR_H 00020 00021 #include <karchive.h> 00022 00029 class KDECORE_EXPORT KAr : public KArchive 00030 { 00031 public: 00037 KAr( const QString& filename ); 00038 00044 KAr( QIODevice * dev ); 00045 00050 virtual ~KAr(); 00051 00052 protected: 00053 00054 /* 00055 * Writing not supported by this class, will always fail. 00056 * @return always false 00057 */ 00058 virtual bool doPrepareWriting( const QString& name, const QString& user, const QString& group, qint64 size, 00059 mode_t perm, time_t atime, time_t mtime, time_t ctime ); 00060 00061 /* 00062 * Writing not supported by this class, will always fail. 00063 * @return always false 00064 */ 00065 virtual bool doFinishWriting( qint64 size ); 00066 00067 /* 00068 * Writing not supported by this class, will always fail. 00069 * @return always false 00070 */ 00071 virtual bool doWriteDir( const QString& name, const QString& user, const QString& group, 00072 mode_t perm, time_t atime, time_t mtime, time_t ctime ); 00073 00074 virtual bool doWriteSymLink( const QString &name, const QString &target, 00075 const QString &user, const QString &group, mode_t perm, time_t atime, time_t mtime, time_t ctime ); 00076 00083 virtual bool openArchive( QIODevice::OpenMode mode ); 00084 virtual bool closeArchive(); 00085 00086 protected: 00087 virtual void virtual_hook( int id, void* data ); 00088 private: 00089 class KArPrivate; 00090 KArPrivate* const d; 00091 }; 00092 00093 #endif
KDE 4.6 API Reference