Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions codeless banner

QPimSourceDialog Class Reference
[QtMessagingModule, QtPimModule, QtTelephonyModule, QtUiModule]

The QPimSourceDialog class provides a dialog for selecting visible PIM sources for a PIM model. More...

    #include <QPimSourceDialog>

Inherits QDialog.

Public Functions

Additional Inherited Members


Detailed Description

The QPimSourceDialog class provides a dialog for selecting visible PIM sources for a PIM model.

This is useful to allow the user to filter out certain types of QPimRecords - for example, to only show QContacts that are stored on a SIM card.

This dialog can be subclassed if further functionality is required (e.g. adding sources, syncing between sources, or importing/exporting)

You must specify the PIM model to operate on using setPimModel(). This dialog will query the model for the available PIM sources, and present the user with a checkable list. Once the user accepts the dialog, the model's list of visible sources will automatically be updated to the dialog's selected sources.

The window title should be set by the creator.

See also QPimSource, QPimSourceModel, QPimModel, and Pim Library.


Member Function Documentation

QPimSourceDialog::QPimSourceDialog ( QWidget * parent = 0 )

Constructs a QPimSourceDialog with the given parent.

QPimSourceDialog::~QPimSourceDialog ()

Destroys a QPimSourceDialog.

QPimSourceModel * QPimSourceDialog::pimSourceModel () const

Return the QPimSourceModel used by this dialog. Mostly useful for subclassing this dialog for extra functionality.

void QPimSourceDialog::setPimModel ( QPimModel * m )   [virtual]

Set the PIM model this dialog will operate on to m. The initial list of PIM sources and their state will be obtained from QPimModel::contexts() and QPimModel::visibleSources().

If this dialog is accepted by the user, this model will be updated immediately.


Copyright © 2009 Trolltech Trademarks
Qt Extended 4.4.3