.TH "KABC::LDIFConverter" kde3 "11 Jun 2005" "Version Version 3.4.1" "kabc Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KABC::LDIFConverter \- A set of functions to convert a string with \fBLDIF\fP information to addressees and vice versa.  

.PP
.SH SYNOPSIS
.br
.PP
.SS "Functions"

.in +1c
.ti -1c
.RI "KABC_EXPORT bool \fBLDIFToAddressee\fP (const \fBQString\fP &str, \fBAddresseeList\fP &addrList, \fBQDateTime\fP dt=\fBQDateTime::currentDateTime\fP())"
.br
.ti -1c
.RI "KABC_EXPORT bool \fBaddresseeToLDIF\fP (const \fBAddresseeList\fP &addrList, \fBQString\fP &str)"
.br
.ti -1c
.RI "KABC_EXPORT bool \fBaddresseeToLDIF\fP (const \fBAddressee\fP &addr, \fBQString\fP &str)"
.br
.ti -1c
.RI "KABC_EXPORT \fBQString\fP \fBmakeLDIFfieldString\fP (\fBQString\fP field, \fBQString\fP value, bool allowEncode=true) KDE_DEPRECATED"
.br
.ti -1c
.RI "KABC_EXPORT bool \fBparseSingleLine\fP (\fBAddressee\fP &a, \fBAddress\fP &homeAddr, \fBAddress\fP &workAddr, \fBQString\fP &line)"
.br
.ti -1c
.RI "KABC_EXPORT bool \fBsplitLine\fP (\fBQString\fP &line, \fBQString\fP &fieldname, \fBQString\fP &value)"
.br
.ti -1c
.RI "KABC_EXPORT bool \fBevaluatePair\fP (\fBAddressee\fP &a, \fBAddress\fP &homeAddr, \fBAddress\fP &workAddr, \fBQString\fP &fieldname, \fBQString\fP &value)"
.br
.in -1c
.SH "Detailed Description"
.PP 
A set of functions to convert a string with \fBLDIF\fP 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. 
.PP
.SH "Function Documentation"
.PP 
.SS "KABC_EXPORT bool LDIFToAddressee (const \fBQString\fP & str, AddresseeList & addrList, \fBQDateTime\fP dt = \fC\fBQDateTime::currentDateTime\fP()\fP)"
.PP
Converts a \fBLDIF\fP string to a list of addressees. 
.PP
\fBParameters:\fP
.RS 4
\fIstr\fP The vcard string. 
.br
\fIaddrList\fP The addresseelist. 
.br
\fIdt\fP The date & time value of the last modification (e.g. file modification time). 
.RE
.PP
\fBSince:\fP
.RS 4
3.2 
.RE
.PP

.SS "KABC_EXPORT bool addresseeToLDIF (const AddresseeList & addrList, \fBQString\fP & str)"
.PP
Converts a list of addressees to a \fBLDIF\fP string. 
.PP
\fBParameters:\fP
.RS 4
\fIaddrList\fP The addresseelist. 
.br
\fIstr\fP The \fBLDIF\fP string. 
.RE
.PP
\fBSince:\fP
.RS 4
3.2 
.RE
.PP

.SS "KABC_EXPORT bool addresseeToLDIF (const Addressee & addr, \fBQString\fP & str)"
.PP
Converts an addressee to a \fBLDIF\fP string. 
.PP
\fBParameters:\fP
.RS 4
\fIaddr\fP The addressee. 
.br
\fIstr\fP The \fBLDIF\fP string. 
.RE
.PP
\fBSince:\fP
.RS 4
3.2 
.RE
.PP

.SS "KABC_EXPORT \fBQString\fP makeLDIFfieldString (\fBQString\fP field, \fBQString\fP value, bool allowEncode = \fCtrue\fP)"
.PP
\fBDeprecated\fP
.RS 4
Obsoleted - please use \fBLDIF::assembleLine()\fP Returns a \fBLDIF\fP 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. 
.RE
.PP
\fBParameters:\fP
.RS 4
\fIfield\fP The LDAP field name or a complete \fBLDIF\fP field string (e.g. 'cn' or 'cn = %1\\n'). 
.br
\fIvalue\fP The value for this field. 
.br
\fIallowEncode\fP Set to false if you wish no encoding of the value. 
.RE
.PP
\fBSince:\fP
.RS 4
3.2 
.RE
.PP

.SS "KABC_EXPORT bool parseSingleLine (Addressee & a, Address & homeAddr, Address & workAddr, \fBQString\fP & line)"
.PP
No need for this function anymore - use \fBLDIF::splitLine()\fP + evaluatePair(). 
.PP
.SS "KABC_EXPORT bool splitLine (\fBQString\fP & line, \fBQString\fP & fieldname, \fBQString\fP & value)"
.PP
No need for this function anymore - use \fBLDIF::splitLine()\fP. 
.PP
.SH "Author"
.PP 
Generated automatically by Doxygen for kabc Library from the source code.
