Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qplacecontactdetail.h
Go to the documentation of this file.
1// Copyright (C) 2015 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QPLACECONTACTDETAIL_H
5#define QPLACECONTACTDETAIL_H
6
7#include <QtCore/QString>
8#include <QtCore/QMetaType>
9#include <QtCore/QSharedDataPointer>
10
11#include <QtLocation/qlocationglobal.h>
12#include <QtQml/qqml.h>
13
15
18
19class Q_LOCATION_EXPORT QPlaceContactDetail
20{
22 QML_VALUE_TYPE(contactDetail)
24 Q_PROPERTY(QString label READ label WRITE setLabel)
26
27public:
28 static const QString Phone;
29 static const QString Email;
30 static const QString Website;
31 static const QString Fax;
32
37
38 QPlaceContactDetail &operator=(const QPlaceContactDetail &other) noexcept;
39 QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_MOVE_AND_SWAP(QPlaceContactDetail)
40
41 void swap(QPlaceContactDetail &other) noexcept { d_ptr.swap(other.d_ptr); }
42
43 friend inline bool operator==(const QPlaceContactDetail &lhs, const QPlaceContactDetail &rhs) noexcept
44 { return lhs.isEqual(rhs); }
45 friend inline bool operator!=(const QPlaceContactDetail &lhs, const QPlaceContactDetail &rhs) noexcept
46 { return !lhs.isEqual(rhs); }
47
48 QString label() const;
49 void setLabel(const QString &label);
50
51 QString value() const;
52 void setValue(const QString &value);
53
54 void clear();
55
56private:
57 QSharedDataPointer<QPlaceContactDetailPrivate> d_ptr;
58
59 bool isEqual(const QPlaceContactDetail &other) const noexcept;
60};
61
63
65
66#endif
static bool isEqual(const aiUVTransform &a, const aiUVTransform &b)
The QPlaceContactDetail class represents a contact detail such as a phone number or website url.
friend bool operator!=(const QPlaceContactDetail &lhs, const QPlaceContactDetail &rhs) noexcept
Returns true if the contact detail lhs is not equal to rhs, otherwise returns false.
friend bool operator==(const QPlaceContactDetail &lhs, const QPlaceContactDetail &rhs) noexcept
Returns true if the contact detail lhs is equal to rhs, otherwise returns false.
void swap(QPlaceContactDetail &other) noexcept
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
b clear()
Combined button and popup list for selecting options.
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
#define Q_DECLARE_METATYPE(TYPE)
Definition qmetatype.h:1525
GLuint GLsizei const GLchar * label
[43]
#define QML_VALUE_TYPE(NAME)
#define QML_STRUCTURED_VALUE
#define QT_DECLARE_QSDP_SPECIALIZATION_DTOR_WITH_EXPORT(Class, ExportMacro)
#define Q_PROPERTY(...)
#define Q_GADGET
settings setValue("DataPump/bgcolor", color)
QSharedPointer< T > other(t)
[5]
this swap(other)