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

tdeabc

  • TDEABC
  • VCardConverter
Public Types | Public Member Functions | List of all members
TDEABC::VCardConverter Class Reference

#include <vcardconverter.h>

Public Types

enum  Version { v2_1 , v3_0 }
 

Public Member Functions

 VCardConverter ()
 
 ~VCardConverter ()
 
TQString createVCard (const Addressee &addr, Version version=v3_0)
 
TQString createVCards (Addressee::List list, Version version=v3_0)
 
Addressee parseVCard (const TQString &vcard)
 
Addressee::List parseVCards (const TQString &vcard)
 
bool vCardToAddressee (const TQString &, Addressee &, Version version=v3_0) TDE_DEPRECATED
 
bool addresseeToVCard (const Addressee &, TQString &, Version version=v3_0) TDE_DEPRECATED
 

Detailed Description

Class to converting contact objects into vCard format and vice versa.

This class implements reading and writing of contact using from/to the vCard format. Currently vCard version 2.1 and 3.0 is supported.

Example:

TQFile file( "myfile.vcf" );
file.open( IO_ReadOnly );
TQString data = file.readAll();
VCardConverter converter;
Addressee::List list = converter.parseVCards( data );
// print formatted name of first contact
tqDebug( "name=%s", list[ 0 ].formattedName().latin1() );
TDEABC::VCardConverter
Class to converting contact objects into vCard format and vice versa.
Definition: vcardconverter.h:54
TDEABC::VCardConverter::parseVCards
Addressee::List parseVCards(const TQString &vcard)
Parses a string in vCard format and returns a list of contact objects.
Definition: vcardconverter.cpp:68

Definition at line 53 of file vcardconverter.h.

Member Enumeration Documentation

◆ Version

enum TDEABC::VCardConverter::Version
  • v2_1 - VCard format version 2.1
  • v3_0 - VCard format version 3.0

Definition at line 61 of file vcardconverter.h.

Constructor & Destructor Documentation

◆ VCardConverter()

VCardConverter::VCardConverter ( )

Constructor.

Definition at line 35 of file vcardconverter.cpp.

◆ ~VCardConverter()

VCardConverter::~VCardConverter ( )

Destructor.

Definition at line 40 of file vcardconverter.cpp.

Member Function Documentation

◆ addresseeToVCard()

bool VCardConverter::addresseeToVCard ( const Addressee &  addr,
TQString &  str,
Version  version = v3_0 
)
Deprecated:

Definition at line 90 of file vcardconverter.cpp.

◆ createVCard()

TQString VCardConverter::createVCard ( const Addressee &  addr,
Version  version = v3_0 
)

Creates a string in vCard format which contains the given contact.

Parameters
addrThe contact object
versionThe version of the generated vCard format

Definition at line 46 of file vcardconverter.cpp.

◆ createVCards()

TQString VCardConverter::createVCards ( Addressee::List  list,
Version  version = v3_0 
)

Creates a string in vCard format which contains the given list of contact.

Parameters
listThe list of contact objects
versionThe version of the generated vCard format

Definition at line 54 of file vcardconverter.cpp.

◆ parseVCard()

Addressee VCardConverter::parseVCard ( const TQString &  vcard)

Parses a string in vCard format and returns the first contact.

Definition at line 61 of file vcardconverter.cpp.

◆ parseVCards()

Addressee::List VCardConverter::parseVCards ( const TQString &  vcard)

Parses a string in vCard format and returns a list of contact objects.

Definition at line 68 of file vcardconverter.cpp.

◆ vCardToAddressee()

bool VCardConverter::vCardToAddressee ( const TQString &  str,
Addressee &  addr,
Version  version = v3_0 
)
Deprecated:

Definition at line 77 of file vcardconverter.cpp.


The documentation for this class was generated from the following files:
  • vcardconverter.h
  • vcardconverter.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.