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