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

kdecore

  • kdecore
krootprop.h
1 /* This file is part of the KDE libraries
2  Copyright (C) 1997 Mark Donohoe (donohoe@kde.org)
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Library General Public
6  License as published by the Free Software Foundation; either
7  version 2 of the License, or (at your option) any later version.
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 #ifndef _KROOTPROP_H
20 #define _KROOTPROP_H
21 
22 typedef unsigned long Atom;
23 
24 #include <tqcolor.h>
25 #include <tqfont.h>
26 #include <tqmap.h>
27 #include <tqstringlist.h>
28 
29 #include <kdelibs_export.h>
30 
31 class KRootPropPrivate;
32 
46 class KDECORE_EXPORT KRootProp
47 {
48 private:
49  Atom atom;
50  TQMap<TQString,TQString> propDict;
51  TQString property_;
52  bool dirty;
53  KRootPropPrivate *d;
54 
55 public:
62  KRootProp( const TQString& rProp = TQString::null );
68  ~KRootProp();
69 
74  void setProp(const TQString& rProp=TQString());
79  TQString prop() const;
80 
87  void destroy();
88 
97  TQString readEntry( const TQString& rKey,
98  const TQString& pDefault = TQString::null ) const ;
99 
110  int readNumEntry( const TQString& rKey, int nDefault = 0 ) const;
111 
122  TQFont readFontEntry( const TQString& rKey,
123  const TQFont* pDefault = 0 ) const;
124 
136  TQColor readColorEntry( const TQString& rKey,
137  const TQColor* pDefault = 0 ) const;
138 
139 
152  TQString writeEntry( const TQString& rKey, const TQString& rValue );
153 
162  TQString writeEntry( const TQString& rKey, int nValue );
163 
172  TQString writeEntry( const TQString& rKey, const TQFont& rFont );
173 
182  TQString writeEntry( const TQString& rKey, const TQColor& rColor );
183 
190  TQString removeEntry(const TQString& rKey);
191 
196  TQStringList listEntries() const;
197 
203  void sync();
204 };
205 
206 #endif

kdecore

Skip menu "kdecore"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdecore

Skip menu "kdecore"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kdecore by doxygen 1.8.3.1
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |