KABC::ResourceSelectDialog Class Reference
Dialog for selecting a resource. More...
#include <resourceselectdialog.h>
Inheritance diagram for KABC::ResourceSelectDialog:

Public Member Functions | |
ResourceSelectDialog (AddressBook *ab, QWidget *parent=0, const char *name=0) | |
Constructor. | |
Resource * | resource () |
Return selected resource. | |
Static Public Member Functions | |
Resource * | getResource (AddressBook *ab, QWidget *parent=0) |
Open a dialog showing the available resources and return the resource the user has selected. |
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
|
Constructor.
Definition at line 35 of file resourceselectdialog.cpp. 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(). |
Member Function Documentation
|
Return selected resource.
Definition at line 78 of file resourceselectdialog.cpp. References QListBox::currentItem(). Referenced by getResource(), and ResourceSelectDialog(). |
|
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 QPtrList::count(), QDialog::exec(), QPtrList::first(), QPtrList::next(), resource(), and KABC::AddressBook::resources(). |
The documentation for this class was generated from the following files: