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

kio/kio

  • kio
  • kio
kfilterdev.h
1 /* This file is part of the KDE libraries
2  Copyright (C) 2000 David Faure <faure@kde.org>
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 __kfilterdev_h
19 #define __kfilterdev_h
20 
21 #include <tqiodevice.h>
22 #include <tqstring.h>
23 #include <kdelibs_export.h>
24 
25 class TQFile;
26 class KFilterBase;
27 
36 class KIO_EXPORT KFilterDev : public TQIODevice
37 {
38 public:
45  KFilterDev( KFilterBase * filter, bool autoDeleteFilterBase = false );
50  virtual ~KFilterDev();
51 
56 #ifdef qdoc
57 #else
58  virtual bool open( TQ_OpenMode mode );
59 #endif
60 
64  virtual void close();
65  virtual void flush();
66 
72  void setOrigFileName( const TQCString & fileName );
73 
80  void setSkipHeaders();
81 
82  // Not implemented
83 #ifdef qdoc
84 #else
85 #ifdef USE_QT4
86  virtual qint64 size() const;
87 #else // USE_QT4
88  virtual TQIODevice::Offset size() const;
89 #endif // USE_QT4
90 #endif
91 
92  virtual TQIODevice::Offset at() const;
96  virtual bool at( TQIODevice::Offset );
97 
98  virtual bool atEnd() const;
99 
100 #ifdef qdoc
101 #else
102  virtual TQT_TQIO_LONG tqreadBlock( char *data, TQT_TQIO_ULONG maxlen );
103  virtual TQT_TQIO_LONG tqwriteBlock( const char *data, TQT_TQIO_ULONG len );
104 #endif
105  //int readLine( char *data, uint maxlen );
106 
107  virtual int getch();
108  virtual int putch( int );
109  virtual int ungetch( int );
110 
111 #ifdef KDE_NO_COMPAT
112 private:
113 #endif
114 
121  static TQIODevice* createFilterDevice(KFilterBase* base, TQFile* file) KDE_DEPRECATED;
122 public:
123 
150  static TQIODevice * deviceForFile( const TQString & fileName, const TQString & mimetype = TQString::null,
151  bool forceFilter = false );
152 
171  static TQIODevice * device( TQIODevice* inDevice, const TQString & mimetype);
172  // BIC: merge with device() method below, using default value for autoDeleteInDevice
173 
194  static TQIODevice * device( TQIODevice* inDevice, const TQString & mimetype, bool autoDeleteInDevice );
195 
196 private:
197  KFilterBase *filter;
198  class KFilterDevPrivate;
199  KFilterDevPrivate * d;
200 };
201 
202 
203 #endif
204 
KFilterDev
A class for reading and writing compressed data onto a device (e.g.
Definition: kfilterdev.h:36
KFilterBase
This is the base class for compression filters such as gzip and bzip2.
Definition: kfilterbase.h:38

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.6
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |