• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 API Reference
  • KDE Home
  • Contact Us
 

KDECore

  • kdecore
  • io
ktar.h
Go to the documentation of this file.
1/* This file is part of the KDE libraries
2 Copyright (C) 2000-2005 David Faure <faure@kde.org>
3 Copyright (C) 2003 Leo Savernik <l.savernik@aon.at>
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License version 2 as published by the Free Software Foundation.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 Boston, MA 02110-1301, USA.
18*/
19#ifndef KTAR_H
20#define KTAR_H
21
22#include <karchive.h>
23
32class KDECORE_EXPORT KTar : public KArchive
33{
34public:
46 explicit KTar( const QString& filename,
47 const QString& mimetype = QString() );
48
57 explicit KTar( QIODevice * dev );
58
63 virtual ~KTar();
64
71 void setOrigFileName( const QByteArray & fileName );
72
73protected:
74
76 virtual bool doWriteSymLink(const QString &name, const QString &target,
77 const QString &user, const QString &group,
78 mode_t perm, time_t atime, time_t mtime, time_t ctime);
80 virtual bool doWriteDir( const QString& name, const QString& user, const QString& group,
81 mode_t perm, time_t atime, time_t mtime, time_t ctime );
83 virtual bool doPrepareWriting( const QString& name, const QString& user,
84 const QString& group, qint64 size, mode_t perm,
85 time_t atime, time_t mtime, time_t ctime );
87 virtual bool doFinishWriting( qint64 size );
88
95 virtual bool openArchive( QIODevice::OpenMode mode );
96 virtual bool closeArchive();
97
98 virtual bool createDevice( QIODevice::OpenMode mode );
99
100private:
101
102protected:
103 virtual void virtual_hook( int id, void* data );
104private:
105 class KTarPrivate;
106 KTarPrivate* const d;
107};
108
109#endif
KArchive
KArchive is a base class for reading and writing archives.
Definition: karchive.h:44
KTar
A class for reading / writing (optionally compressed) tar archives.
Definition: ktar.h:33
QIODevice
QString
qint64
karchive.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDECore

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

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal