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

tdecore

  • tdecore
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 <tdelibs_export.h>
30 
31 class KRootPropPrivate;
32 
46 class TDECORE_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
KRootProp
Access KDE desktop resources stored on the root window.
Definition: krootprop.h:46

tdecore

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

tdecore

Skip menu "tdecore"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  •     tdecore
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  • tdeioslave
  •   http
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdecore by doxygen 1.8.8
This website is maintained by Timothy Pearson.