\section{KABC::Resource\-Select\-Dialog Class Reference}
\label{classKABC_1_1ResourceSelectDialog}\index{KABC::ResourceSelectDialog@{KABC::ResourceSelectDialog}}
Dialog for selecting a resource.  


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

Inheritance diagram for KABC::Resource\-Select\-Dialog:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=94pt]{classKABC_1_1ResourceSelectDialog__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KABC::Resource\-Select\-Dialog:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=273pt]{classKABC_1_1ResourceSelectDialog__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf Resource\-Select\-Dialog} ({\bf Address\-Book} $\ast$ab, {\bf QWidget} $\ast$parent=0, const  char $\ast$name=0)
\begin{CompactList}\small\item\em Constructor. \item\end{CompactList}\item 
Resource $\ast$ {\bf resource} ()
\begin{CompactList}\small\item\em Return selected resource. \item\end{CompactList}\end{CompactItemize}
\subsection*{Static Public Member Functions}
\begin{CompactItemize}
\item 
Resource $\ast$ {\bf get\-Resource} ({\bf Address\-Book} $\ast$ab, {\bf QWidget} $\ast$parent=0)
\begin{CompactList}\small\item\em Open a dialog showing the available resources and return the resource the user has selected. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
Dialog for selecting a resource. 

Example:

\small\begin{alltt}
 KABC::Resource *res = {\bf KABC::ResourceSelectDialog::getResource()}{\rm (p.\,\pageref{classKABC_1_1ResourceSelectDialog_e0})};
 if ( !( res ) ) \{
   // no resource selected
 \} else \{
   // do something with resource
 \}
 \end{alltt}\normalsize 
 



Definition at line 49 of file resourceselectdialog.h.

\subsection{Constructor \& Destructor Documentation}
\index{KABC::ResourceSelectDialog@{KABC::Resource\-Select\-Dialog}!ResourceSelectDialog@{ResourceSelectDialog}}
\index{ResourceSelectDialog@{ResourceSelectDialog}!KABC::ResourceSelectDialog@{KABC::Resource\-Select\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}Resource\-Select\-Dialog::Resource\-Select\-Dialog ({\bf Address\-Book} $\ast$ {\em ab}, {\bf QWidget} $\ast$ {\em parent} = 0, const char $\ast$ {\em name} = 0)}\label{classKABC_1_1ResourceSelectDialog_a0}


Constructor. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em ab}]The address book you want to select the resource from \item[{\em parent}]The parent widget \item[{\em name}]The name of the dialog \end{description}
\end{Desc}


Definition at line 35 of file resourceselectdialog.cpp.

References QDialog::accept(), KButton\-Box::add\-Button(), KButton\-Box::add\-Stretch(), QPtr\-List::at(), QPtr\-List::count(), QMap$<$ int, Resource $\ast$ $>$::insert(), QList\-Box::insert\-Item(), KButton\-Box::layout(), KDialog::margin\-Hint(), KStd\-Accel::name(), QDialog::reject(), resource(), KABC::Address\-Book::resources(), KDialog::set\-Caption(), QList\-Box::set\-Current\-Item(), and QGroup\-Box::set\-Title().

\subsection{Member Function Documentation}
\index{KABC::ResourceSelectDialog@{KABC::Resource\-Select\-Dialog}!resource@{resource}}
\index{resource@{resource}!KABC::ResourceSelectDialog@{KABC::Resource\-Select\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}Resource $\ast$ Resource\-Select\-Dialog::resource ()}\label{classKABC_1_1ResourceSelectDialog_a1}


Return selected resource. 



Definition at line 78 of file resourceselectdialog.cpp.

References QList\-Box::current\-Item().

Referenced by get\-Resource(), and Resource\-Select\-Dialog().\index{KABC::ResourceSelectDialog@{KABC::Resource\-Select\-Dialog}!getResource@{getResource}}
\index{getResource@{getResource}!KABC::ResourceSelectDialog@{KABC::Resource\-Select\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}Resource $\ast$ Resource\-Select\-Dialog::get\-Resource ({\bf Address\-Book} $\ast$ {\em ab}, {\bf QWidget} $\ast$ {\em parent} = 0)\hspace{0.3cm}{\tt  [static]}}\label{classKABC_1_1ResourceSelectDialog_e0}


Open a dialog showing the available resources and return the resource the user has selected. 

Returns 0, if the dialog was canceled. 

Definition at line 86 of file resourceselectdialog.cpp.

References QPtr\-List::count(), QDialog::exec(), QPtr\-List::first(), QPtr\-List::next(), resource(), and KABC::Address\-Book::resources().

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