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
qplacemanagerengine.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 QPLACEMANAGERENGINE_H
6#define QPLACEMANAGERENGINE_H
7
8#include <QtLocation/QPlaceManager>
9
11
13class QPlaceMatchReply;
14class QPlaceMatchRequest;
15class QPlaceSearchReply;
16class QPlaceSearchRequest;
17class QPlaceSearchSuggestionReply;
18
19class Q_LOCATION_EXPORT QPlaceManagerEngine : public QObject
20{
21 Q_OBJECT
22
23public:
24 explicit QPlaceManagerEngine(const QVariantMap &parameters, QObject *parent = nullptr);
25 virtual ~QPlaceManagerEngine();
26
27 QString managerName() const;
28 int managerVersion() const;
29
30 virtual QPlaceDetailsReply *getPlaceDetails(const QString &placeId);
31
32 virtual QPlaceContentReply *getPlaceContent(const QPlaceContentRequest &request);
33
34 virtual QPlaceSearchReply *search(const QPlaceSearchRequest &request);
35
36 virtual QPlaceSearchSuggestionReply *searchSuggestions(const QPlaceSearchRequest &request);
37
38 virtual QPlaceIdReply *savePlace(const QPlace &place);
39 virtual QPlaceIdReply *removePlace(const QString &placeId);
40
41 virtual QPlaceIdReply *saveCategory(const QPlaceCategory &category, const QString &parentId);
42 virtual QPlaceIdReply *removeCategory(const QString &categoryId);
43
44 virtual QPlaceReply *initializeCategories();
45 virtual QString parentCategoryId(const QString &categoryId) const;
46 virtual QStringList childCategoryIds(const QString &categoryId) const;
47 virtual QPlaceCategory category(const QString &categoryId) const;
48
49 virtual QList<QPlaceCategory> childCategories(const QString &parentId) const;
50
51 virtual QList<QLocale> locales() const;
52 virtual void setLocales(const QList<QLocale> &locales);
53
54 virtual QUrl constructIconUrl(const QPlaceIcon &icon, const QSize &size) const;
55
56 virtual QPlace compatiblePlace(const QPlace &original) const;
57
58 virtual QPlaceMatchReply *matchingPlaces(const QPlaceMatchRequest &request);
59
60Q_SIGNALS:
61 void finished(QPlaceReply *reply);
62 void errorOccurred(QPlaceReply *, QPlaceReply::Error error,
63 const QString &errorString = QString());
64
65 void placeAdded(const QString &placeId);
66 void placeUpdated(const QString &placeId);
67 void placeRemoved(const QString &placeId);
68
69 void categoryAdded(const QPlaceCategory &category, const QString &parentCategoryId);
70 void categoryUpdated(const QPlaceCategory &category, const QString &parentCategoryId);
71 void categoryRemoved(const QString &categoryId, const QString &parentCategoryId);
72 void dataChanged();
73
74protected:
75 QPlaceManager *manager() const;
76
77private:
78 void setManagerName(const QString &managerName);
79 void setManagerVersion(int managerVersion);
80
81 QPlaceManagerEnginePrivate *d_ptr;
82 Q_DISABLE_COPY(QPlaceManagerEngine)
83
84 friend class QGeoServiceProviderPrivate;
85 friend class QPlaceManager;
86};
87
88QT_END_NAMESPACE
89
90#endif
std::unique_ptr< QGeoRoutingManager > routingManager
std::unique_ptr< QGeoMappingManager > mappingManager
void loadPlugin(const QVariantMap &parameters)
Manager * manager(QGeoServiceProvider::Error *error, QString *errorString)
static void loadPluginMetadata(QMultiHash< QString, QCborMap > &list)
std::unique_ptr< QPlaceManager > placeManager
static QMultiHash< QString, QCborMap > plugins(bool reload=false)
Flags features(const char *enumName) const
QGeoServiceProviderFactory * factory
std::unique_ptr< QGeoCodingManager > geocodingManager
\inmodule QtLocation
Combined button and popup list for selecting options.
Engine * createEngine(QGeoServiceProviderPrivate *)