KABC::LDIFConverter Namespace Reference
A set of functions to convert a string with LDIF information to addressees and vice versa. More...
Functions | |
KABC_EXPORT bool | LDIFToAddressee (const QString &str, AddresseeList &addrList, QDateTime dt=QDateTime::currentDateTime()) |
KABC_EXPORT bool | addresseeToLDIF (const AddresseeList &addrList, QString &str) |
KABC_EXPORT bool | addresseeToLDIF (const Addressee &addr, QString &str) |
KABC_EXPORT QString | makeLDIFfieldString (QString field, QString value, bool allowEncode=true) KDE_DEPRECATED |
KABC_EXPORT bool | parseSingleLine (Addressee &a, Address &homeAddr, Address &workAddr, QString &line) |
KABC_EXPORT bool | splitLine (QString &line, QString &fieldname, QString &value) |
KABC_EXPORT bool | evaluatePair (Addressee &a, Address &homeAddr, Address &workAddr, QString &fieldname, QString &value) |
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
|
Converts a LDIF string to a list of addressees.
Definition at line 163 of file ldifconverter.cpp. References QValueList::append(), KABC::LDIF::attr(), QDateTime::currentDateTime(), KABC::LDIF::endLDIF(), evaluatePair(), QString::fromUtf8(), KABC::Address::isEmpty(), QString::isEmpty(), QDateTime::isValid(), QString::latin1(), QString::lower(), KABC::LDIF::nextItem(), KABC::LDIF::setLDIF(), and KABC::LDIF::val(). |
|
Converts a list of addressees to a LDIF string.
Definition at line 56 of file ldifconverter.cpp. References QValueList::begin(), QValueList< Addressee >::ConstIterator(), and QValueList::end(). |
|
Converts an addressee to a LDIF string.
Definition at line 78 of file ldifconverter.cpp. References KABC::Address::country(), KABC::dateToVCardString(), KABC::Address::ISOtoCountry(), KABC::Address::locality(), KABC::Address::postalCode(), KABC::Address::postOfficeBox(), KABC::Address::region(), QTextStream::setEncoding(), QStringList::split(), and KABC::Address::street(). |
|
Definition at line 519 of file ldifconverter.cpp. References QString::append(), QString::arg(), KCodecs::base64Encode(), QString::find(), QString::fromUtf8(), QCString::insert(), QString::insert(), QString::isEmpty(), QCString::length(), QString::length(), and QString::utf8(). |
|
No need for this function anymore - use LDIF::splitLine() + evaluatePair().
Definition at line 495 of file ldifconverter.cpp. References evaluatePair(), QString::fromUtf8(), QString::isEmpty(), QString::latin1(), and KABC::LDIF::splitLine(). |
|
No need for this function anymore - use LDIF::splitLine().
Definition at line 510 of file ldifconverter.cpp. References QString::fromUtf8(), QString::latin1(), and KABC::LDIF::splitLine(). |