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

List:       kde-pim
Subject:    Re: [Kde-pim] Developing with kabc
From:       Tobias Koenig <tokoe () kde ! org>
Date:       2002-09-25 12:38:20
[Download RAW message or body]

On Wed, Sep 25, 2002 at 11:23:10AM +0100, Damian Kramer wrote:
> Hi,
Hi Damian,

> I'm trying to work with kabc (KDE 3.1alpha) and I'm having a lot of
> hassles. I'm writing an email client, and I want to automatically
> collect addresses and store them in a seperate addressbook (a la Mozilla).
Why don't you use KABC::StdAddressBook for this purpose?

> After a lot of scrabbling about in sources I've kind of figured out how
> to do it. Basically I've created a new ResourceFile, and a new
> Addressbook which uses it. I can add entries to the addressbook, and
> iterating over the addressbook shows they are all there. But after a
> saveAll (which returns with no error), the file on disk doesn't have the
> new entries.
Hmm, I guess you have to call
	resource->setReadOnly( false );
first.
Atm saveAll() doesn't returns a error if a resource is readOnly. Will fix it.

Ciao,
Tobias
-- 
In a world without walls and fences who
needs Windows and Gates???
_______________________________________________
kde-pim mailing list
kde-pim@mail.kde.org
http://mail.kde.org/mailman/listinfo/kde-pim
kde-pim home page at http://pim.kde.org/
[prev in list] [next in list] [prev in thread] [next in thread] 

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