class StdAddressBook

# class StdAddressBook | Standard KDE address book More...
Full name | `KABC::StdAddressBook`
Definition | `#include <stdaddressbook.h>`
Inherits | KABC::AddressBook [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

#### Public Static Methods

- static AddressBook * self ()
- static AddressBook * self ( bool onlyFastResources )
- static bool save ()
- static void handleCrash ()
- static QString fileName ()
- static QString directoryName ()
- static void setAutomaticSave ( bool enable )
- static void close ()
- static bool automaticSave ()

#### Protected Methods

- StdAddressBook ()
- StdAddressBook ( bool onlyFastResources )
- ~StdAddressBook ()
- void init ( bool onlyFastResources )

## Detailed Description

Standard KDE address book

This class provides access to the standard KDE address book shared by all applications.

It's implemented as a singleton. Use self() to get the address book object.

Example:

      KABC::AddressBook *ab = KABC::StdAddressBook::self();

      if ( !ab->load() ) {
        // error
      }

      KABC::AddressBook::Iterator it;
      for ( it = ab->begin(); it != ab->end(); ++it ) {
        kdDebug() << "UID=" << (*it).uid() << endl;

        // do some other stuff
      }

      KABC::StdAddressBook::save();

AddressBook * self () | ### self

[static]

Return the standard addressbook object.

AddressBook * self ( bool onlyFastResources ) | ### self

[static]

This is the same as above, but with specified behaviour of resource loading.

Parameters:

onlyFastResource | Only resources marked as 'fast' should be loaded

bool save () | ### save

[static]

Save the standard address book to disk.

Reimplemented from AddressBook.

void handleCrash () | ### handleCrash

[static]

Call this method in your crash handler to allow the library clean up possible locks.

QString fileName () | ### fileName

[static]

Returns the default file name for vcard-based addressbook

QString directoryName () | ### directoryName

[static]

Returns the default directory name for vcard-based addressbook

void setAutomaticSave ( bool enable ) | ### setAutomaticSave

[static]

Set the automatic save property of the address book. If `enable` is TRUE (default) the address book is saved at destruction time otherwise you have to call save() to explicitely save it.

void close () | ### close

[static]

Closes the address book. Depending on automaticSave() it will save the address book first.

bool automaticSave () | ### automaticSave

[static]

Returns whether the address book is saved at destruction time. See also setAutomaticSave().

StdAddressBook () | ### StdAddressBook

[protected]

StdAddressBook ( bool onlyFastResources ) | ### StdAddressBook

[protected]

~StdAddressBook () | ### ~StdAddressBook

[protected]

void init ( bool onlyFastResources ) | ### init

[protected]

Generated by: root on macppc.ports.openbsd.org on Sat Sep 6 10:38:02 2003, using kdoc 2.0a54.