Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qplacedetailsreply.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
// Qt-Security score:significant reason:default
4
5
#
include
"qplacedetailsreply.h"
6
#
include
"qplacereply_p.h"
7
8
#
include
<
QtLocation
/
QPlace
>
9
10
QT_BEGIN_NAMESPACE
11
class
QPlaceDetailsReplyPrivate
:
public
QPlaceReplyPrivate
12
{
13
public
:
14
QPlace
result
;
15
};
16
17
QT_END_NAMESPACE
18
19
QT_USE_NAMESPACE
20
21
/*!
22
\class QPlaceDetailsReply
23
\inmodule QtLocation
24
\ingroup QtLocation-places
25
\ingroup QtLocation-places-replies
26
\since 5.6
27
28
\brief The QPlaceDetailsReply class manages a place details fetch operation started by an
29
instance of QPlaceManager.
30
31
See \l {QML Places API#Fetching Place Details}{Fetching Place Details} for an example on how to use a details reply.
32
\sa QPlaceManager
33
*/
34
35
/*!
36
Constructs a details reply with a given \a parent.
37
*/
38
QPlaceDetailsReply::QPlaceDetailsReply(QObject *parent)
39
: QPlaceReply(
new
QPlaceDetailsReplyPrivate, parent)
40
{
41
}
42
43
/*!
44
Destroys the details reply.
45
*/
46
QPlaceDetailsReply::~QPlaceDetailsReply()
47
{
48
}
49
50
/*!
51
Returns the type of reply.
52
*/
53
QPlaceReply::Type QPlaceDetailsReply::type()
const
54
{
55
return
QPlaceReply::DetailsReply;
56
}
57
58
/*!
59
Returns the place that was fetched.
60
*/
61
QPlace QPlaceDetailsReply::place()
const
62
{
63
Q_D(
const
QPlaceDetailsReply);
64
return
d->result;
65
}
66
67
/*!
68
Sets the fetched \a place of the reply.
69
*/
70
void
QPlaceDetailsReply::setPlace(
const
QPlace &place)
71
{
72
Q_D(QPlaceDetailsReply);
73
d->result = place;
74
}
QPlaceDetailsReplyPrivate
Definition
qplacedetailsreply.cpp:12
QPlaceDetailsReplyPrivate::result
QPlace result
Definition
qplacedetailsreply.cpp:14
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qrandomaccessasyncfile_darwin.mm:17
qtlocation
src
location
places
qplacedetailsreply.cpp
Generated on
for Qt by
1.16.1