• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • @topname@
  • Sitemap
  • Contact Us
 

kresources

KRES::SelectDialog

KRES::SelectDialog Class Reference

Dialog for selecting a resource. More...

#include <selectdialog.h>

Inherits KDialog.

List of all members.


Public Member Functions

 SelectDialog (QPtrList< Resource > list, QWidget *parent=0, const char *name=0)
Resource * resource ()

Static Public Member Functions

static Resource * getResource (QPtrList< Resource > list, QWidget *parent=0)

Detailed Description

Dialog for selecting a resource.

Example:

 QPtrList<Resource> list = ... // can be retrived from KRES::Manager (e.g. KABC::AddressBook)

 KABC::Resource *res = KABC::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 ( QPtrList< Resource >  list,
QWidget *  parent = 0,
const char *  name = 0 
)

Constructor.

Parameters:
list The list of available resources
parent The parent widget
name The name of the dialog

Definition at line 38 of file selectdialog.cpp.


Member Function Documentation

Resource * SelectDialog::getResource ( QPtrList< Resource >  list,
QWidget *  parent = 0 
) [static]

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 92 of file selectdialog.cpp.

Resource * SelectDialog::resource (  ) 

Returns selected resource.

Definition at line 84 of file selectdialog.cpp.


The documentation for this class was generated from the following files:
  • selectdialog.h
  • selectdialog.cpp

kresources

Skip menu "kresources"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members

@topname@

Skip menu "@topname@"
  •     kdnssd-avahi
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for @topname@ by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal