kabc
Functions | |
bool | addresseeAndContactGroupToLDIF (const AddresseeList &addrList, const ContactGroup::List &contactGroupList, QString &str) |
bool | addresseeToLDIF (const AddresseeList &addrList, QString &str) |
bool | addresseeToLDIF (const Addressee &addr, QString &str) |
bool | contactGroupToLDIF (const ContactGroup::List &contactGroupList, QString &str) |
bool | contactGroupToLDIF (const ContactGroup &contactGroup, QString &str) |
bool | evaluatePair (Addressee &a, Address &homeAddr, Address &workAddr, QString &fieldname, QString &value, int &birthday, int &birthmonth, int &birthyear, ContactGroup &contactGroup) |
bool | LDIFToAddressee (const QString &str, AddresseeList &addrList, const QDateTime &dt=QDateTime::currentDateTime()) |
bool | LDIFToAddressee (const QString &str, AddresseeList &addrList, ContactGroup::List &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
bool KABC::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 54 of file ldifconverter.cpp.
Converts an addressee to a LDIF string.
- Parameters
-
addr The addressee. str The LDIF string.
Definition at line 118 of file ldifconverter.cpp.
bool KABC::LDIFConverter::evaluatePair | ( | Addressee & | a, |
Address & | homeAddr, | ||
Address & | workAddr, | ||
QString & | fieldname, | ||
QString & | value, | ||
int & | birthday, | ||
int & | birthmonth, | ||
int & | birthyear, | ||
ContactGroup & | contactGroup | ||
) |
Evaluates fieldname
and sets the value
at the addressee or the address objects when appropriate.
- Parameters
-
a The addressee to store information into homeAddr The home address to store respective information into workAddr The work address to store respective information into fieldname LDIF field name to evaluate value The value of the field addressed by fieldname
Definition at line 334 of file ldifconverter.cpp.
bool KABC::LDIFConverter::LDIFToAddressee | ( | const QString & | str, |
AddresseeList & | addrList, | ||
const QDateTime & | dt = QDateTime::currentDateTime() |
||
) |
Converts a LDIF string to a list of addressees.
- Parameters
-
str The vcard string. addrList The addresseelist. dt The date & time value of the last modification (e.g. file modification time).
Definition at line 327 of file ldifconverter.cpp.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:39 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.