home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / CFGED1B.ZIP / CFGEDSRC.ZIP / CFGFILE.H < prev    next >
C/C++ Source or Header  |  1992-08-29  |  2KB  |  55 lines

  1. // this might look like 'C', but it's really  -*-c++-*-
  2. /* cfgfile.h
  3.  *
  4.  * Declaration of class CfgFile
  5.  *
  6.  * this class allows access to the Configuration File CONFIG.SYS
  7.  *
  8.  * Language        : C++
  9.  * Operating System: OS/2 V2.0 and higher
  10.  * Compiler        : GNU GCC V2.1 and higher
  11.  *
  12.  * History:
  13.  * Edit Histroy:
  14.  *
  15.  * $Id: cfgfile.h,v 1.2 1992/08/29 16:12:02 gruen Exp $
  16.  * $Log: cfgfile.h,v $
  17.  * Revision 1.2  1992/08/29  16:12:02  gruen
  18.  * Fixed several bugs. This will become the official beta-release.
  19.  *
  20.  * Revision 1.1  1992/07/17  00:46:57  gruen
  21.  * Initial revision
  22.  *
  23.  *
  24.  * Copyright (c) 1992 Lutz Grueneberg
  25.  *
  26.  * This library is free software; you can redistribute it and/or modify
  27.  * it under the terms of the GNU Library General Public License as
  28.  * published by the Free Software Foundation; either version 2 of the
  29.  * License, or (at your option) any later version.  This library is
  30.  * distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
  31.  * without even the implied warranty of MERCHANTABILITY or FITNESS FOR
  32.  * A PARTICULAR PURPOSE.  See the GNU Library General Public License for
  33.  * more details. You should have received a copy of the GNU Library
  34.  * General Public License along with this library; if not, write to the
  35.  * Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  36.  */
  37. #ifndef cfgfile_h
  38. #define cfgfile_h
  39.  
  40. #include "StrDLL.h"
  41.  
  42. class CfgFile {
  43. public:
  44.   StrDLList strList;
  45.  
  46.   void clear( void);
  47.   int  read( char *szFileName);
  48.   int  save( char *szFileName, char *szOldFileName);
  49.   void printToListBox( ListBox  *plb);
  50.   String* retrieve( SHORT iItem);
  51.   Pix retrievePix( SHORT iItem);
  52.   void list( void);
  53. };
  54. #endif /* cfgfile_h */
  55.