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
qplacesearchrequest_p.h
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
5#ifndef QPLACESEARCHREQUEST_P_H
6#define QPLACESEARCHREQUEST_P_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
20#include "qgeocoordinate.h"
21#include "qgeoshape.h"
22
23#include <QtCore/QSharedData>
24#include <QtCore/QList>
25#include <QtLocation/private/qlocationglobal_p.h>
26#include <QtCore/QVariant>
27#include <QtLocation/QGeoRoute>
28
29QT_BEGIN_NAMESPACE
30
31class Q_LOCATION_EXPORT QPlaceSearchRequestPrivate : public QSharedData
32{
33public:
34 bool operator==(const QPlaceSearchRequestPrivate &other) const;
35
36 void clear();
37 static const QPlaceSearchRequestPrivate *get(const QPlaceSearchRequest &request);
38 static QPlaceSearchRequestPrivate *get(QPlaceSearchRequest &request);
39
40 QString searchTerm;
41 QList<QPlaceCategory> categories;
42 QGeoShape searchArea;
43 QString recommendationId;
44 QLocation::VisibilityScope visibilityScope = QLocation::UnspecifiedVisibility;
45 QPlaceSearchRequest::RelevanceHint relevanceHint = QPlaceSearchRequest::UnspecifiedHint;
46 QGeoRoute routeSearchArea;
47 int limit = -1;
48 QVariant searchContext;
49 bool related = false;
50 int page = 0;
51};
52
54
55#endif // QPLACESEARCHREQUEST_P_H
Combined button and popup list for selecting options.