kaddressbook

KAB::Core Class Reference

Inheritance diagram for KAB::Core:

KABCore List of all members.

Detailed Description

Definition at line 55 of file core.h.


Public Slots

virtual void setContactSelected (const QString &uid)=0
virtual void addEmail (const QString &addr)=0
virtual void importVCard (const KURL &url)=0
virtual void importVCard (const QString &vCard)=0
virtual void newContact ()=0
virtual QString getNameByPhone (const QString &phone)=0
virtual void editContact (const QString &uid=QString::null)=0

Signals

void contactsUpdated ()

Public Member Functions

 Core (KXMLGUIClient *client, QObject *parent, const char *name=0)
virtual KABC::AddressBook * addressBook () const=0
virtual KConfig * config () const=0
virtual KActionCollection * actionCollection () const=0
virtual KXMLGUIClient * guiClient () const
virtual KABC::Field * currentSortField () const=0
virtual QStringList selectedUIDs () const=0
virtual KABC::Resource * requestResource (QWidget *parent)=0
virtual QWidget * widget () const=0
virtual void deleteContacts (const QStringList &uids)=0
virtual SearchManagersearchManager () const=0
virtual KCommandHistory * commandHistory () const=0

Member Function Documentation

virtual KABC::AddressBook* KAB::Core::addressBook (  )  const [pure virtual]

Returns a pointer to the StdAddressBook of the application.

Implemented in KABCore.

virtual KConfig* KAB::Core::config (  )  const [pure virtual]

Returns a pointer to the KConfig object of the application.

Implemented in KABCore.

virtual KActionCollection* KAB::Core::actionCollection (  )  const [pure virtual]

Returns a pointer to the global KActionCollection object.

So other classes can register their actions easily.

Implemented in KABCore.

virtual KXMLGUIClient* KAB::Core::guiClient (  )  const [inline, virtual]

Returns a pointer to the gui client.

Definition at line 81 of file core.h.

virtual KABC::Field* KAB::Core::currentSortField (  )  const [pure virtual]

Returns the current sort field.

Implemented in KABCore.

virtual QStringList KAB::Core::selectedUIDs (  )  const [pure virtual]

Returns the uid list of the currently selected contacts.

Implemented in KABCore.

virtual KABC::Resource* KAB::Core::requestResource ( QWidget *  parent  )  [pure virtual]

Displays a ResourceSelectDialog and returns the selected resource or a null pointer if no resource was selected by the user.

Implemented in KABCore.

virtual QWidget* KAB::Core::widget (  )  const [pure virtual]

Returns the parent widget.

Implemented in KABCore.

virtual void KAB::Core::deleteContacts ( const QStringList &  uids  )  [pure virtual]

Deletes given contacts from the address book.

Parameters:
uids The uids of the contacts, which shall be deleted.

Implemented in KABCore.

void KAB::Core::contactsUpdated (  )  [signal]

Forwarded from SearchManager After it is emitted, distributionListNames() might have a different result.

virtual void KAB::Core::setContactSelected ( const QString &  uid  )  [pure virtual, slot]

Is called whenever a contact is selected in the view.

Implemented in KABCore.

virtual void KAB::Core::addEmail ( const QString &  addr  )  [pure virtual, slot]

DCOP METHOD: Adds the given email address to address book.

Implemented in KABCore.

virtual void KAB::Core::importVCard ( const KURL &  url  )  [pure virtual, slot]

DCOP METHOD: Imports the vCard, located at the given url.

Implemented in KABCore.

virtual void KAB::Core::importVCard ( const QString &  vCard  )  [pure virtual, slot]

DCOP METHOD: Imports the given vCard.

Implemented in KABCore.

virtual void KAB::Core::newContact (  )  [pure virtual, slot]

DCOP METHOD: Opens contact editor to input a new contact.

Implemented in KABCore.

virtual QString KAB::Core::getNameByPhone ( const QString &  phone  )  [pure virtual, slot]

DCOP METHOD: Returns the name of the contact, that matches the given phone number.

Implemented in KABCore.

virtual void KAB::Core::editContact ( const QString &  uid = QString::null  )  [pure virtual, slot]

Shows an edit dialog for the given uid.

Implemented in KABCore.


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