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