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 Class Reference

\inmodule QtLocation More...

#include <qplaceuser.h>

+ Collaboration diagram for QPlaceUser:

Public Member Functions

 QPlaceUser ()
 \qmlvaluetype user \inqmlmodule QtLocation
 
 QPlaceUser (const QPlaceUser &other) noexcept
 Constructs a copy of other.
 
 QPlaceUser (QPlaceUser &&other) noexcept=default
 
 ~QPlaceUser ()
 Destroys the user object.
 
QPlaceUseroperator= (const QPlaceUser &other) noexcept
 Assigns other to this user and returns a reference to this user.
 
void swap (QPlaceUser &other) noexcept
 
QString userId () const
 
void setUserId (const QString &identifier)
 
QString name () const
 
void setName (const QString &name)
 

Properties

QML_STRUCTURED_VALUEQString userId
 \qmlproperty string QtLocation::user::userId
 
QString name
 \qmlproperty string QtLocation::user::name
 

Friends

bool operator== (const QPlaceUser &lhs, const QPlaceUser &rhs) noexcept
 Returns true if lhs is equal to rhs, otherwise returns false.
 
bool operator!= (const QPlaceUser &lhs, const QPlaceUser &rhs) noexcept
 Returns true if lhs is not equal to rhs, otherwise returns false.
 

Detailed Description

\inmodule QtLocation

Since
5.6

The QPlaceUser class represents an individual user.

Definition at line 17 of file qplaceuser.h.

Constructor & Destructor Documentation

◆ QPlaceUser() [1/3]

QPlaceUser::QPlaceUser ( )

\qmlvaluetype user \inqmlmodule QtLocation

Since
QtLocation 5.5

The user type identifies a user who contributed a particular \l Place content item.

Each \l Place content item has an associated user who contributed the content. This type provides information about that user.

Definition at line 54 of file qplaceuser.cpp.

◆ QPlaceUser() [2/3]

QPlaceUser::QPlaceUser ( const QPlaceUser & other)
defaultnoexcept

Constructs a copy of other.

◆ QPlaceUser() [3/3]

QPlaceUser::QPlaceUser ( QPlaceUser && other)
defaultnoexcept

◆ ~QPlaceUser()

QPlaceUser::~QPlaceUser ( )
default

Destroys the user object.

Member Function Documentation

◆ name()

QString QPlaceUser::name ( ) const

Definition at line 128 of file qplaceuser.cpp.

References QPlaceUserPrivate::name.

◆ operator=()

QPlaceUser & QPlaceUser::operator= ( const QPlaceUser & other)
noexcept

Assigns other to this user and returns a reference to this user.

Definition at line 72 of file qplaceuser.cpp.

References d, and other().

+ Here is the call graph for this function:

◆ setName()

void QPlaceUser::setName ( const QString & name)

Definition at line 133 of file qplaceuser.cpp.

References name, and QPlaceUserPrivate::name.

Referenced by parseReview().

+ Here is the caller graph for this function:

◆ setUserId()

void QPlaceUser::setUserId ( const QString & identifier)

Definition at line 113 of file qplaceuser.cpp.

References QPlaceUserPrivate::userId.

Referenced by parseReview().

+ Here is the caller graph for this function:

◆ swap()

void QPlaceUser::swap ( QPlaceUser & other)
inlinenoexcept

Definition at line 35 of file qplaceuser.h.

References d, other(), and swap().

Referenced by swap().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ userId()

QString QPlaceUser::userId ( ) const

Definition at line 108 of file qplaceuser.cpp.

References QPlaceUserPrivate::userId.

Friends And Related Symbol Documentation

◆ operator!=

bool QPlaceUser::operator!= ( const QPlaceUser & lhs,
const QPlaceUser & rhs )
friend

Returns true if lhs is not equal to rhs, otherwise returns false.

Definition at line 39 of file qplaceuser.h.

◆ operator==

bool QPlaceUser::operator== ( const QPlaceUser & lhs,
const QPlaceUser & rhs )
friend

Returns true if lhs is equal to rhs, otherwise returns false.

Definition at line 37 of file qplaceuser.h.

Property Documentation

◆ name

QPlaceUser::name
readwrite

\qmlproperty string QtLocation::user::name

This property holds the name of a user.

the name of the user.

Definition at line 24 of file qplaceuser.h.

Referenced by setName().

◆ userId

QPlaceUser::userId
readwrite

\qmlproperty string QtLocation::user::userId

This property holds the unique identifier of the user.

the identifier of the user.

Definition at line 23 of file qplaceuser.h.

Referenced by QDeclarativePlaceContentModel::data().


The documentation for this class was generated from the following files: