krootprop.h
/* This file is part of the KDE libraries
Copyright (C) 1997 Mark Donohoe (donohoe@kde.org)
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef _KROOTPROP_H
#define _KROOTPROP_H
typedef unsigned long Atom;
#include <qcolor.h>
#include <qfont.h>
#include <qmap.h>
#include <qstringlist.h>
#include <kdelibs_export.h>
class KRootPropPrivate;
class KDECORE_EXPORT KRootProp
{
private:
Atom atom;
QMap<QString,QString> propDict;
QString property_;
bool dirty;
KRootPropPrivate *d;
public:
KRootProp( const QString& rProp = QString::null );
~KRootProp();
void setProp(const QString& rProp=QString());
QString prop() const;
void destroy();
QString readEntry( const QString& rKey,
const QString& pDefault = QString::null ) const ;
int readNumEntry( const QString& rKey, int nDefault = 0 ) const;
QFont readFontEntry( const QString& rKey,
const QFont* pDefault = 0 ) const;
QColor readColorEntry( const QString& rKey,
const QColor* pDefault = 0 ) const;
QString writeEntry( const QString& rKey, const QString& rValue );
QString writeEntry( const QString& rKey, int nValue );
QString writeEntry( const QString& rKey, const QFont& rFont );
QString writeEntry( const QString& rKey, const QColor& rColor );
QString removeEntry(const QString& rKey);
QStringList listEntries() const;
void sync();
};
#endif
KRootProp
Access KDE desktop resources stored on the root window.
Definition: krootprop.h:46

KDE Home | KDE Accessibility Home | Description of Access Keys