KContacts::LDIFConverter Namespace

namespace KContacts::LDIFConverter

A set of functions to convert a string with LDIF information to addressees and vice versa. More...

Header: #include <KContacts/LDIFConverter>
CMake: find_package(KF6 REQUIRED COMPONENTS Contacts)
target_link_libraries(mytarget PRIVATE KF6::Contacts)

Functions

bool LDIFToAddressee(const QString &str, KContacts::AddresseeList &addrList, QList<KContacts::ContactGroup> &contactGroupList, const QDateTime &dt = QDateTime::currentDateTime())
bool addresseeAndContactGroupToLDIF(const KContacts::AddresseeList &addrList, const QList<KContacts::ContactGroup> &contactGroupList, QString &str)
bool addresseeToLDIF(const KContacts::Addressee &addr, QString &str)
bool addresseeToLDIF(const KContacts::AddresseeList &addrList, QString &str)
bool contactGroupToLDIF(const KContacts::ContactGroup &contactGroup, QString &str)
bool contactGroupToLDIF(const KContacts::ContactGroup::List &contactGroupList, QString &str)

Detailed Description

It is useful for addressbook import- and exportfilters and might be used to read and write Mozilla and Netscape addresssbooks.

Function Documentation

bool LDIFConverter::LDIFToAddressee(const QString &str, KContacts::AddresseeList &addrList, QList<KContacts::ContactGroup> &contactGroupList, const QDateTime &dt = QDateTime::currentDateTime())

Converts a LDIF string to a list of addressees.

str The vcard string.

addrList The addresseelist.

contactGroupList the contactGroupList

dt The date & time value of the last modification (e.g. file modification time).

bool LDIFConverter::addresseeAndContactGroupToLDIF(const KContacts::AddresseeList &addrList, const QList<KContacts::ContactGroup> &contactGroupList, QString &str)

Converts a list of addressees and contactgrouplist to a LDIF string.

addrList The addresseelist.

contactGroupList The contact group list

str The LDIF string.

bool LDIFConverter::addresseeToLDIF(const KContacts::Addressee &addr, QString &str)

Converts an addressee to a LDIF string.

addr The addressee.

str The LDIF string.

bool LDIFConverter::addresseeToLDIF(const KContacts::AddresseeList &addrList, QString &str)

Converts a list of addressees to a LDIF string.

addrList The addresseelist.

str The LDIF string.

bool LDIFConverter::contactGroupToLDIF(const KContacts::ContactGroup &contactGroup, QString &str)

Converts a contact group to a LDIF string.

contactGroup The contact group

str The LDIF string.

bool LDIFConverter::contactGroupToLDIF(const KContacts::ContactGroup::List &contactGroupList, QString &str)

Converts a list of contact group to a LDIF string.

contactGroupList The contact group list

str The LDIF string.