kabc Library API Documentation

KABC::LDIFConverter Namespace Reference

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


Functions

bool LDIFToAddressee (const QString &str, AddresseeList &addrList, QDateTime dt=QDateTime::currentDateTime())
bool addresseeToLDIF (const AddresseeList &addrList, QString &str)
bool addresseeToLDIF (const Addressee &addr, QString &str)
QString makeLDIFfieldString (QString field, QString value, bool allowEncode=true)


Detailed Description

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

ble for searches on LDAP servers, for addressbook import- and exportfilters and might be used to read and write Mozilla and Netscape addresssbooks.


Function Documentation

bool LDIFToAddressee const QString   str,
AddresseeList   addrList,
QDateTime    dt = QDateTime::currentDateTime()
 

Converts a LDIF string to a list of addressees.

Parameters:
str  The vcard string.
addr  The addresseelist.
dt  The date & time value of the last modification (e.g. file modification time).
Since:
3.2

bool addresseeToLDIF const AddresseeList   addrList,
QString   str
 

Converts a list of addressees to a LDIF string.

Parameters:
addr  The addresseelist.
str  The LDIF string.
Since:
3.2

bool addresseeToLDIF const Addressee   addr,
QString   str
 

Converts an addressee to a LDIF string.

Parameters:
addr  The addressee.
str  The LDIF string.
Since:
3.2

QString makeLDIFfieldString QString    field,
QString    value,
bool    allowEncode = true
 

Returns a LDIF compatible string representing a given field/value pair.

If necessary, the value parameter will be base64encoded and split into multiple. This function will return an empty string if the given value is empty.

Parameters:
field  The LDAP field name or a complete LDIF field string (e.g. "cn" or "cn = %1
").
value  The value for this field.
allowEncode  Set to false if you wish no encoding of the value.
Since:
3.2

KDE Logo
This file is part of the documentation for kabc Library Version 3.2.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Feb 4 12:36:46 2004 by doxygen 1.2.18 written by Dimitri van Heesch, © 1997-2003