kresources
KRES::SelectDialog Class Reference
Dialog for selecting a resource. More...
#include <selectdialog.h>
Inherits KDialog.
Public Member Functions | |
| Resource * | resource () |
| SelectDialog (QList< Resource * > list, QWidget *parent=0) | |
| ~SelectDialog () | |
Static Public Member Functions | |
| static Resource * | getResource (QList< Resource * > list, QWidget *parent=0) |
Detailed Description
Dialog for selecting a resource.
Example:
QList<Resource *> list = ... // can be retrived from KRES::Manager (e.g. KABC::AddressBook) Resource *res = SelectDialog::getResource( list, parentWdg ); if ( !res ) { // no resource selected } else { // do something with resource }
Definition at line 56 of file selectdialog.h.
Constructor & Destructor Documentation
| SelectDialog::SelectDialog | ( | QList< Resource * > | list, | |
| QWidget * | parent = 0 | |||
| ) | [explicit] |
Constructor.
- Parameters:
-
list The list of available resources parent The parent widget
Definition at line 44 of file selectdialog.cpp.
| SelectDialog::~SelectDialog | ( | ) |
Destructor.
Definition at line 88 of file selectdialog.cpp.
Member Function Documentation
Opens a dialog showing the available resources and returns the resource the user has selected.
Returns 0, if the dialog was canceled.
Definition at line 102 of file selectdialog.cpp.
| Resource * SelectDialog::resource | ( | ) |
Returns selected resource.
Definition at line 93 of file selectdialog.cpp.
The documentation for this class was generated from the following files:
KDE 4.3 API Reference