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
6
7#include <QtLocation/QPlace>
8
11{
12public:
13 QPlace result;
14};
15
16QT_END_NAMESPACE
17
18QT_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*/
37QPlaceDetailsReply::QPlaceDetailsReply(QObject *parent)
38 : QPlaceReply(new QPlaceDetailsReplyPrivate, parent)
39{
40}
41
42/*!
43 Destroys the details reply.
44*/
45QPlaceDetailsReply::~QPlaceDetailsReply()
46{
47}
48
49/*!
50 Returns the type of reply.
51*/
52QPlaceReply::Type QPlaceDetailsReply::type() const
53{
54 return QPlaceReply::DetailsReply;
55}
56
57 /*!
58 Returns the place that was fetched.
59*/
60QPlace 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*/
69void QPlaceDetailsReply::setPlace(const QPlace &place)
70{
71 Q_D(QPlaceDetailsReply);
72 d->result = place;
73}