• 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
22typedef 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
31class KRootPropPrivate;
32
46class TDECORE_EXPORT KRootProp
47{
48private:
49 Atom atom;
50 TQMap<TQString,TQString> propDict;
51 TQString property_;
52 bool dirty;
53 KRootPropPrivate *d;
54
55public:
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:47
KRootProp::readEntry
TQString readEntry(const TQString &rKey, const TQString &pDefault=TQString::null) const
Reads the value of an entry specified by rKey in the current property.
KRootProp::readColorEntry
TQColor readColorEntry(const TQString &rKey, const TQColor *pDefault=0) const
Reads a TQColor.
KRootProp::KRootProp
KRootProp(const TQString &rProp=TQString::null)
Constructs a KRootProp object for the property rProp.
KRootProp::writeEntry
TQString writeEntry(const TQString &rKey, const TQFont &rFont)
Writes the (key/value) pair.
KRootProp::readNumEntry
int readNumEntry(const TQString &rKey, int nDefault=0) const
Reads a numerical value.
KRootProp::writeEntry
TQString writeEntry(const TQString &rKey, const TQString &rValue)
Writes a (key/value) pair.
KRootProp::~KRootProp
~KRootProp()
Destructs the KRootProp object.
KRootProp::destroy
void destroy()
Destroys the property completely.
KRootProp::removeEntry
TQString removeEntry(const TQString &rKey)
Removes an entry.
KRootProp::sync
void sync()
Flushes the entry cache.
KRootProp::readFontEntry
TQFont readFontEntry(const TQString &rKey, const TQFont *pDefault=0) const
Reads a TQFont value.
KRootProp::prop
TQString prop() const
Returns the name of the property under which keys are searched.
KRootProp::writeEntry
TQString writeEntry(const TQString &rKey, int nValue)
Writes the (key/value) pair.
KRootProp::setProp
void setProp(const TQString &rProp=TQString())
Sets the property in which keys will be searched.
KRootProp::listEntries
TQStringList listEntries() const
Returns a list of all keys.
KRootProp::writeEntry
TQString writeEntry(const TQString &rKey, const TQColor &rColor)
Writes the (key/value) pair.

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
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdecore by doxygen 1.9.4
This website is maintained by Timothy Pearson.