kaddressbook

KABCore Class Reference

Inheritance diagram for KABCore:

KAB::Core

List of all members.


Detailed Description

Definition at line 80 of file kabcore.h.


Public Slots

void setContactSelected (const QString &uid)
void sendMail ()
void sendMail (const QString &email)
void mailVCard ()
void mailVCard (const QStringList &uids)
void startChat ()
void browse (const QString &url)
void selectAllContacts ()
void deleteContacts ()
void deleteContacts (const QStringList &uids)
void deleteDistributionLists (const QStringList &names)
void copyContacts ()
void cutContacts ()
void pasteContacts ()
void pasteContacts (KABC::Addressee::List &list)
void mergeContacts ()
void setWhoAmI ()
void setCategories ()
void incrementalTextSearch (const QString &text)
void incrementalJumpButtonSearch (const QString &characters)
void setModified ()
void setModified (bool modified)
bool modified () const
void contactModified (const KABC::Addressee &addr)
virtual void addEmail (const QString &addr)
virtual void importVCard (const KURL &url)
virtual void importVCardFromData (const QString &vCard)
virtual void newContact ()
virtual void newDistributionList ()
virtual QString getNameByPhone (const QString &phone)
bool handleCommandLine (KAddressBookIface *iface)
void save ()
void editContact (const QString &uid=QString::null)
void storeContactIn (const QString &uid=QString::null, bool copy=false)
void copySelectedContactToResource ()
void moveSelectedContactToResource ()
void openLDAPDialog ()
void configure ()
void print ()
void detailsHighlighted (const QString &)
void showContactsAddress (const QString &uid)
void configurationChanged ()
bool queryClose ()
void reinitXMLGUI ()

Public Member Functions

 KABCore (KXMLGUIClient *client, bool readWrite, QWidget *parent, const QString &file=QString::null, const char *name=0)
 ~KABCore ()
void restoreSettings ()
void saveSettings ()
KABC::AddressBook * addressBook () const
KConfig * config () const
KActionCollection * actionCollection () const
KABC::Field * currentSortField () const
QStringList selectedUIDs () const
KABC::Resource * requestResource (QWidget *parent)
QWidget * widget () const
void setStatusBar (KStatusBar *statusBar)
KStatusBar * statusBar () const
KAB::SearchManagersearchManager () const
KCommandHistory * commandHistory () const

Static Public Member Functions

static KAboutData * createAboutData ()

Member Function Documentation

void KABCore::restoreSettings (  ) 

Restores the global settings.

Definition at line 204 of file kabcore.cpp.

void KABCore::saveSettings (  ) 

Saves the global settings.

Definition at line 232 of file kabcore.cpp.

KABC::AddressBook * KABCore::addressBook (  )  const [virtual]

Returns a pointer to the StdAddressBook of the application.

Implements KAB::Core.

Definition at line 245 of file kabcore.cpp.

KConfig * KABCore::config (  )  const [virtual]

Returns a pointer to the KConfig object of the application.

Implements KAB::Core.

Definition at line 250 of file kabcore.cpp.

KActionCollection * KABCore::actionCollection (  )  const [virtual]

Returns a pointer to the global KActionCollection object.

So other classes can register their actions easily.

Implements KAB::Core.

Definition at line 255 of file kabcore.cpp.

KABC::Field * KABCore::currentSortField (  )  const [virtual]

Returns the current sort field of the view.

Implements KAB::Core.

Definition at line 260 of file kabcore.cpp.

QStringList KABCore::selectedUIDs (  )  const [virtual]

Returns the uid list of the currently selected contacts.

Implements KAB::Core.

Definition at line 265 of file kabcore.cpp.

KABC::Resource * KABCore::requestResource ( QWidget *  parent  )  [virtual]

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

Implements KAB::Core.

Definition at line 270 of file kabcore.cpp.

QWidget * KABCore::widget (  )  const [virtual]

Returns the parent widget.

Implements KAB::Core.

Definition at line 290 of file kabcore.cpp.

void KABCore::setContactSelected ( const QString &  uid  )  [virtual, slot]

Is called whenever a contact is selected in the view.

Implements KAB::Core.

Definition at line 328 of file kabcore.cpp.

void KABCore::sendMail (  )  [slot]

Opens the preferred mail composer with all selected contacts as arguments.

Definition at line 364 of file kabcore.cpp.

void KABCore::sendMail ( const QString &  email  )  [slot]

Opens the preferred mail composer with the given contacts as arguments.

Definition at line 369 of file kabcore.cpp.

void KABCore::startChat (  )  [slot]

Start an Instant Messaging chat with the selected contacts.

Definition at line 386 of file kabcore.cpp.

void KABCore::browse ( const QString &  url  )  [slot]

Starts the preferred web browser with the given URL as argument.

Definition at line 393 of file kabcore.cpp.

void KABCore::selectAllContacts (  )  [slot]

Select all contacts in the view.

Definition at line 398 of file kabcore.cpp.

void KABCore::deleteContacts (  )  [slot]

Deletes all selected contacts from the address book.

Definition at line 403 of file kabcore.cpp.

void KABCore::deleteContacts ( const QStringList &  uids  )  [virtual, slot]

Deletes given contacts from the address book.

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

