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.cpp
Go to the documentation of this file.
1// Copyright (C) 2022 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#include "qplaceuser.h"
5#include "qplaceuser_p.h"
6
8
10
11bool QPlaceUserPrivate::operator==(const QPlaceUserPrivate &other) const
12{
13 return userId == other.userId && name == other.name;
14}
15
58
62QPlaceUser::QPlaceUser(const QPlaceUser &other) noexcept = default;
63
67QPlaceUser::~QPlaceUser() = default;
68
73{
74 if (this == &other)
75 return *this;
76
77 d = other.d;
78 return *this;
79}
80
93bool QPlaceUser::isEqual(const QPlaceUser &other) const noexcept
94{
95 return (*d) == *(other.d);
96}
97
109{
110 return d->userId;
111}
112
113void QPlaceUser::setUserId(const QString &identifier)
114{
115 d->userId = identifier;
116}
117
129{
130 return d->name;
131}
132
134{
135 d->name = name;
136}
137
138#include "moc_qplaceuser.cpp"
\inmodule QtLocation
Definition qplaceuser.h:18
QPlaceUser()
\qmlvaluetype user \inqmlmodule QtLocation
void setUserId(const QString &identifier)
~QPlaceUser()
Destroys the user object.
QPlaceUser & operator=(const QPlaceUser &other) noexcept
Assigns other to this user and returns a reference to this user.
QString name
\qmlproperty string QtLocation::user::name
Definition qplaceuser.h:24
QML_STRUCTURED_VALUEQString userId
\qmlproperty string QtLocation::user::userId
Definition qplaceuser.h:23
void setName(const QString &name)
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
GLuint name
#define QT_DEFINE_QSDP_SPECIALIZATION_DTOR(Class)
QSharedPointer< T > other(t)
[5]