[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: reg keys
From: Adriaan de Groot <adridg () cs ! kun ! nl>
Date: 2003-07-17 9:28:09
[Download RAW message or body]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thursday 17 July 2003 10:29, Ryan wrote:
> ok ok , you guys are great. My situation is trying to port the
> following funcs
> RegCreateKeyEx
> RegCloseKey
> RegSetValueEx
> RegOpenKeyEx
> RegQueryValueEx
> RegDeleteValue
How touching that you presume we are so familiar with the Windows API as to
know what this means. IIRC, the Windows Registry is a tree (of keys), where
the leaves of the tree carry values. KDE has no such tree based configuration
system (you might try gconf for that).
A grep for "configuration", or heaven forbid, "configuration file" on KDE's
headers would have helped some.
What KDE _does_ have is KConfig, which can in theory support multiple backends
- - but doesn't, since no compelling reason to dump the existing Windows
.ini-style backend has been found yet. For a foolish look-n-feel port,
#define RegSetValueEx(a,b) KConfig().writeEntry(a,b)
could be a start (I thought there used to be a kApp->config(), but can't find
it now ... oh, it's KGlobal::config()).
> They interact with the registry. The idea is just to check settings or
> install values for a function. Some are taken care by KDE, I know, but
> we're trying to keep the code have the same feel. Less work in the long
> run. I could even use file and parse it manually, but that would take
> some time. I was hoping there was some K class I could use instead, or
> even a qt class.
You might try asking someone from a distribution that is tied closely to
Windows - where surely the problem of reading Windows configurations has been
tackled before - for help.
- --
pub 1024D/FEA2A3FE 2002-06-18 Adriaan de Groot <groot@kde.org>
Key fingerprint = 934E 31AA 80A7 723F 54F9 50ED 76AC EE01 FEA2 A3FE
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (FreeBSD)
iD8DBQE/FmwpdqzuAf6io/4RAnQGAKCFJUVCKpix7eSNPkhg9C2GDioDTACeIUkJ
C8ZdKdSS9YOQLFGoogHxaco=
=uPe4
-----END PGP SIGNATURE-----
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic