\section{KABC::Phone\-Number Class Reference}
\label{classKABC_1_1PhoneNumber}\index{KABC::PhoneNumber@{KABC::PhoneNumber}}
Phonenumber information.  


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

Collaboration diagram for KABC::Phone\-Number:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=74pt]{classKABC_1_1PhoneNumber__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Types}
\begin{CompactItemize}
\item 
typedef {\bf QValue\-List}$<$ {\bf Phone\-Number} $>$ {\bf List}\label{classKABC_1_1PhoneNumber_w0}

\item 
typedef {\bf QValue\-List}$<$ int $>$ {\bf Type\-List}\label{classKABC_1_1PhoneNumber_w1}

\item 
enum {\bf Types} \{ \par
{\bf Home} =  1, 
{\bf Work} =  2, 
{\bf Msg} =  4, 
{\bf Pref} =  8, 
\par
{\bf Voice} =  16, 
{\bf Fax} =  32, 
{\bf Cell} =  64, 
{\bf Video} =  128, 
\par
{\bf Bbs} =  256, 
{\bf Modem} =  512, 
{\bf Car} =  1024, 
{\bf Isdn} =  2048, 
\par
{\bf Pcs} =  4096, 
{\bf Pager} =  8192
 \}
\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf Phone\-Number} ()
\item 
{\bf Phone\-Number} (const {\bf QString} \&number, int type=Home)
\item 
{\bf $\sim$Phone\-Number} ()
\item 
bool {\bf operator==} (const {\bf Phone\-Number} \&) const \label{classKABC_1_1PhoneNumber_a3}

\item 
bool {\bf operator!=} (const {\bf Phone\-Number} \&) const \label{classKABC_1_1PhoneNumber_a4}

\item 
void {\bf set\-Id} (const {\bf QString} \&id)
\item 
{\bf QString} {\bf id} () const 
\item 
void {\bf set\-Number} (const {\bf QString} \&)
\item 
{\bf QString} {\bf number} () const 
\item 
void {\bf set\-Type} (int)
\item 
int {\bf type} () const 
\item 
{\bf QString} {\bf type\-Label} () const 
\item 
{\bf QString} {\bf label} () const 
\end{CompactItemize}
\subsection*{Static Public Member Functions}
\begin{CompactItemize}
\item 
static {\bf Type\-List} {\bf type\-List} ()
\item 
static {\bf QString} {\bf type\-Label} (int type)
\item 
static {\bf QString} {\bf label} (int type)
\end{CompactItemize}
\subsection*{Friends}
\begin{CompactItemize}
\item 
KABC\_\-EXPORT {\bf QData\-Stream} \& {\bf operator$<$$<$} ({\bf QData\-Stream} \&, const {\bf Phone\-Number} \&)\label{classKABC_1_1PhoneNumber_n0}

\item 
KABC\_\-EXPORT {\bf QData\-Stream} \& {\bf operator$>$$>$} ({\bf QData\-Stream} \&, {\bf Phone\-Number} \&)\label{classKABC_1_1PhoneNumber_n1}

\end{CompactItemize}


\subsection{Detailed Description}
Phonenumber information. 

This class provides phone number information. A phone number is classified by a type. The following types are available, it's possible to use multiple types Types for a number by combining them through a logical or. 



Definition at line 38 of file phonenumber.h.

\subsection{Member Enumeration Documentation}
\index{KABC::PhoneNumber@{KABC::Phone\-Number}!Types@{Types}}
\index{Types@{Types}!KABC::PhoneNumber@{KABC::Phone\-Number}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}enum {\bf KABC::Phone\-Number::Types}}\label{classKABC_1_1PhoneNumber_w16}


\begin{itemize}
\item {\tt Home} - Home number \item {\tt Work} - Office number \item {\tt Msg} - Messaging \item {\tt Pref} - Preferred number \item {\tt Voice} - Voice \item {\tt Fax} - Fax machine \item {\tt Cell} - Cell phone \item {\tt Video} - Video phone \item {\tt Bbs} - Mailbox \item {\tt Modem} - Modem \item {\tt Car} - Car phone \item {\tt Isdn} - ISDN connection \item {\tt Pcs} - Personal Communication Service \item {\tt Pager} - Pager \end{itemize}




Definition at line 63 of file phonenumber.h.

\subsection{Constructor \& Destructor Documentation}
\index{KABC::PhoneNumber@{KABC::Phone\-Number}!PhoneNumber@{PhoneNumber}}
\index{PhoneNumber@{PhoneNumber}!KABC::PhoneNumber@{KABC::Phone\-Number}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}Phone\-Number::Phone\-Number ()}\label{classKABC_1_1PhoneNumber_a0}


Create an empty phone number object. 



Definition at line 28 of file phonenumber.cpp.\index{KABC::PhoneNumber@{KABC::Phone\-Number}!PhoneNumber@{PhoneNumber}}
\index{PhoneNumber@{PhoneNumber}!KABC::PhoneNumber@{KABC::Phone\-Number}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}Phone\-Number::Phone\-Number (const {\bf QString} \& {\em number}, int {\em type} = {\tt Home})}\label{classKABC_1_1PhoneNumber_a1}


Create a phonenumber object. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em number}]Number \item[{\em type}]Type as defined in enum. Multiple types can be specified by combining them by a logical or. \end{description}
\end{Desc}


Definition at line 34 of file phonenumber.cpp.

