Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
4#ifndef QPLACEMANAGERENGINE_H
5#define QPLACEMANAGERENGINE_H
6
7#include <QtLocation/QPlaceManager>
8
10
17
18class Q_LOCATION_EXPORT QPlaceManagerEngine : public QObject
19{
21
22public:
23 explicit QPlaceManagerEngine(const QVariantMap &parameters, QObject *parent = nullptr);
24 virtual ~QPlaceManagerEngine();
25
26 QString managerName() const;
27 int managerVersion() const;
28
29 virtual QPlaceDetailsReply *getPlaceDetails(const QString &placeId);
30
31 virtual QPlaceContentReply *getPlaceContent(const QPlaceContentRequest &request);
32
33 virtual QPlaceSearchReply *search(const QPlaceSearchRequest &request);
34
35 virtual QPlaceSearchSuggestionReply *searchSuggestions(const QPlaceSearchRequest &request);
36
37 virtual QPlaceIdReply *savePlace(const QPlace &place);
38 virtual QPlaceIdReply *removePlace(const QString &placeId);
39
40 virtual QPlaceIdReply *saveCategory(const QPlaceCategory &category, const QString &parentId);
41 virtual QPlaceIdReply *removeCategory(const QString &categoryId);
42
43 virtual QPlaceReply *initializeCategories();
44 virtual QString parentCategoryId(const QString &categoryId) const;
45 virtual QStringList childCategoryIds(const QString &categoryId) const;
46 virtual QPlaceCategory category(const QString &categoryId) const;
47
48 virtual QList<QPlaceCategory> childCategories(const QString &parentId) const;
49
50 virtual QList<QLocale> locales() const;
51 virtual void setLocales(const QList<QLocale> &locales);
52
53 virtual QUrl constructIconUrl(const QPlaceIcon &icon, const QSize &size) const;
54
55 virtual QPlace compatiblePlace(const QPlace &original) const;
56
57 virtual QPlaceMatchReply *matchingPlaces(const QPlaceMatchRequest &request);
58
62 const QString &errorString = QString());
63
64 void placeAdded(const QString &placeId);
65 void placeUpdated(const QString &placeId);
66 void placeRemoved(const QString &placeId);
67
68 void categoryAdded(const QPlaceCategory &category, const QString &parentCategoryId);
69 void categoryUpdated(const QPlaceCategory &category, const QString &parentCategoryId);
70 void categoryRemoved(const QString &categoryId, const QString &parentCategoryId);
72
73protected:
74 QPlaceManager *manager() const;
75
76private:
77 void setManagerName(const QString &managerName);
78 void setManagerVersion(int managerVersion);
79
81 Q_DISABLE_COPY(QPlaceManagerEngine)
82
84 friend class QPlaceManager;
85};
86
88
89#endif
\inmodule QtCore
Definition qobject.h:103
\inmodule QtLocation
\inmodule QtLocation
\inmodule QtLocation
\inmodule QtLocation
\inmodule QtLocation
Definition qplaceicon.h:23
\inmodule QtLocation
\inmodule QtLocation
void placeRemoved(const QString &placeId)
This signal is emitted if a place has been removed from the manager engine's datastore.
void finished(QPlaceReply *reply)
This signal is emitted when reply has finished processing.
void dataChanged()
This signal is emitted by the engine if there are large scale changes to its underlying datastore and...
void placeAdded(const QString &placeId)
This signal is emitted if a place has been added to the manager engine's datastore.
void categoryUpdated(const QPlaceCategory &category, const QString &parentCategoryId)
This signal is emitted if a category has been modified in the manager engine's datastore.
void errorOccurred(QPlaceReply *, QPlaceReply::Error error, const QString &errorString=QString())
This signal is emitted when an error has been detected in the processing of reply.
void categoryAdded(const QPlaceCategory &category, const QString &parentCategoryId)
This signal is emitted if a category has been added to the manager engine's datastore.
void placeUpdated(const QString &placeId)
This signal is emitted if a place has been modified in the manager engine's datastore.
void categoryRemoved(const QString &categoryId, const QString &parentCategoryId)
This signal is emitted when the category corresponding to categoryId has been removed from the manage...
\inmodule QtLocation
\inmodule QtLocation
\inmodule QtLocation
\inmodule QtLocation
Definition qplacereply.h:15
Error
Describes an error which occurred during an operation.
Definition qplacereply.h:18
\inmodule QtLocation
\inmodule QtLocation
\inmodule QtLocation
Definition qplace.h:25
\inmodule QtCore
Definition qsize.h:25
\inmodule QtCore
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
\inmodule QtCore
Definition qurl.h:94
const QLoggingCategory & category()
[1]
Combined button and popup list for selecting options.
DBusConnection const char DBusError * error
GLenum GLuint GLintptr GLsizeiptr size
[1]
#define Q_OBJECT
#define Q_SIGNALS
QNetworkAccessManager manager
QNetworkRequest request(url)
QNetworkReply * reply