• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdenetwork
  • Sitemap
  • Contact Us
 

kopete/kopete

KopeteAddressBookExport Class Reference

#include <kopeteaddrbookexport.h>

Inheritance diagram for KopeteAddressBookExport:

Inheritance graph
[legend]

List of all members.


Detailed Description

Definition at line 41 of file kopeteaddrbookexport.h.


Public Member Functions

void exportData ()
 KopeteAddressBookExport (QWidget *parent, Kopete::MetaContact *mc)
int showDialog ()
 ~KopeteAddressBookExport ()

Protected Member Functions

void fetchIMData ()
void fetchKABCData ()
void fetchPhoneNumbers (K3ListBox *listBox, KABC::PhoneNumber::Type type, uint &counter)
void initLabels ()
bool newValue (QComboBox *combo)
QStringList newValues (K3ListBox *listBox, uint counter)
void populateIM (const Kopete::Contact *contact, const QPixmap &icon, K3ListBox *combo, const Kopete::PropertyTmpl &property)
void populateIM (const Kopete::Contact *contact, const QPixmap &icon, QComboBox *combo, const Kopete::PropertyTmpl &property)

Protected Attributes

QPixmap mAddrBookIcon
KABC::AddressBook * mAddressBook
KABC::Addressee mAddressee
KDialog * mDialog
Kopete::MetaContact * mMetaContact
QWidget * mParent
AddressBookExportUI * mUI
uint numEmails
uint numHomePhones
uint numMobilePhones
uint numWorkPhones

Constructor & Destructor Documentation

KopeteAddressBookExport::KopeteAddressBookExport ( QWidget *  parent,
Kopete::MetaContact *  mc 
)

Definition at line 39 of file kopeteaddrbookexport.cpp.

KopeteAddressBookExport::~KopeteAddressBookExport (  ) 

Definition at line 47 of file kopeteaddrbookexport.cpp.


Member Function Documentation

void KopeteAddressBookExport::exportData (  ) 

Export the data to KABC if changed, omitting any duplicates.

Definition at line 200 of file kopeteaddrbookexport.cpp.

void KopeteAddressBookExport::fetchIMData (  )  [protected]

Populate the GUI with data from IM systems.

Definition at line 125 of file kopeteaddrbookexport.cpp.

void KopeteAddressBookExport::fetchKABCData (  )  [protected]

Populate the GUI with data from KABC.

Definition at line 66 of file kopeteaddrbookexport.cpp.

void KopeteAddressBookExport::fetchPhoneNumbers ( K3ListBox *  listBox,
KABC::PhoneNumber::Type  type,
uint &  counter 
) [protected]

Populate a listbox with a given type of phone number.

Definition at line 111 of file kopeteaddrbookexport.cpp.

void KopeteAddressBookExport::initLabels (  )  [protected]

Initialise the GUI labels with labels from KABC.

Definition at line 52 of file kopeteaddrbookexport.cpp.

bool KopeteAddressBookExport::newValue ( QComboBox *  combo  )  [protected]

Check the selected item is not the first (existing KABC) item, or the same as it.

Definition at line 274 of file kopeteaddrbookexport.cpp.

QStringList KopeteAddressBookExport::newValues ( K3ListBox *  listBox,
uint  counter 
) [protected]

Definition at line 282 of file kopeteaddrbookexport.cpp.

void KopeteAddressBookExport::populateIM ( const Kopete::Contact *  contact,
const QPixmap &  icon,
K3ListBox *  combo,
const Kopete::PropertyTmpl &  property 
) [protected]

Populate a listbox with a contact's IM data.

Definition at line 160 of file kopeteaddrbookexport.cpp.

void KopeteAddressBookExport::populateIM ( const Kopete::Contact *  contact,
const QPixmap &  icon,
QComboBox *  combo,
const Kopete::PropertyTmpl &  property 
) [protected]

Populate a combobox with a contact's IM data.

Definition at line 151 of file kopeteaddrbookexport.cpp.

int KopeteAddressBookExport::showDialog (  ) 

Display the dialog.

Returns:
a QDialog return code

Definition at line 169 of file kopeteaddrbookexport.cpp.


Member Data Documentation

QPixmap KopeteAddressBookExport::mAddrBookIcon [protected]

Definition at line 94 of file kopeteaddrbookexport.h.

KABC::AddressBook* KopeteAddressBookExport::mAddressBook [protected]

Definition at line 97 of file kopeteaddrbookexport.h.

KABC::Addressee KopeteAddressBookExport::mAddressee [protected]

Definition at line 98 of file kopeteaddrbookexport.h.

KDialog* KopeteAddressBookExport::mDialog [protected]

Definition at line 93 of file kopeteaddrbookexport.h.

Kopete::MetaContact* KopeteAddressBookExport::mMetaContact [protected]

Definition at line 96 of file kopeteaddrbookexport.h.

QWidget* KopeteAddressBookExport::mParent [protected]

Definition at line 92 of file kopeteaddrbookexport.h.

AddressBookExportUI* KopeteAddressBookExport::mUI [protected]

Definition at line 95 of file kopeteaddrbookexport.h.

uint KopeteAddressBookExport::numEmails [protected]

Definition at line 101 of file kopeteaddrbookexport.h.

uint KopeteAddressBookExport::numHomePhones [protected]

Definition at line 101 of file kopeteaddrbookexport.h.

uint KopeteAddressBookExport::numMobilePhones [protected]

Definition at line 101 of file kopeteaddrbookexport.h.

uint KopeteAddressBookExport::numWorkPhones [protected]

Definition at line 101 of file kopeteaddrbookexport.h.


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

kopete/kopete

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

kdenetwork

Skip menu "kdenetwork"
  • kget
  • kopete
  •   kopete
  •   libkopete
  •       libpapillon
  • krfb
Generated for kdenetwork 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