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
qplaceuser.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 QPLACEUSER_H
5#define QPLACEUSER_H
6
7#include <QtCore/QMetaType>
8#include <QtCore/QSharedDataPointer>
9#include <QtLocation/qlocationglobal.h>
10#include <QtQml/qqml.h>
11
13
16
17class Q_LOCATION_EXPORT QPlaceUser
18{
20 QML_VALUE_TYPE(user)
22
23 Q_PROPERTY(QString userId READ userId WRITE setUserId)
25
26public:
27 QPlaceUser();
28 QPlaceUser(const QPlaceUser &other) noexcept;
29 QPlaceUser(QPlaceUser &&other) noexcept = default;
31
32 QPlaceUser &operator=(const QPlaceUser &other) noexcept;
33 QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_MOVE_AND_SWAP(QPlaceUser)
34
35 void swap(QPlaceUser &other) noexcept { d.swap(other.d); }
36
37 friend inline bool operator==(const QPlaceUser &lhs, const QPlaceUser &rhs) noexcept
38 { return lhs.isEqual(rhs); }
39 friend inline bool operator!=(const QPlaceUser &lhs, const QPlaceUser &rhs) noexcept
40 { return !lhs.isEqual(rhs); }
41
42 QString userId() const;
43 void setUserId(const QString &identifier);
44
45 QString name() const;
46 void setName(const QString &name);
47
48private:
49 QSharedDataPointer<QPlaceUserPrivate> d;
50
51 bool isEqual(const QPlaceUser &other) const noexcept;
52};
53
55
57
58#endif
static bool isEqual(const aiUVTransform &a, const aiUVTransform &b)
\inmodule QtLocation
Definition qplaceuser.h:18
friend bool operator==(const QPlaceUser &lhs, const QPlaceUser &rhs) noexcept
Returns true if lhs is equal to rhs, otherwise returns false.
Definition qplaceuser.h:37
friend bool operator!=(const QPlaceUser &lhs, const QPlaceUser &rhs) noexcept
Returns true if lhs is not equal to rhs, otherwise returns false.
Definition qplaceuser.h:39
void swap(QPlaceUser &other) noexcept
Definition qplaceuser.h:35
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
employee setName("Richard Schmit")
Combined button and popup list for selecting options.
#define Q_DECLARE_METATYPE(TYPE)
Definition qmetatype.h:1525
GLuint name
#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
QSharedPointer< T > other(t)
[5]
this swap(other)