References number().\index{KABC::PhoneNumber@{KABC::Phone\-Number}!~PhoneNumber@{$\sim$PhoneNumber}}
\index{~PhoneNumber@{$\sim$PhoneNumber}!KABC::PhoneNumber@{KABC::Phone\-Number}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}Phone\-Number::$\sim${\bf Phone\-Number} ()}\label{classKABC_1_1PhoneNumber_a2}


Destructor. 



Definition at line 42 of file phonenumber.cpp.

\subsection{Member Function Documentation}
\index{KABC::PhoneNumber@{KABC::Phone\-Number}!setId@{setId}}
\index{setId@{setId}!KABC::PhoneNumber@{KABC::Phone\-Number}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Phone\-Number::set\-Id (const {\bf QString} \& {\em id})}\label{classKABC_1_1PhoneNumber_a5}


Sets the unique identifier. 



Definition at line 73 of file phonenumber.cpp.

References id().\index{KABC::PhoneNumber@{KABC::Phone\-Number}!id@{id}}
\index{id@{id}!KABC::PhoneNumber@{KABC::Phone\-Number}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} Phone\-Number::id () const}\label{classKABC_1_1PhoneNumber_a6}


Returns the unique identifier. 



Definition at line 78 of file phonenumber.cpp.

Referenced by set\-Id().\index{KABC::PhoneNumber@{KABC::Phone\-Number}!setNumber@{setNumber}}
\index{setNumber@{setNumber}!KABC::PhoneNumber@{KABC::Phone\-Number}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Phone\-Number::set\-Number (const {\bf QString} \&)}\label{classKABC_1_1PhoneNumber_a7}


Sets the number. 



Definition at line 83 of file phonenumber.cpp.

References number().\index{KABC::PhoneNumber@{KABC::Phone\-Number}!number@{number}}
\index{number@{number}!KABC::PhoneNumber@{KABC::Phone\-Number}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} Phone\-Number::number () const}\label{classKABC_1_1PhoneNumber_a8}


Returns the number. 



Definition at line 88 of file phonenumber.cpp.

Referenced by Phone\-Number(), and set\-Number().\index{KABC::PhoneNumber@{KABC::Phone\-Number}!setType@{setType}}
\index{setType@{setType}!KABC::PhoneNumber@{KABC::Phone\-Number}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Phone\-Number::set\-Type (int)}\label{classKABC_1_1PhoneNumber_a9}


Sets the type. 

Multiple types can be specified by combining them by a logical or. 

Definition at line 93 of file phonenumber.cpp.\index{KABC::PhoneNumber@{KABC::Phone\-Number}!type@{type}}
\index{type@{type}!KABC::PhoneNumber@{KABC::Phone\-Number}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int Phone\-Number::type () const}\label{classKABC_1_1PhoneNumber_a10}


Returns the type. 

Can be a multiple types combined by a logical or. 

Definition at line 98 of file phonenumber.cpp.

Referenced by label(), and type\-Label().\index{KABC::PhoneNumber@{KABC::Phone\-Number}!typeLabel@{typeLabel}}
\index{typeLabel@{typeLabel}!KABC::PhoneNumber@{KABC::Phone\-Number}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} Phone\-Number::type\-Label () const}\label{classKABC_1_1PhoneNumber_a11}


Returns a translated string of all types the address has. 



Definition at line 103 of file phonenumber.cpp.

References QString::append(), QValue\-List::begin(), QValue\-List::end(), label(), type(), and type\-List().

Referenced by label().\index{KABC::PhoneNumber@{KABC::Phone\-Number}!label@{label}}
\index{label@{label}!KABC::PhoneNumber@{KABC::Phone\-Number}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} Phone\-Number::label () const}\label{classKABC_1_1PhoneNumber_a12}


Returns the translated label for phone number depending on its type. 



Definition at line 122 of file phonenumber.cpp.

References type(), and type\-Label().

Referenced by type\-Label().\index{KABC::PhoneNumber@{KABC::Phone\-Number}!typeList@{typeList}}
\index{typeList@{typeList}!KABC::PhoneNumber@{KABC::Phone\-Number}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Phone\-Number::Type\-List} Phone\-Number::type\-List ()\hspace{0.3cm}{\tt  [static]}}\label{classKABC_1_1PhoneNumber_e0}


Returns a list of all available types. 



Definition at line 127 of file phonenumber.cpp.

References QValue\-List::is\-Empty().

Referenced by type\-Label().\index{KABC::PhoneNumber@{KABC::Phone\-Number}!typeLabel@{typeLabel}}
\index{typeLabel@{typeLabel}!KABC::PhoneNumber@{KABC::Phone\-Number}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} Phone\-Number::type\-Label (int {\em type})\hspace{0.3cm}{\tt  [static]}}\label{classKABC_1_1PhoneNumber_e1}


Returns the translated label for phone number type. 



Definition at line 144 of file phonenumber.cpp.\index{KABC::PhoneNumber@{KABC::Phone\-Number}!label@{label}}
\index{label@{label}!KABC::PhoneNumber@{KABC::Phone\-Number}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} Phone\-Number::label (int {\em type})\hspace{0.3cm}{\tt  [static]}}\label{classKABC_1_1PhoneNumber_e2}


Returns the translated label for phone number type. 

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


Definition at line 139 of file phonenumber.cpp.

References type\-Label().

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