• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • @topname@
  • Sitemap
  • Contact Us
 

kabc

KABC::LDIFConverter

KABC::LDIFConverter Namespace Reference


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.


Functions

KABC_EXPORT bool LDIFToAddressee (const QString &str, AddresseeList &addrList, QDateTime dt=QDateTime::currentDateTime())
KABC_EXPORT bool addresseeToLDIF (const AddresseeList &addrList, QString &str)
KABC_EXPORT bool addresseeToLDIF (const Addressee &addr, QString &str)
KABC_EXPORT QString makeLDIFfieldString (QString field, QString value, bool allowEncode=true) KDE_DEPRECATED
KABC_EXPORT bool parseSingleLine (Addressee &a, Address &homeAddr, Address &workAddr, QString &line)
KABC_EXPORT bool splitLine (QString &line, QString &fieldname, QString &value)
KABC_EXPORT bool evaluatePair (Addressee &a, Address &homeAddr, Address &workAddr, QString &fieldname, QString &value)

Function Documentation

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

Converts an addressee to a LDIF string.

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

Definition at line 78 of file ldifconverter.cpp.

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

Converts a list of addressees to a LDIF string.

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

Definition at line 56 of file ldifconverter.cpp.

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

Converts a LDIF string to a list of addressees.

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

Definition at line 169 of file ldifconverter.cpp.

QString KABC::LDIFConverter::makeLDIFfieldString ( QString  field,
QString  value,
bool  allowEncode = true 
)

Deprecated:
Obsoleted - please use LDIF::assembleLine() 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\n").
value The value for this field.
allowEncode Set to false if you wish no encoding of the value.
Since:
3.2

Definition at line 525 of file ldifconverter.cpp.

bool KABC::LDIFConverter::parseSingleLine ( Addressee &  a,
Address &  homeAddr,
Address &  workAddr,
QString &  line 
)

No need for this function anymore - use LDIF::splitLine() + evaluatePair().

Definition at line 501 of file ldifconverter.cpp.

bool KABC::LDIFConverter::splitLine ( QString &  line,
QString &  fieldname,
QString &  value 
)

No need for this function anymore - use LDIF::splitLine().

Definition at line 516 of file ldifconverter.cpp.

kabc

Skip menu "kabc"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

@topname@

Skip menu "@topname@"
  •     kdnssd-avahi
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for @topname@ by doxygen 1.5.5
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal