kaddressbook
KAB::XXPort Class Reference
Inheritance diagram for KAB::XXPort:

Detailed Description
Definition at line 68 of file xxport.h.
Public Slots | |
virtual bool | exportContacts (const KABC::AddresseeList &list, const QString &identifier) |
virtual KABC::AddresseeList | importContacts (const QString &identifier) const |
Signals | |
void | exportActivated (const QString &, const QString &) |
void | importActivated (const QString &, const QString &) |
Public Member Functions | |
XXPort (KABC::AddressBook *ab, QWidget *parent, const char *name=0) | |
~XXPort () | |
virtual QString | identifier () const=0 |
virtual bool | requiresSorting () const |
void | setKApplication (KApplication *app) |
void | processEvents () const |
Protected Member Functions | |
void | createImportAction (const QString &label, const QString &identifier=QString::null) |
void | createExportAction (const QString &label, const QString &identifier=QString::null) |
KABC::AddressBook * | addressBook () const |
QWidget * | parentWidget () const |
Member Function Documentation
virtual QString KAB::XXPort::identifier | ( | ) | const [pure virtual] |
Returns the unique identifier of this xxport modul, it should be the lowercase name of the import/export format e.g.
'vcard'
Implemented in BookmarkXXPort, CSVXXPort, EudoraXXPort, GNOKIIXXPort, KDE2XXPort, LDIFXXPort, OperaXXPort, PABXXPort, and VCardXXPort.
virtual bool KAB::XXPort::requiresSorting | ( | ) | const [inline, virtual] |
Reimplement this method if the XXPortManager shall pass a sorted list to exportContacts().
void XXPort::setKApplication | ( | KApplication * | app | ) |
void XXPort::processEvents | ( | ) | const |
Processes outstanding KApplication events.
It should be called occasionally when the import/export filter is busy performing a long operation (e.g. reading from slow external devices).
- See also:
- : QApplication::processEvents()
Definition at line 112 of file xxport.cpp.
bool XXPort::exportContacts | ( | const KABC::AddresseeList & | list, | |
const QString & | identifier | |||
) | [virtual, slot] |
Reimplement this method for exporting the contacts.
Reimplemented in BookmarkXXPort, CSVXXPort, GNOKIIXXPort, LDIFXXPort, and VCardXXPort.
Definition at line 65 of file xxport.cpp.
KABC::AddresseeList XXPort::importContacts | ( | const QString & | identifier | ) | const [virtual, slot] |
Reimplement this method for importing the contacts.
Reimplemented in CSVXXPort, EudoraXXPort, GNOKIIXXPort, KDE2XXPort, LDIFXXPort, OperaXXPort, PABXXPort, and VCardXXPort.
Definition at line 71 of file xxport.cpp.
void KAB::XXPort::exportActivated | ( | const QString & | , | |
const QString & | ||||
) | [signal] |
Emitted whenever the export action is activated.
The parameter contains the identifier() for unique identification.
void KAB::XXPort::importActivated | ( | const QString & | , | |
const QString & | ||||
) | [signal] |
Emitted whenever the import action is activated.
The parameter contains the identifier() for unique identification.
void XXPort::createImportAction | ( | const QString & | label, | |
const QString & | identifier = QString::null | |||
) | [protected] |
Create the import action.
The identifier is passed in the import slot.
Definition at line 77 of file xxport.cpp.
void XXPort::createExportAction | ( | const QString & | label, | |
const QString & | identifier = QString::null | |||
) | [protected] |
Create the export action.
The identifier is passed in the export slot.
Definition at line 87 of file xxport.cpp.
KABC::AddressBook * XXPort::addressBook | ( | ) | const [protected] |
QWidget * XXPort::parentWidget | ( | ) | const [protected] |
Returns a pointer to the parent widget.
It can be used as parent for message boxes.
Definition at line 102 of file xxport.cpp.
The documentation for this class was generated from the following files: