KContacts::LDIFConverter

KContacts::LDIFConverter Namespace Reference

Functions

KCONTACTS_EXPORT bool addresseeAndContactGroupToLDIF (const AddresseeList &addrList, const QVector< KContacts::ContactGroup > &contactGroupList, QString &str)
 
KCONTACTS_EXPORT bool addresseeToLDIF (const AddresseeList &addrList, QString &str)
 
KCONTACTS_EXPORT bool addresseeToLDIF (const Addressee &addr, QString &str)
 
KCONTACTS_EXPORT bool contactGroupToLDIF (const ContactGroup::List &contactGroupList, QString &str)
 
KCONTACTS_EXPORT bool contactGroupToLDIF (const ContactGroup &contactGroup, QString &str)
 
KCONTACTS_EXPORT bool LDIFToAddressee (const QString &str, AddresseeList &addrList, QVector< 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

KCONTACTS_EXPORT bool KContacts::LDIFConverter::addresseeAndContactGroupToLDIF ( const AddresseeList addrList,
const QVector< 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.
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 114 of file ldifconverter.cpp.

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 129 of file ldifconverter.cpp.

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 99 of file ldifconverter.cpp.

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 79 of file ldifconverter.cpp.

KCONTACTS_EXPORT bool KContacts::LDIFConverter::LDIFToAddressee ( const QString str,
AddresseeList addrList,
QVector< 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-2020 The KDE developers.
Generated on Mon Sep 21 2020 22:55:33 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.