\section{KABC::VCard\-Converter Class Reference}
\label{classKABC_1_1VCardConverter}\index{KABC::VCardConverter@{KABC::VCardConverter}}
Class to converting contact objects into v\-Card format and vice versa.  


{\tt \#include $<$vcardconverter.h$>$}

\subsection*{Public Types}
\begin{CompactItemize}
\item 
enum {\bf Version} \{ {\bf v2\_\-1}, 
{\bf v3\_\-0}
 \}
\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf VCard\-Converter} ()
\item 
{\bf $\sim$VCard\-Converter} ()
\item 
{\bf QString} {\bf create\-VCard} (const {\bf Addressee} \&addr, {\bf Version} version=v3\_\-0)
\item 
{\bf QString} {\bf create\-VCards} ({\bf Addressee::List} list, {\bf Version} version=v3\_\-0)
\item 
{\bf Addressee} {\bf parse\-VCard} (const {\bf QString} \&vcard)
\item 
{\bf Addressee::List} {\bf parse\-VCards} (const {\bf QString} \&vcard)
\item 
bool {\bf v\-Card\-To\-Addressee} (const {\bf QString} \&, {\bf Addressee} \&, {\bf Version} version=v3\_\-0) KDE\_\-DEPRECATED
\item 
bool {\bf addressee\-To\-VCard} (const {\bf Addressee} \&, {\bf QString} \&, {\bf Version} version=v3\_\-0) KDE\_\-DEPRECATED
\end{CompactItemize}


\subsection{Detailed Description}
Class to converting contact objects into v\-Card format and vice versa. 

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

Example:



\footnotesize\begin{verbatim}  QFile file( "myfile.vcf" );
  file.open( IO_ReadOnly );
  
  QTextStream s( &file );
  s.setEncoding( QTextStream::UnicodeUTF8 );

  QString data = s.read();

  VCardConverter converter;
  Addressee::List list = converter.parseVCards( data );

  // print formatted name of first contact
  qDebug( "name=%s", list[ 0 ].formattedName().latin1() );
\end{verbatim}
\normalsize
 



Definition at line 56 of file vcardconverter.h.

\subsection{Member Enumeration Documentation}
\index{KABC::VCardConverter@{KABC::VCard\-Converter}!Version@{Version}}
\index{Version@{Version}!KABC::VCardConverter@{KABC::VCard\-Converter}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}enum {\bf KABC::VCard\-Converter::Version}}\label{classKABC_1_1VCardConverter_w2}


\begin{itemize}
\item v2\_\-1 - VCard format version 2.1 \item v3\_\-0 - VCard format version 3.0 \end{itemize}




Definition at line 64 of file vcardconverter.h.

\subsection{Constructor \& Destructor Documentation}
\index{KABC::VCardConverter@{KABC::VCard\-Converter}!VCardConverter@{VCardConverter}}
\index{VCardConverter@{VCardConverter}!KABC::VCardConverter@{KABC::VCard\-Converter}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KABC::VCard\-Converter::VCard\-Converter ()}\label{classKABC_1_1VCardConverter_a0}


Constructor. 

\index{KABC::VCardConverter@{KABC::VCard\-Converter}!~VCardConverter@{$\sim$VCardConverter}}
\index{~VCardConverter@{$\sim$VCardConverter}!KABC::VCardConverter@{KABC::VCard\-Converter}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KABC::VCard\-Converter::$\sim${\bf VCard\-Converter} ()}\label{classKABC_1_1VCardConverter_a1}


Destructor. 



\subsection{Member Function Documentation}
\index{KABC::VCardConverter@{KABC::VCard\-Converter}!createVCard@{createVCard}}
\index{createVCard@{createVCard}!KABC::VCardConverter@{KABC::VCard\-Converter}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KABC::VCard\-Converter::create\-VCard (const {\bf Addressee} \& {\em addr}, {\bf Version} {\em version} = {\tt v3\_\-0})}\label{classKABC_1_1VCardConverter_a2}


Creates a string in v\-Card format which contains the given contact. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em addr}]The contact object \item[{\em version}]The version of the generated v\-Card format \end{description}
\end{Desc}
\index{KABC::VCardConverter@{KABC::VCard\-Converter}!createVCards@{createVCards}}
\index{createVCards@{createVCards}!KABC::VCardConverter@{KABC::VCard\-Converter}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KABC::VCard\-Converter::create\-VCards ({\bf Addressee::List} {\em list}, {\bf Version} {\em version} = {\tt v3\_\-0})}\label{classKABC_1_1VCardConverter_a3}


Creates a string in v\-Card format which contains the given list of contact. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em list}]The list of contact objects \item[{\em version}]The version of the generated v\-Card format \end{description}
\end{Desc}


Referenced by KABC::VCard\-Format\-Plugin::save(), and KABC::VCard\-Format\-Plugin::save\-All().\index{KABC::VCardConverter@{KABC::VCard\-Converter}!parseVCard@{parseVCard}}
\index{parseVCard@{parseVCard}!KABC::VCardConverter@{KABC::VCard\-Converter}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Addressee} KABC::VCard\-Converter::parse\-VCard (const {\bf QString} \& {\em vcard})}\label{classKABC_1_1VCardConverter_a4}


Parses a string in v\-Card format and returns the first contact. 

\index{KABC::VCardConverter@{KABC::VCard\-Converter}!parseVCards@{parseVCards}}
\index{parseVCards@{parseVCards}!KABC::VCardConverter@{KABC::VCard\-Converter}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Addressee::List} KABC::VCard\-Converter::parse\-VCards (const {\bf QString} \& {\em vcard})}\label{classKABC_1_1VCardConverter_a5}


Parses a string in v\-Card format and returns a list of contact objects. 



Referenced by KABC::VCard\-Format\-Plugin::load(), and KABC::VCard\-Format\-Plugin::load\-All().\index{KABC::VCardConverter@{KABC::VCard\-Converter}!vCardToAddressee@{vCardToAddressee}}
\index{vCardToAddressee@{vCardToAddressee}!KABC::VCardConverter@{KABC::VCard\-Converter}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KABC::VCard\-Converter::v\-Card\-To\-Addressee (const {\bf QString} \&, {\bf Addressee} \&, {\bf Version} {\em version} = {\tt v3\_\-0})}\label{classKABC_1_1VCardConverter_a6}


\begin{Desc}
\item[{\bf Deprecated}]\end{Desc}
\index{KABC::VCardConverter@{KABC::VCard\-Converter}!addresseeToVCard@{addresseeToVCard}}
\index{addresseeToVCard@{addresseeToVCard}!KABC::VCardConverter@{KABC::VCard\-Converter}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KABC::VCard\-Converter::addressee\-To\-VCard (const {\bf Addressee} \&, {\bf QString} \&, {\bf Version} {\em version} = {\tt v3\_\-0})}\label{classKABC_1_1VCardConverter_a7}


\begin{Desc}
\item[{\bf Deprecated}]\end{Desc}


The documentation for this class was generated from the following file:\begin{CompactItemize}
\item 
vcardconverter.h\end{CompactItemize}
