• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • libkdegames
 

libkdegames

  • libkdegames
  • highscore
kconfigrawbackend.h
1 /*
2  This file is part of the KDE games library
3  Copyright (C) 2003 Nicolas Hadacek <hadacek@kde.org>
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Library General Public
7  License version 2 as published by the Free Software Foundation.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Library General Public License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to
16  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  Boston, MA 02110-1301, USA.
18 */
19 
20 #ifndef _KCONFIGRAWBACKEND_H
21 #define _KCONFIGRAWBACKEND_H
22 
23 #include <tqfile.h>
24 
25 #include <kconfigbackend.h>
26 #include <ksimpleconfig.h>
27 
28 
29 class KConfigRawBackEnd : public KConfigINIBackEnd
30 {
31 public:
32  KConfigRawBackEnd(KConfigBase *_config, int fd);
33  ~KConfigRawBackEnd();
34 
35  bool parseConfigFiles();
36 
37  void sync(bool bMerge = true);
38 
39 private:
40  int _fd;
41  FILE *_stream;
42  TQFile _file;
43 
44  class KConfigRawBackEndPrivate;
45  KConfigRawBackEndPrivate *d;
46 };
47 
48 class KRawConfig : public KSimpleConfig
49 {
50  Q_OBJECT
51  TQ_OBJECT
52 public:
53  KRawConfig(int fd, bool readOnly)
54  : KSimpleConfig(new KConfigRawBackEnd(this, fd), readOnly) {}
55 };
56 
57 
58 #endif

libkdegames

Skip menu "libkdegames"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

libkdegames

Skip menu "libkdegames"
  • libkdegames
Generated for libkdegames by doxygen 1.8.1.2
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |