• Skip to content
  • Skip to link menu
KDE 4.4 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • Sitemap
  • Contact Us
 

kabc

KABC::LDIFConverter

KABC::LDIFConverter Namespace Reference

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

Functions

bool addresseeToLDIF (const Addressee &addr, QString &str)
bool addresseeToLDIF (const AddresseeList &addrList, QString &str)
bool evaluatePair (Addressee &a, Address &homeAddr, Address &workAddr, QString &fieldname, QString &value)
bool LDIFToAddressee (const QString &str, AddresseeList &addrList, 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

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

Converts an addressee to a LDIF string.

Parameters:
addr The addressee.
str The LDIF string.

Definition at line 76 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.

Definition at line 54 of file ldifconverter.cpp.

bool KABC::LDIFConverter::evaluatePair ( Addressee &  a,
Address &  homeAddr,
Address &  workAddr,
QString &  fieldname,
QString &  value 
)

For internal use only.

Evaluates fieldname and sets the value at the addressee or the address objects when appropriate.

Parameters:
a The addressee to store information into
homeAddr The home address to store respective information into
workAddr The work address to store respective information into
fieldname LDIF field name to evaluate
value The value of the field addressed by fieldname

Definition at line 250 of file ldifconverter.cpp.

bool KABC::LDIFConverter::LDIFToAddressee ( const QString &  str,
AddresseeList &  addrList,
const 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).

Definition at line 183 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

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kblog
  • kcal
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.6.1
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