kabc Library API Documentation

KABC::ResourceEvolution Class Reference

Inheritance diagram for KABC::ResourceEvolution:

KABC::Resource List of all members.

Public Member Functions

 ResourceEvolution (const KConfig *config)
 ~ResourceEvolution ()
bool doOpen ()
void doClose ()
TicketrequestSaveTicket ()
bool load ()
bool save (Ticket *ticket)
void removeAddressee (const Addressee &)

Detailed Description

Definition at line 8 of file resourceevo.h.


Member Function Documentation

Ticket * ResourceEvolution::requestSaveTicket  )  [virtual]
 

Request a ticket, you have to pass through save() to allow locking.

The resource has to create its locks in this function.

Implements KABC::Resource.

Definition at line 69 of file resourceevo.cpp.

References KABC::Resource::addressBook().

bool ResourceEvolution::load  )  [virtual]
 

Loads all addressees synchronously.

Returns:
Whether the loading was successfully.

Implements KABC::Resource.

Definition at line 77 of file resourceevo.cpp.

References KABC::Resource::addressBook(), Evolution::DBWrapper::begin(), doOpen(), Evolution::DBWrapper::end(), QValueList::first(), KABC::AddressBook::insertAddressee(), Evolution::DBIterator::key(), QString::latin1(), KABC::VCardTool::parseVCards(), QString::startsWith(), QString::stripWhiteSpace(), and Evolution::DBIterator::value().

bool ResourceEvolution::save Ticket ticket  )  [virtual]
 

Saves all addressees synchronously.

Parameters:
ticket You have to release the ticket later with releaseSaveTicket() explicitely.
Returns:
Whether the saving was successfully.

Implements KABC::Resource.

Definition at line 101 of file resourceevo.cpp.

References Evolution::DBWrapper::add(), KABC::Resource::addressBook(), QValueList::append(), KABC::Resource::begin(), QValueList::clear(), KABC::VCardTool::createVCards(), KABC::Resource::end(), QDir::homeDirPath(), Evolution::DBWrapper::remove(), and QFile::remove().

void ResourceEvolution::removeAddressee const Addressee  )  [virtual]
 

Removes an addressee from resource.

Reimplemented from KABC::Resource.

Definition at line 128 of file resourceevo.cpp.

References Evolution::DBWrapper::remove().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for kabc Library Version 3.4.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Feb 8 06:25:02 2006 by doxygen 1.4.4 written by Dimitri van Heesch, © 1997-2003