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

KDECore

kxzfilter.h

Go to the documentation of this file.
00001 /* This file is part of the KDE libraries
00002    Copyright (C) 2007-2008 Per Øyvind Karlsen <peroyvind@mandriva.org>
00003 
00004    Based on kbzip2filter:
00005    Copyright (C) 2000 David Faure <faure@kde.org>
00006 
00007    This library is free software; you can redistribute it and/or
00008    modify it under the terms of the GNU Library General Public
00009    License as published by the Free Software Foundation; either
00010    version 2 of the License, or (at your option) any later version.
00011 
00012    This library is distributed in the hope that it will be useful,
00013    but WITHOUT ANY WARRANTY; without even the implied warranty of
00014    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015    Library General Public License for more details.
00016 
00017    You should have received a copy of the GNU Library General Public License
00018    along with this library; see the file COPYING.LIB.  If not, write to
00019    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00020    Boston, MA 02110-1301, USA.
00021 */
00022 
00023 #ifndef __klzmafilter__h
00024 #define __klzmafilter__h
00025 
00026 #include <config.h>
00027 
00028 #if defined( HAVE_XZ_SUPPORT )
00029 
00030 #include "kfilterbase.h"
00031 
00036 class KXzFilter : public KFilterBase
00037 {
00038 public:
00039     KXzFilter();
00040     virtual ~KXzFilter();
00041 
00042     virtual void init( int );
00043     virtual int mode() const;
00044     virtual void terminate();
00045     virtual void reset();
00046     virtual bool readHeader() { return true; } // lzma handles it by itself ! Cool !
00047     virtual bool writeHeader( const QByteArray & ) { return true; }
00048     virtual void setOutBuffer( char * data, uint maxlen );
00049     virtual void setInBuffer( const char * data, uint size );
00050     virtual int  inBufferAvailable() const;
00051     virtual int  outBufferAvailable() const;
00052     virtual Result uncompress();
00053     virtual Result compress( bool finish );
00054 private:
00055     class Private;
00056     Private* const d;
00057 };
00058 
00059 #endif
00060 
00061 #endif /* __klzmafilter__h */

KDECore

Skip menu "KDECore"
  • Main Page
  • Modules
  • 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
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.6.1
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