KContacts::LDIFConverter
Functions | |
KCONTACTS_EXPORT bool | addresseeAndContactGroupToLDIF (const AddresseeList &addrList, const QList< KContacts::ContactGroup > &contactGroupList, QString &str) |
KCONTACTS_EXPORT bool | addresseeToLDIF (const Addressee &addr, QString &str) |
KCONTACTS_EXPORT bool | addresseeToLDIF (const AddresseeList &addrList, QString &str) |
KCONTACTS_EXPORT bool | contactGroupToLDIF (const ContactGroup &contactGroup, QString &str) |
KCONTACTS_EXPORT bool | contactGroupToLDIF (const ContactGroup::List &contactGroupList, QString &str) |
KCONTACTS_EXPORT bool | LDIFToAddressee (const QString &str, AddresseeList &addrList, QList< KContacts::ContactGroup > &contactGroupList, const QDateTime &dt=QDateTime::currentDateTime()) |
Detailed Description
A set of functions to convert a string with LDIF information to addressees and vice versa.
It is useful for addressbook import- and exportfilters and might be used to read and write Mozilla and Netscape addresssbooks.
Function Documentation
◆ addresseeAndContactGroupToLDIF()
KCONTACTS_EXPORT bool KContacts::LDIFConverter::addresseeAndContactGroupToLDIF | ( | const AddresseeList & | addrList, |
const QList< KContacts::ContactGroup > & | contactGroupList, | ||
QString & | str ) |
Converts a list of addressees and contactgrouplist to a LDIF string.
- Parameters
-
addrList The addresseelist. contactGroupList The contact group list str The LDIF string.
◆ addresseeToLDIF() [1/2]
Converts an addressee to a LDIF string.
- Parameters
-
addr The addressee. str The LDIF string.
Definition at line 140 of file ldifconverter.cpp.
◆ addresseeToLDIF() [2/2]
bool KContacts::LDIFConverter::addresseeToLDIF | ( | const AddresseeList & | addrList, |
QString & | str ) |
Converts a list of addressees to a LDIF string.
- Parameters
-
addrList The addresseelist. str The LDIF string.
Definition at line 121 of file ldifconverter.cpp.
◆ contactGroupToLDIF() [1/2]
bool KContacts::LDIFConverter::contactGroupToLDIF | ( | const ContactGroup & | contactGroup, |
QString & | str ) |
Converts a contact group to a LDIF string.
- Parameters
-
contactGroup The contact group str The LDIF string.
Definition at line 88 of file ldifconverter.cpp.
◆ contactGroupToLDIF() [2/2]
bool KContacts::LDIFConverter::contactGroupToLDIF | ( | const ContactGroup::List & | contactGroupList, |
QString & | str ) |
Converts a list of contact group to a LDIF string.
- Parameters
-
contactGroupList The contact group list str The LDIF string.
Definition at line 108 of file ldifconverter.cpp.
◆ LDIFToAddressee()
KCONTACTS_EXPORT bool KContacts::LDIFConverter::LDIFToAddressee | ( | const QString & | str, |
AddresseeList & | addrList, | ||
QList< KContacts::ContactGroup > & | contactGroupList, | ||
const QDateTime & | dt = QDateTime::currentDateTime() ) |
Converts a LDIF string to a list of addressees.
- Parameters
-
str The vcard string. addrList The addresseelist. contactGroupList the contactGroupList dt The date & time value of the last modification (e.g. file modification time).
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:01:27 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.