[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-pim
Subject:    Best method to access the KDE addressbook?
From:       Bernd Lachner <blachner () gmx ! de>
Date:       2001-05-16 11:10:21
[Download RAW message or body]

Hi,

I try to acces the KDE addressbook from my own program. At the moment I use
the KabAPI or better said the AddressBook class.

I have problems to access data fields(e.g. the telephone field). The Entry
subclass of the class AddressBook have a method called get.

When I try:

ErrCode = myEntry.get("telephone", telephonelist);

the ErrCode is set to "No such field"

When I try :
ErrCode = myEntry.get(AddressBook::Entry::Fields[12], telephonelist);
it works. Is this the right way to access data fields?

I have a look into the get method and I see that it makes a pointer
comparision insteed of a string comparision. Is this a bug or is this the right way?


Then I have a short look into the abbrowser source code and it seems that it
don't use the KabAPI or the AddressBook class. It seems abbrowser acces the
address database in an other way. Which is the best way to access the address
database? Which way is supported in the future?



-- 
blachner@gmx.de

GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic