• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeabc
 

tdeabc

  • TDEABC
  • LDIFConverter
Functions
TDEABC::LDIFConverter Namespace Reference

Functions

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

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

◆ addresseeToLDIF() [1/2]

bool TDEABC::LDIFConverter::addresseeToLDIF ( const Addressee &  addr,
TQString &  str 
)

Converts an addressee to a LDIF string.

Parameters
addrThe addressee.
strThe LDIF string.
Since
3.2

Definition at line 78 of file ldifconverter.cpp.

◆ addresseeToLDIF() [2/2]

bool TDEABC::LDIFConverter::addresseeToLDIF ( const AddresseeList &  addrList,
TQString &  str 
)

Converts a list of addressees to a LDIF string.

Parameters
addrListThe addresseelist.
strThe LDIF string.
Since
3.2

Definition at line 56 of file ldifconverter.cpp.

◆ evaluatePair()

bool TDEABC::LDIFConverter::evaluatePair ( Addressee &  a,
Address &  homeAddr,
Address &  workAddr,
TQString &  fieldname,
TQString &  value 
)

Definition at line 234 of file ldifconverter.cpp.

◆ LDIFToAddressee()

bool TDEABC::LDIFConverter::LDIFToAddressee ( const TQString &  str,
AddresseeList &  addrList,
TQDateTime  dt = TQDateTime::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).
Since
3.2

Definition at line 169 of file ldifconverter.cpp.

◆ makeLDIFfieldString()

TQString TDEABC::LDIFConverter::makeLDIFfieldString ( TQString  field,
TQString  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
fieldThe LDAP field name or a complete LDIF field string (e.g. "cn" or "cn = %1\n").
valueThe value for this field.
allowEncodeSet to false if you wish no encoding of the value.
Since
3.2

Definition at line 525 of file ldifconverter.cpp.

◆ parseSingleLine()

bool TDEABC::LDIFConverter::parseSingleLine ( Addressee &  a,
Address &  homeAddr,
Address &  workAddr,
TQString &  line 
)

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

Definition at line 501 of file ldifconverter.cpp.

◆ splitLine()

bool TDEABC::LDIFConverter::splitLine ( TQString &  line,
TQString &  fieldname,
TQString &  value 
)

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

Definition at line 516 of file ldifconverter.cpp.

tdeabc

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

tdeabc

Skip menu "tdeabc"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeabc by doxygen 1.9.4
This website is maintained by Timothy Pearson.