KABC::ResourceNet Class Reference

Inheritance diagram for KABC::ResourceNet:

KABC::Resource List of all members.

Detailed Description

Definition at line 45 of file resourcenet.h.


Public Member Functions

 ResourceNet (const KConfig *)
 ResourceNet (const KURL &url, const QString &format)
 ~ResourceNet ()
virtual void writeConfig (KConfig *)
virtual bool doOpen ()
virtual void doClose ()
virtual TicketrequestSaveTicket ()
virtual void releaseSaveTicket (Ticket *)
virtual bool load ()
virtual bool asyncLoad ()
virtual bool save (Ticket *ticket)
virtual bool asyncSave (Ticket *ticket)
void setUrl (const KURL &)
KURL url () const
void setFormat (const QString &name)
QString format () const

Protected Member Functions

void init (const KURL &url, const QString &format)

Member Function Documentation

void ResourceNet::writeConfig ( KConfig  )  [virtual]

Writes the resource specific config to file.

Reimplemented from KABC::Resource.

Definition at line 107 of file resourcenet.cpp.

Ticket * ResourceNet::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 115 of file resourcenet.cpp.

void ResourceNet::releaseSaveTicket ( Ticket  )  [virtual]

Releases the ticket previousely requested with requestSaveTicket().

The resource has to remove its locks in this function. This function is also responsible for deleting the ticket.

Implements KABC::Resource.

Definition at line 122 of file resourcenet.cpp.

bool ResourceNet::load (  )  [virtual]

Loads all addressees synchronously.

Returns:
Whether the loading was successfully.

Implements KABC::Resource.

Definition at line 136 of file resourcenet.cpp.

bool ResourceNet::asyncLoad (  )  [virtual]

Loads all addressees asyncronously.

You have to make sure that either the loadingFinished() or loadingError() signal is emitted from within this function.

The default implementation simply calls the synchronous load.

Returns:
Whether the synchronous part of loading was successfully.

Reimplemented from KABC::Resource.

Definition at line 167 of file resourcenet.cpp.

bool ResourceNet::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 226 of file resourcenet.cpp.

bool ResourceNet::asyncSave ( Ticket ticket  )  [virtual]

Saves all addressees asynchronously.

You have to make sure that either the savingFinished() or savingError() signal is emitted from within this function.

The default implementation simply calls the synchronous save.

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

Reimplemented from KABC::Resource.

Definition at line 255 of file resourcenet.cpp.

void ResourceNet::setUrl ( const KURL  ) 

Set url of directory to be used for saving.

Definition at line 319 of file resourcenet.cpp.

KURL ResourceNet::url (  )  const

Return url of directory used for loading and saving the address book.

Definition at line 324 of file resourcenet.cpp.

void ResourceNet::setFormat ( const QString name  ) 

Sets a new format by name.

Definition at line 329 of file resourcenet.cpp.

QString ResourceNet::format (  )  const

Returns the format name.

Definition at line 339 of file resourcenet.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys