• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepimlibs API Reference
  • KDE Home
  • Contact Us
 

kresources

  • KRES
  • SelectDialog
Public Member Functions | Static Public Member Functions | List of all members
KRES::SelectDialog Class Reference

#include <selectdialog.h>

Inherits KDialog.

Public Member Functions

 SelectDialog (QList< Resource * > list, QWidget *parent=0)
 
 ~SelectDialog ()
 
Resource * resource ()
 

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
listThe list of available resources
parentThe parent widget

Definition at line 49 of file selectdialog.cpp.

SelectDialog::~SelectDialog ( )

Destructor.

Definition at line 93 of file selectdialog.cpp.

Member Function Documentation

Resource * SelectDialog::getResource ( QList< 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 107 of file selectdialog.cpp.

Resource * SelectDialog::resource ( )

Returns selected resource.

Definition at line 98 of file selectdialog.cpp.


The documentation for this class was generated from the following files:
  • selectdialog.h
  • selectdialog.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:19 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kresources

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

kdepimlibs API Reference

Skip menu "kdepimlibs API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kldap
  • kmbox
  • kmime
  • kpimidentities
  • kpimtextedit
  • kresources
  • ktnef
  • kxmlrpcclient
  • microblog

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal