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