Main Page   Class Hierarchy   Compound List   File List   Compound Members  

ksimpleconfig.h

00001 // vi:ts=4:shiftwidth=4:expandtab
00002 /* This file is part of the KDE libraries
00003    Copyright (C) 1997 Matthias Kalle Dalheimer (kalle@kde.org)
00004    Copyright (c) 1999 Preston Brown <pbrown@kde.org>
00005    Copyright (C) 2002 Zhang Le <ejoy@users.sourceforge.net>
00006    Last Change:20-Jul-2002.
00007 
00008    This library is free software; you can redistribute it and/or
00009    modify it under the terms of the GNU Library General Public
00010    License as published by the Free Software Foundation; either
00011    version 2 of the License, or (at your option) any later version.
00012 
00013    This library is distributed in the hope that it will be useful,
00014    but WITHOUT ANY WARRANTY; without even the implied warranty of
00015    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00016    Library General Public License for more details.
00017 
00018    You should have received a copy of the GNU Library General Public License
00019    along with this library; see the file COPYING.LIB.  If not, write to
00020    the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00021    Boston, MA 02111-1307, USA.
00022 */
00023 // $Id: ksimpleconfig.h,v 1.1.1.1 2002/12/01 04:08:23 zl Exp $
00024 
00025 #ifndef _KSIMPLECONFIG_H
00026 #define _KSIMPLECONFIG_H
00027 
00028 #include "kconfig.h"
00029 
00030 namespace config {
00031 
00032 class KSimpleConfigPrivate;
00033 
00048 class KSimpleConfig : public KConfig
00049 {
00050 
00051 public:
00062   KSimpleConfig( const string &fileName, bool bReadOnly = false);
00063 
00069   virtual ~KSimpleConfig();
00070 
00071   virtual void sync();
00072 
00073 private:
00074 
00075   // copy-construction and assignment are not allowed
00076   KSimpleConfig( const KSimpleConfig& );
00077   KSimpleConfig& operator= ( const KSimpleConfig& rConfig );
00078 
00079 protected:
00080   virtual void virtual_hook( int id, void* data );
00081 private:
00082   KSimpleConfigPrivate *d;
00083 };
00084 
00085  }; //namespace config
00086 
00087 #endif

Generated on Sat Dec 14 20:05:52 2002 for libconfig by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002