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