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
qplaceresult.h
Go to the documentation of this file.
1// Copyright (C) 2015 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#ifndef QPLACERESULT_H
6#define QPLACERESULT_H
7
8#include <QtLocation/QPlaceSearchResult>
9
10QT_BEGIN_NAMESPACE
11
12class QPlace;
13class QPlaceResultPrivate;
14
15class Q_LOCATION_EXPORT QPlaceResult : public QPlaceSearchResult
16{
17public:
18 QPlaceResult();
19
20#ifdef Q_QDOC
21 QPlaceResult::QPlaceResult(const QPlaceSearchResult &other);
22#else
23 Q_DECLARE_SEARCHRESULT_COPY_CTOR(QPlaceResult)
24#endif
25
26 virtual ~QPlaceResult();
27
28 qreal distance() const;
29 void setDistance(qreal distance);
30
31 QPlace place() const;
32 void setPlace(const QPlace &place);
33
34 bool isSponsored() const;
35 void setSponsored(bool sponsored);
36
37private:
38 Q_DECLARE_SEARCHRESULT_D_FUNC(QPlaceResult)
39};
40
41Q_DECLARE_TYPEINFO(QPlaceResult, Q_RELOCATABLE_TYPE);
42
43QT_END_NAMESPACE
44
45#endif
\inmodule QtLocation
Q_DECLARE_TYPEINFO(QByteArrayView, Q_PRIMITIVE_TYPE)
#define Q_IMPLEMENT_SEARCHRESULT_D_FUNC(Class)
#define Q_IMPLEMENT_SEARCHRESULT_COPY_CTOR(Class)