• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KIO

ktar.h

Go to the documentation of this file.
00001 /* This file is part of the KDE libraries
00002    Copyright (C) 2000-2005 David Faure <faure@kde.org>
00003    Copyright (C) 2003 Leo Savernik <l.savernik@aon.at>
00004 
00005    This library is free software; you can redistribute it and/or
00006    modify it under the terms of the GNU Library General Public
00007    License version 2 as published by the Free Software Foundation.
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 #ifndef KTAR_H
00020 #define KTAR_H
00021 
00022 #include <karchive.h>
00023 
00032 class KIO_EXPORT KTar : public KArchive
00033 {
00034 public:
00045     explicit KTar( const QString& filename,
00046                    const QString& mimetype = QString() );
00047 
00056     explicit KTar( QIODevice * dev );
00057 
00062     virtual ~KTar();
00063 
00070     void setOrigFileName( const QByteArray & fileName );
00071 
00072 protected:
00073 
00075     virtual bool doWriteSymLink(const QString &name, const QString &target,
00076                                 const QString &user, const QString &group,
00077                                 mode_t perm, time_t atime, time_t mtime, time_t ctime);
00079     virtual bool doWriteDir( const QString& name, const QString& user, const QString& group,
00080                              mode_t perm, time_t atime, time_t mtime, time_t ctime );
00082     virtual bool doPrepareWriting( const QString& name, const QString& user,
00083                                    const QString& group, qint64 size, mode_t perm,
00084                                    time_t atime, time_t mtime, time_t ctime );
00086     virtual bool doFinishWriting( qint64 size );
00087 
00094     virtual bool openArchive( QIODevice::OpenMode mode );
00095     virtual bool closeArchive();
00096 
00097     virtual bool createDevice( QIODevice::OpenMode mode );
00098 
00099 private:
00100 
00101 protected:
00102     virtual void virtual_hook( int id, void* data );
00103 private:
00104     class KTarPrivate;
00105     KTarPrivate* const d;
00106 };
00107 
00108 #endif

KIO

Skip menu "KIO"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • KIO
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal