• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • kdepim
  • Sitemap
  • Contact Us
 

kaddressbook

KABCore Class Reference

#include <kabcore.h>

Inheritance diagram for KABCore:

Inheritance graph
[legend]

List of all members.


Detailed Description

Definition at line 81 of file kabcore.h.


Public Slots

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

Public Member Functions

KActionCollection * actionCollection () const
KABC::AddressBook * addressBook () const
QUndoStack * commandHistory () const
KConfig * config () const
KABC::Field * currentSortField () const
virtual QStringList distributionListNames () const
virtual
KPIM::DistributionList::List 
distributionLists () const
 KABCore (KXMLGUIClient *client, bool readWrite, QWidget *parent, const QString &file=QString(), const char *name=0)
KABC::Resource * requestResource (QWidget *parent)
void restoreSettings ()
void saveSettings ()
KAB::SearchManager * searchManager () const
QStringList selectedUIDs () const
virtual void setSelectedDistributionList (const QString &name)
void setStatusBar (KStatusBar *statusBar)
KStatusBar * statusBar () const
QWidget * widget () const
 ~KABCore ()

Static Public Member Functions

static KAboutData createAboutData ()

Constructor & Destructor Documentation

KABCore::KABCore ( KXMLGUIClient *  client,
bool  readWrite,
QWidget *  parent,
const QString &  file = QString(),
const char *  name = 0 
)

Definition at line 91 of file kabcore.cpp.

KABCore::~KABCore (  ) 

Definition at line 196 of file kabcore.cpp.


Member Function Documentation

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 257 of file kabcore.cpp.

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

D-Bus METHOD: Adds the given email address to address book.

Implements KAB::Core.

Definition at line 654 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 247 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 392 of file kabcore.cpp.

QUndoStack* KABCore::commandHistory (  )  const [inline, virtual]

Implements KAB::Core.

Definition at line 146 of file kabcore.h.

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

Returns a pointer to the KConfig object of the application.

Implements KAB::Core.

Definition at line 252 of file kabcore.cpp.

void KABCore::configurationChanged (  )  [slot]

Definition at line 969 of file kabcore.cpp.

void KABCore::configure (  )  [slot]

Opens the settings dialog.

Definition at line 904 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 593 of file kabcore.cpp.

void KABCore::copyContacts (  )  [slot]

Copys the selected contacts into clipboard for later pasting.

Definition at line 453 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 731 of file kabcore.cpp.

KAboutData KABCore::createAboutData (  )  [static]

Definition at line 295 of file kabcore.cpp.

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

Returns the current sort field of the view.

Implements KAB::Core.

Definition at line 262 of file kabcore.cpp.

void KABCore::cutContacts (  )  [slot]

Cuts the selected contacts and stores them for later pasting.

Definition at line 465 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 427 of file kabcore.cpp.

void KABCore::deleteContacts (  )  [slot]

Deletes all selected contacts from the address book.

Definition at line 402 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 409 of file kabcore.cpp.

void KABCore::detailsHighlighted ( const QString &  msg  )  [slot]

Definition at line 939 of file kabcore.cpp.

QStringList KABCore::distributionListNames (  )  const [virtual]

Returns the name of all the distribution lists.

Implements KAB::Core.

Definition at line 1578 of file kabcore.cpp.

KPIM::DistributionList::List KABCore::distributionLists (  )  const [virtual]

Returns all the distribution lists.

Implements KAB::Core.

Definition at line 1558 of file kabcore.cpp.

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

Shows the edit dialog for the given uid.

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

Implements KAB::Core.

Definition at line 695 of file kabcore.cpp.

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

D-Bus METHOD: Returns the name of the contact, that matches the given phone number.

Implements KAB::Core.

Definition at line 854 of file kabcore.cpp.

bool KABCore::handleCommandLine (  )  [slot]

D-Bus 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::importVCard ( const KUrl &  url  )  [virtual, slot]

D-Bus METHOD: Imports the vCard, located at the given url.

Implements KAB::Core.

Definition at line 685 of file kabcore.cpp.

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

D-Bus METHOD: Imports the given vCard.

Implements KAB::Core.

Definition at line 690 of file kabcore.cpp.

void KABCore::incrementalJumpButtonSearch ( const QString &  characters  )  [slot]

Definition at line 550 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 544 of file kabcore.cpp.

void KABCore::mailVCard ( const QStringList &  uids  )  [slot]

Definition at line 380 of file kabcore.cpp.

void KABCore::mailVCard (  )  [slot]

Definition at line 373 of file kabcore.cpp.

void KABCore::mergeContacts (  )  [slot]

Merge the selected contacts in a single one.

Definition at line 503 of file kabcore.cpp.

bool KABCore::modified (  )  const [slot]

Returns whether the address book is modified.

Definition at line 588 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 736 of file kabcore.cpp.

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

D-Bus METHOD: Opens contact editor to input a new contact.

Implements KAB::Core.

Definition at line 631 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 613 of file kabcore.cpp.

void KABCore::openLDAPDialog (  )  [slot]

Launches the ldap search dialog.

Definition at line 882 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 486 of file kabcore.cpp.

void KABCore::pasteContacts (  )  [slot]

Paste contacts from clipboard into the address book.

Definition at line 477 of file kabcore.cpp.

void KABCore::print (  )  [slot]

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

Definition at line 921 of file kabcore.cpp.

bool KABCore::queryClose (  )  [slot]

Definition at line 975 of file kabcore.cpp.

void KABCore::reinitXMLGUI (  )  [slot]

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

Definition at line 989 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 272 of file kabcore.cpp.

void KABCore::restoreSettings (  ) 

Restores the global settings.

Definition at line 206 of file kabcore.cpp.

void KABCore::save (  )  [slot]

Saves the contents of the AddressBook back to disk.

Definition at line 779 of file kabcore.cpp.

void KABCore::saveSettings (  ) 

Saves the global settings.

Definition at line 234 of file kabcore.cpp.

KAB::SearchManager* KABCore::searchManager (  )  const [inline, virtual]

Implements KAB::Core.

Definition at line 144 of file kabcore.h.

void KABCore::selectAllContacts (  )  [slot]

Select all contacts in the view.

Definition at line 397 of file kabcore.cpp.

QStringList KABCore::selectedUIDs (  )  const [virtual]

Returns the uid list of the currently selected contacts.

Implements KAB::Core.

Definition at line 267 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 368 of file kabcore.cpp.

void KABCore::sendMail (  )  [slot]

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

Definition at line 363 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::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::setModified ( bool  modified  )  [slot]

Marks the address book as modified concerning the argument.

Definition at line 580 of file kabcore.cpp.

void KABCore::setModified (  )  [slot]

Marks the address book as modified.

Definition at line 575 of file kabcore.cpp.

void KABCore::setSelectedDistributionList ( const QString &  name  )  [virtual]

sets the distribution list to display.

If null, the regular address book is to be displayed.

Implements KAB::Core.

Definition at line 1563 of file kabcore.cpp.

void KABCore::setStatusBar ( KStatusBar *  statusBar  ) 

Definition at line 318 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 530 of file kabcore.cpp.

void KABCore::showContactsAddress ( const QString &  uid  )  [slot]

Definition at line 949 of file kabcore.cpp.

void KABCore::startChat (  )  [slot]

Start an Instant Messaging chat with the selected contacts.

Definition at line 385 of file kabcore.cpp.

KStatusBar * KABCore::statusBar (  )  const

Definition at line 323 of file kabcore.cpp.

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

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

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

Definition at line 741 of file kabcore.cpp.

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

Returns the parent widget.

Implements KAB::Core.

Definition at line 290 of file kabcore.cpp.


The documentation for this class was generated from the following files:
  • kabcore.h
  • kabcore.cpp

kaddressbook

Skip menu "kaddressbook"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  •   doc
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal