KContacts::LDIFConverter

KContacts::LDIFConverter Namespace Reference

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
addrListThe addresseelist.
contactGroupListThe contact group list
strThe LDIF string.

◆ addresseeToLDIF() [1/2]

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

Converts an addressee to a LDIF string.

Parameters
addrThe addressee.
strThe 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
addrListThe addresseelist.
strThe 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
contactGroupThe contact group
strThe 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
contactGroupListThe contact group list
strThe 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
strThe vcard string.
addrListThe addresseelist.
contactGroupListthe contactGroupList
dtThe date & time value of the last modification (e.g. file modification time).
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:10 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.