QPlaceContactDetail Class

Die Klasse QPlaceContactDetail stellt ein Kontaktdetail wie eine Telefonnummer oder eine Website-URL dar. Mehr...

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

Eigenschaften

Öffentliche Funktionen

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)

Statische öffentliche Mitglieder

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)

Detaillierte Beschreibung

Das Detail besteht aus einem Label und einem Wert. Die Bezeichnung ist eine lokalisierte Zeichenkette, die dem Endbenutzer angezeigt werden kann und den Detailwert beschreibt, d. h. die aktuelle Telefonnummer, E-Mail-Adresse usw.

Kontakttypen

Die Klasse QPlaceContactDetail definiert einige konstante Zeichenketten, die Standardkontakttypen charakterisieren.

Diese Typen werden verwendet, um auf Kontaktdetails in QPlace zuzugreifen und diese zu ändern:

Der Kontakttyp soll ein Stringtyp sein, damit die Anbieter bei Bedarf neue Kontakttypen einführen können.

Dokumentation der Eigenschaft

label : QString

Diese Eigenschaft enthält eine Beschriftung, die das Kontaktdetail beschreibt.

Die Bezeichnung kann möglicherweise lokalisiert werden. Die Sprache ist abhängig von der Entität, die sie festlegt, in der Regel ist dies der Manager, von dem die Orte bezogen werden. Das Feld QPlaceManager::locales() legt fest, welche Sprache verwendet wird.

Zugriffsfunktionen:

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

value : QString

Diese Eigenschaft enthält den Wert des Kontaktdetails.

Zugriffsfunktionen:

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

Dokumentation der Mitgliedsfunktionen

QPlaceContactDetail::QPlaceContactDetail()

Konstruiert ein Kontaktdetail.

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

Erzeugt eine Kopie von other.

[noexcept] QPlaceContactDetail::~QPlaceContactDetail()

Zerstört die Kontaktangaben.

void QPlaceContactDetail::clear()

Löscht die Kontaktdetails.

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

Weist diesem Kontaktdetail other zu und gibt einen Verweis auf dieses Kontaktdetail zurück.

Mitglied Variable Dokumentation

const QString QPlaceContactDetail::Email

Die Konstante zur Angabe von E-Mail-Kontaktdaten.

const QString QPlaceContactDetail::Fax

Die Konstante, die zur Angabe der Fax-Kontaktdaten verwendet wird.

const QString QPlaceContactDetail::Phone

Die Konstante zur Angabe von Telefon-Kontaktdaten

const QString QPlaceContactDetail::Website

Die Konstante, die zur Angabe von Website-Kontaktdaten verwendet wird.

Verwandte Nicht-Mitglieder

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

Gibt true zurück, wenn das Kontaktdetail lhs nicht gleich rhs ist, andernfalls wird false zurückgegeben.

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

Gibt true zurück, wenn das Kontaktdetail lhs gleich rhs ist, andernfalls gibt es false zurück.

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.