Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

KABC::ResourceSelectDialog Class Reference

#include <resourceselectdialog.h>

Inheritance diagram for KABC::ResourceSelectDialog:

KDialog List of all members.

Public Methods

 ResourceSelectDialog (AddressBook *ab, QWidget *parent=0, const char *name=0)
Resource * resource ()

Static Public Methods

Resource * getResource (AddressBook *ab, QWidget *parent=0)

Detailed Description

Dialog for selecting a resource.

Example:

 KABC::Resource *res = KABC::ResourceSelectDialog::getResource();
 if ( !( res ) ) {
   // no resource selected
 } else {
   // do something with resource
 }
 

Definition at line 49 of file resourceselectdialog.h.


Constructor & Destructor Documentation

KABC::ResourceSelectDialog::ResourceSelectDialog AddressBook   ab,
QWidget *    parent = 0,
const char *    name = 0
 

Constructor.

Parameters:
ab  The address book you want to select the resource from
parent  The parent widget
name  The name of the dialog


Member Function Documentation

Resource* KABC::ResourceSelectDialog::getResource AddressBook   ab,
QWidget *    parent = 0
[static]
 

Open a dialog showing the available resources and return the resource the user has selected. Returns 0, if the dialog was canceled.

Resource* KABC::ResourceSelectDialog::resource  
 

Return selected resource.


The documentation for this class was generated from the following file:
Generated on Wed Aug 13 23:30:32 2003 for kdelibs by doxygen1.2.18