.TH "KABC::ResourceSelectDialog" 3 "28 Jan 2004" "kabc Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KABC::ResourceSelectDialog \- Dialog for selecting a resource.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <resourceselectdialog.h>\fP
.PP
Inherits \fBKDialog\fP.
.PP
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBResourceSelectDialog\fP (\fBAddressBook\fP *ab, \fBQWidget\fP *parent=0, const  char *name=0)"
.br
.RI "\fIConstructor. \fP"
.ti -1c
.RI "Resource * \fBresource\fP ()"
.br
.RI "\fIReturn selected resource. \fP"
.in -1c
.SS "Static Public Member Functions"

.in +1c
.ti -1c
.RI "Resource * \fBgetResource\fP (\fBAddressBook\fP *ab, \fBQWidget\fP *parent=0)"
.br
.RI "\fIOpen a dialog showing the available resources and return the resource the user has selected. \fP"
.in -1c
.SH "Detailed Description"
.PP 
Dialog for selecting a resource. 

Example:
.PP
.PP
.nf

 KABC::Resource *res = \fBKABC::ResourceSelectDialog::getResource()\fP;
 if ( !( res ) ) {
   // no resource selected
 } else {
   // do something with resource
 }
 
.PP
 
.PP
Definition at line 49 of file resourceselectdialog.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "ResourceSelectDialog::ResourceSelectDialog (\fBAddressBook\fP * ab, \fBQWidget\fP * parent = 0, const char * name = 0)"
.PP
Constructor. \fBParameters:\fP
.RS 4
\fIab\fP The address book you want to select the resource from 
.br
\fIparent\fP The parent widget 
.br
\fIname\fP The name of the dialog 
.RE
.PP
Definition at line 35 of file resourceselectdialog.cpp.
.PP
References QDialog::accept(), KButtonBox::addButton(), KButtonBox::addStretch(), QPtrList::at(), QPtrList::count(), QMap< int, Resource * >::insert(), QListBox::insertItem(), KButtonBox::layout(), KDialog::marginHint(), KStdAccel::name(), QDialog::reject(), resource(), KABC::AddressBook::resources(), KDialog::setCaption(), QListBox::setCurrentItem(), and QGroupBox::setTitle().
.SH "Member Function Documentation"
.PP 
.SS "Resource * ResourceSelectDialog::resource ()"
.PP
Return selected resource. Definition at line 78 of file resourceselectdialog.cpp.
.PP
References QListBox::currentItem().
.PP
Referenced by getResource(), and ResourceSelectDialog().
.SS "Resource * ResourceSelectDialog::getResource (\fBAddressBook\fP * ab, \fBQWidget\fP * parent = 0)\fC [static]\fP"
.PP
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.
.PP
References QPtrList::count(), QDialog::exec(), QPtrList::first(), QPtrList::next(), resource(), and KABC::AddressBook::resources().

.SH "Author"
.PP 
Generated automatically by Doxygen for kabc Library from the source code.
