Home · All Classes · Annotated · Functions

QPhoneTypeSelector Class Reference

The QPhoneTypeSelector class a way of selecting a single phone number from or for a QContact. More...

#include <QPhoneTypeSelector>

Inherits QDialog.

Public Functions

Signals

Protected Functions

Protected Slots

Additional Inherited Members


Detailed Description

The QPhoneTypeSelector class a way of selecting a single phone number from or for a QContact.

QPhoneTypeSelector provides a way of selecting a single phone number from or for a QContact.


Member Function Documentation

QPhoneTypeSelector::QPhoneTypeSelector ( const QContact & contact, const QString & number, QWidget * parent = 0 )

Contructs a QPhoneTypeSelector dialog with parent parent. The QPhoneTypeSelector will show phone numbers if number is empty will only show numbers for which there already exists and entry for the contact provided. Otherwise will provide a selection of all possible phone numbers.

void QPhoneTypeSelector::accept ()   [virtual protected slot]

Reimplemented from QDialog.

void QPhoneTypeSelector::resizeEvent ( QResizeEvent * event )   [virtual protected]

This event handler can be reimplemented in a subclass to receive widget resize events which are passed in the event parameter. When resizeEvent() is called, the widget already has its new geometry. The old size is accessible through QResizeEvent::oldSize().

The widget will be erased and receive a paint event immediately after processing the resize event. No drawing need be (or should be) done inside this handler.

Reimplemented from QWidget.

QContact::PhoneType QPhoneTypeSelector::selected () const

Returns the QContact::PhoneType that matches the phone number selected.

void QPhoneTypeSelector::selected ( QContact::PhoneType type )   [signal]

This is an overloaded member function, provided for convenience.

This signal is emitted when the user selectes a phone number type.

QString QPhoneTypeSelector::selectedNumber () const

Returns the value set for the phone number selected.

void QPhoneTypeSelector::updateContact ( QContact & contact, const QString & number ) const

Updates the contact so that the phone number selected is set to number.


Copyright © 2006 Trolltech Trademarks
Qtopia 4.1.7