• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kio/kio
 

kio/kio

  • kio
  • kio
kar.h
1 /* This file is part of the KDE libraries
2  Copyright (C) 2002 Laurence Anderson <l.d.anderson@warwick.ac.uk>
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Library General Public
6  License version 2 as published by the Free Software Foundation.
7 
8  This library is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  Library General Public License for more details.
12 
13  You should have received a copy of the GNU Library General Public License
14  along with this library; see the file COPYING.LIB. If not, write to
15  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16  Boston, MA 02110-1301, USA.
17 */
18 #ifndef __kar_h
19 #define __kar_h
20 
21 #include <sys/stat.h>
22 #include <sys/types.h>
23 
24 #include <tqdatetime.h>
25 #include <tqstring.h>
26 #include <tqstringlist.h>
27 #include <tqdict.h>
28 
29 #include <karchive.h>
30 
38 class KIO_EXPORT KAr : public KArchive
39 {
40 public:
46  KAr( const TQString& filename );
47 
53  KAr( TQIODevice * dev );
54 
59  virtual ~KAr();
60 
65  TQString fileName() { return m_filename; }
66 
67  /*
68  * Writing not supported by this class, will always fail.
69  * @return always false
70  */
71  virtual bool prepareWriting( const TQString& name, const TQString& user, const TQString& group, uint size ) { Q_UNUSED(name); Q_UNUSED(user); Q_UNUSED(group); Q_UNUSED(size); return false; }
72 
73  /*
74  * Writing not supported by this class, will always fail.
75  * @return always false
76  */
77  virtual bool doneWriting( uint size ) { Q_UNUSED(size); return false; }
78 
79  /*
80  * Writing not supported by this class, will always fail.
81  * @return always false
82  */
83  virtual bool writeDir( const TQString& name, const TQString& user, const TQString& group ) { Q_UNUSED(name); Q_UNUSED(user); Q_UNUSED(group); return false; }
84 
85 protected:
92  virtual bool openArchive( int mode );
93  virtual bool closeArchive();
94 
95 protected:
96  virtual void virtual_hook( int id, void* data );
97 private:
98  TQString m_filename;
99  class KArPrivate;
100  KArPrivate * d;
101 };
102 
103 #endif
KAr::fileName
TQString fileName()
The name of the ar file, as passed to the constructor.
Definition: kar.h:65
KArchive
KArchive is a base class for reading and writing archives.
Definition: karchive.h:42
KAr
KAr is a class for reading archives in ar format.
Definition: kar.h:38
KAr::writeDir
virtual bool writeDir(const TQString &name, const TQString &user, const TQString &group)
If an archive is opened for writing then you can add new directories using this function.
Definition: kar.h:83
KArchive::openArchive
virtual bool openArchive(int mode)=0
Opens an archive for reading or writing.
KAr::prepareWriting
virtual bool prepareWriting(const TQString &name, const TQString &user, const TQString &group, uint size)
Here&#39;s another way of writing a file into an archive: Call prepareWriting, then call writeData() as m...
Definition: kar.h:71
KAr::doneWriting
virtual bool doneWriting(uint size)
Call doneWriting after writing the data.
Definition: kar.h:77
KArchive::closeArchive
virtual bool closeArchive()=0
Closes the archive.

kio/kio

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

kio/kio

Skip menu "kio/kio"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kio/kio by doxygen 1.8.11
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |