• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.8.3 API Reference
  • KDE Home
  • Contact Us
 

kabc

  • KABC
  • LDIFConverter
Functions
KABC::LDIFConverter Namespace Reference

Functions

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

Converts a list of addressees to a LDIF string.

Parameters:
addrListThe addresseelist.
strThe LDIF string.

Definition at line 54 of file ldifconverter.cpp.

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

Converts an addressee to a LDIF string.

Parameters:
addrThe addressee.
strThe LDIF string.

Definition at line 76 of file ldifconverter.cpp.

bool KABC::LDIFConverter::evaluatePair ( Addressee &  a,
Address &  homeAddr,
Address &  workAddr,
QString &  fieldname,
QString &  value,
int &  birthday,
int &  birthmonth,
int &  birthyear 
)
Evaluates @p fieldname and sets the @p value at the addressee or the address
objects when appropriate.

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

Definition at line 271 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:
strThe vcard string.
addrListThe addresseelist.
dtThe date & time value of the last modification (e.g. file modification time).

Definition at line 194 of file ldifconverter.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon Apr 30 2012 21:49:56 by doxygen 1.8.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kabc

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

kdepimlibs-4.8.3 API Reference

Skip menu "kdepimlibs-4.8.3 API Reference"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal