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

List:       kde-pim
Subject:    Re: [Kde-pim] libkabc API problems
From:       Cornelius Schumacher <schumacher () kde ! org>
Date:       2002-09-29 11:08:41
[Download RAW message or body]

On Sunday 29 September 2002 12:24, Adriaan de Groot wrote:
> On Sunday 29 September 2002 03:23, Cornelius Schumacher wrote:
> > - AddressBook::saveAll() undermines the locking concept. I would
> > like to remove this function. It's the responsibility of the
> > application to ensure that all resources are saved.
> >
> > I don't know what these changes would break, so could people using
> > these functions please comment, if the changes would cause
> > problems?
>
> eggs.ebn.kun.nl$egrep
> 'saveAll|resourceAddress|distributionList|lastAddress' *
> abbrowser-conduit.cc:   return (aBook) && (aBook->saveAll());
>
> OK, so there's one instance of it in KPilot. Unfortunately it's also
> not my code, so I'm going to need a little help fixing it. aBook is
> created as:
>
> 	aBook=KABC::StdAddressBook::self();
>
> so what resources am I using then?

StdAddressBook has an own save() function. So you can replace 
"aBook->saveAll()" by "StdAddressBook::save()".

-- 
Cornelius Schumacher <schumacher@kde.org>
_______________________________________________
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