QPlaceContactDetail Class

The QPlaceContactDetail class represents a contact detail such as a phone number or website url. 更多...

頭: #include <QPlaceContactDetail>
qmake: QT += location

特性

公共函數

QPlaceContactDetail ()
QPlaceContactDetail (const QPlaceContactDetail & other )
~QPlaceContactDetail ()
void clear ()
QString label () const
void setLabel (const QString & label )
void setValue (const QString & value )
QString value () const
QPlaceContactDetail & operator= (const QPlaceContactDetail & other )

靜態公共成員

const QString Email
const QString Fax
const QString Phone
const QString Website
bool operator!= (const QPlaceContactDetail & lhs , const QPlaceContactDetail & rhs )
bool operator== (const QPlaceContactDetail & lhs , const QPlaceContactDetail & rhs )

詳細描述

The detail consists of a label and value. The label is a localized string that can be presented to the end user that describes that detail value which is the actual phone number, email address and so on.

Contact Types

The QPlaceContactDetail class defines some constant strings which characterize standard contact types .

These types are used to access and modify contact details in QPlace via:

The contact type is intended to be a string type so that providers are able to introduce new contact types if necessary.

特性文檔編製

label : QString

This property holds a label describing the contact detail.

The label can potentially be localized. The language is dependent on the entity that sets it, typically this is the manager from which the places are sourced. The QPlaceManager::locales () field defines what language is used.

訪問函數:

QString label () const
void setLabel (const QString & label )

value : QString

This property holds the value of the contact detail.

訪問函數:

QString () const
void setValue (const QString & value )

成員函數文檔編製

QPlaceContactDetail:: QPlaceContactDetail ()

Constructs a contact detail.

[noexcept] QPlaceContactDetail:: QPlaceContactDetail (const QPlaceContactDetail & other )

創建副本為 other .

[noexcept] QPlaceContactDetail:: ~QPlaceContactDetail ()

Destroys the contact detail.

void QPlaceContactDetail:: clear ()

Clears the contact detail.

[noexcept] QPlaceContactDetail &QPlaceContactDetail:: operator= (const QPlaceContactDetail & other )

賦值 other to this contact detail and returns a reference to this contact detail.

成員變量文檔編製

const QString QPlaceContactDetail:: Email

The constant to specify email contact details.

const QString QPlaceContactDetail:: Fax

The constant used to specify fax contact details.

const QString QPlaceContactDetail:: Phone

The constant to specify phone contact details

const QString QPlaceContactDetail:: Website

The constant used to specify website contact details.

相關非成員

[noexcept] bool operator!= (const QPlaceContactDetail & lhs , const QPlaceContactDetail & rhs )

Returns true if the contact detail lhs 不等於 rhs ,否則返迴 false。

[noexcept] bool operator== (const QPlaceContactDetail & lhs , const QPlaceContactDetail & rhs )

Returns true if the contact detail lhs 等於 rhs ,否則返迴 false。