FXGZFileStream.h

Go to the documentation of this file.
00001 #ifdef FX_FOXCOMPAT
00002 
00003 /********************************************************************************
00004 *                                                                               *
00005 *                     G Z F i l e S t r e a m   C l a s s e s                   *
00006 *                                                                               *
00007 *********************************************************************************
00008 * Copyright (C) 2002,2006 by Sander Jansen.   All Rights Reserved.              *
00009 *********************************************************************************
00010 * This library is free software; you can redistribute it and/or                 *
00011 * modify it under the terms of the GNU Lesser General Public                    *
00012 * License as published by the Free Software Foundation; either                  *
00013 * version 2.1 of the License, or (at your option) any later version.            *
00014 *                                                                               *
00015 * This library is distributed in the hope that it will be useful,               *
00016 * but WITHOUT ANY WARRANTY; without even the implied warranty of                *
00017 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU             *
00018 * Lesser General Public License for more details.                               *
00019 *                                                                               *
00020 * You should have received a copy of the GNU Lesser General Public              *
00021 * License along with this library; if not, write to the Free Software           *
00022 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA.    *
00023 *********************************************************************************
00024 * $Id: FXGZFileStream.h,v 1.5.2.1 2007/09/28 16:42:19 fox Exp $                     *
00025 ********************************************************************************/
00026 #ifdef HAVE_ZLIB_H
00027 #ifndef FXGZFILESTREAM_H
00028 #define FXGZFILESTREAM_H
00029 
00030 #ifndef FXSTREAM_H
00031 #include "FXStream.h"
00032 #endif
00033 
00034 
00035 namespace FX {
00036 
00037 class QFile;
00038 
00040 class FXAPI FXGZFileStream : public FXStream {
00041     QFile *myfile;
00042 public:
00043 
00045   FXDEPRECATEDEXT FXGZFileStream(const FXObject* cont=NULL);
00046 
00048   bool open(const FXString& filename,FXStreamDirection save_or_load,FXuval size=8192);
00049 
00051   virtual bool flush();
00052 
00054   virtual bool close();
00055 
00057   virtual ~FXGZFileStream();
00058   };
00059 
00060 }
00061 
00062 
00063 #endif
00064 #endif
00065 #endif

(C) 2002-2009 Niall Douglas. Some parts (C) to assorted authors.
Generated on Fri Nov 20 18:31:22 2009 for TnFOX by doxygen v1.4.7