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

tdeio/tdeio

  • tdeio
  • tdeio
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 <tdelibs_export.h>
24
25class TQFile;
26class KFilterBase;
27
36class TDEIO_EXPORT KFilterDev : public TQIODevice
37{
38public:
45 KFilterDev( KFilterBase * filter, bool autoDeleteFilterBase = false );
50 virtual ~KFilterDev();
51
56#ifdef qdoc
57#else
58 virtual bool open( int mode );
59#endif
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 virtual TQIODevice::Offset size() const;
86#endif
87
88 virtual TQIODevice::Offset at() const;
92 virtual bool at( TQIODevice::Offset );
93
94 virtual bool atEnd() const;
95
96#ifdef qdoc
97#else
98 virtual TQ_LONG readBlock( char *data, TQ_ULONG maxlen );
99 virtual TQ_LONG writeBlock( const char *data, TQ_ULONG len );
100#endif
101 //int readLine( char *data, uint maxlen );
102
103 virtual int getch();
104 virtual int putch( int );
105 virtual int ungetch( int );
106
107#ifdef KDE_NO_COMPAT
108private:
109#endif
117 static TQIODevice* createFilterDevice(KFilterBase* base, TQFile* file) TDE_DEPRECATED;
118public:
119
146 static TQIODevice * deviceForFile( const TQString & fileName, const TQString & mimetype = TQString::null,
147 bool forceFilter = false );
148
167 static TQIODevice * device( TQIODevice* inDevice, const TQString & mimetype);
168 // BIC: merge with device() method below, using default value for autoDeleteInDevice
169
190 static TQIODevice * device( TQIODevice* inDevice, const TQString & mimetype, bool autoDeleteInDevice );
191
192private:
193 KFilterBase *filter;
194 class KFilterDevPrivate;
195 KFilterDevPrivate * d;
196};
197
198
199#endif
200
KFilterBase
This is the base class for compression filters such as gzip and bzip2.
Definition: kfilterbase.h:39
KFilterDev
A class for reading and writing compressed data onto a device (e.g.
Definition: kfilterdev.h:37

tdeio/tdeio

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

tdeio/tdeio

Skip menu "tdeio/tdeio"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeio/tdeio by doxygen 1.9.4
This website is maintained by Timothy Pearson.