Implements KAB::Core.

Definition at line 428 of file kabcore.cpp.

void KABCore::deleteDistributionLists ( const QStringList &  names  )  [virtual, slot]

Deletes given distribution lists from the address book.

Parameters:
uids The names of the distribution lists which shall be deleted.

Implements KAB::Core.

Definition at line 410 of file kabcore.cpp.

void KABCore::copyContacts (  )  [slot]

Copys the selected contacts into clipboard for later pasting.

Definition at line 454 of file kabcore.cpp.

void KABCore::cutContacts (  )  [slot]

Cuts the selected contacts and stores them for later pasting.

Definition at line 466 of file kabcore.cpp.

void KABCore::pasteContacts (  )  [slot]

Paste contacts from clipboard into the address book.

Definition at line 478 of file kabcore.cpp.

void KABCore::pasteContacts ( KABC::Addressee::List &  list  )  [slot]

Paste given contacts into the address book.

Parameters:
list The list of addressee, which shall be pasted.

Definition at line 487 of file kabcore.cpp.

void KABCore::mergeContacts (  )  [slot]

Merge the selected contacts in a single one.

Definition at line 504 of file kabcore.cpp.

void KABCore::setWhoAmI (  )  [slot]

Sets the whoAmI contact, that is used by many other programs to get personal information about the current user.

Definition at line 531 of file kabcore.cpp.

void KABCore::setCategories (  )  [slot]

Displays the category dialog and applies the result to all selected contacts.

Definition at line 1366 of file kabcore.cpp.

void KABCore::incrementalTextSearch ( const QString &  text  )  [slot]

Search with the current search field for a contact, that matches the given text, and selects it in the view.

Definition at line 545 of file kabcore.cpp.

void KABCore::setModified (  )  [slot]

Marks the address book as modified.

Definition at line 570 of file kabcore.cpp.

void KABCore::setModified ( bool  modified  )  [slot]

Marks the address book as modified concerning the argument.

Definition at line 575 of file kabcore.cpp.

bool KABCore::modified (  )  const [slot]

Returns whether the address book is modified.

Definition at line 583 of file kabcore.cpp.

void KABCore::contactModified ( const KABC::Addressee &  addr  )  [slot]

Called whenever an contact is modified in the contact editor dialog or the quick edit.

Definition at line 588 of file kabcore.cpp.

void KABCore::addEmail ( const QString &  addr  )  [virtual, slot]

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

Implements KAB::Core.

Definition at line 651 of file kabcore.cpp.

void KABCore::importVCard ( const KURL &  url  )  [virtual, slot]

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

Implements KAB::Core.

Definition at line 692 of file kabcore.cpp.

void KABCore::importVCardFromData ( const QString &  vCard  )  [virtual, slot]

DCOP METHOD: Imports the given vCard.

Implements KAB::Core.

Definition at line 697 of file kabcore.cpp.

void KABCore::newContact (  )  [virtual, slot]

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

Implements KAB::Core.

Definition at line 628 of file kabcore.cpp.

void KABCore::newDistributionList (  )  [virtual, slot]

DCOP METHOD: Opens distribution list editor to create a new distribution list.

Implements KAB::Core.

Definition at line 608 of file kabcore.cpp.

QString KABCore::getNameByPhone ( const QString &  phone  )  [virtual, slot]

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

Implements KAB::Core.

Definition at line 875 of file kabcore.cpp.

bool KABCore::handleCommandLine ( KAddressBookIface iface  )  [slot]

DCOP METHOD: Handle command line arguments, return true if handled and false if no args was given.

The iface is either the mainwin or the part.

Definition at line 1445 of file kabcore.cpp.

void KABCore::save (  )  [slot]

Saves the contents of the AddressBook back to disk.

Definition at line 796 of file kabcore.cpp.

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

Shows the edit dialog for the given uid.

If the uid is QString::null, the method will try to find a selected addressee in the view.

Implements KAB::Core.

Definition at line 702 of file kabcore.cpp.

void KABCore::storeContactIn ( const QString &  uid = QString::null,
bool  copy = false 
) [slot]

Let the user chose a different resource for the selected contacts.

If the adding to the new resource is successfull, the contact is removed from the old one, unless the Copy flag is given.

Definition at line 758 of file kabcore.cpp.

void KABCore::copySelectedContactToResource (  )  [slot]

Lets the user chose a different resource for the selected contacts and copies it there.

Definition at line 748 of file kabcore.cpp.

void KABCore::moveSelectedContactToResource (  )  [slot]

Lets the user chose a different resource for the selected contacts and moves it there.

Definition at line 753 of file kabcore.cpp.

void KABCore::openLDAPDialog (  )  [slot]

Launches the ldap search dialog.

Definition at line 913 of file kabcore.cpp.

void KABCore::configure (  )  [slot]

Opens the settings dialog.

Definition at line 935 of file kabcore.cpp.

void KABCore::print (  )  [slot]

Creates a KAddressBookPrinter, which will display the print dialog and do the printing.

Definition at line 951 of file kabcore.cpp.

void KABCore::reinitXMLGUI (  )  [slot]

Is called whenever the xmlgui has to be rebuild after a part switch.

Definition at line 1017 of file kabcore.cpp.


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