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
qplacemanager.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 QPLACEMANAGER_H
5#define QPLACEMANAGER_H
6
7#include <QtLocation/QPlaceReply>
8
9#include <QtCore/QList>
10#include <QtCore/QString>
11#include <QtCore/QObject>
12
14
15class QLocale;
16class QPlace;
17class QPlaceCategory;
21class QPlaceIcon;
22class QPlaceIdReply;
30
31class Q_LOCATION_EXPORT QPlaceManager : public QObject
32{
34public:
36
37 QString managerName() const;
38 int managerVersion() const;
39
40 QPlaceDetailsReply *getPlaceDetails(const QString &placeId) const;
41
42 QPlaceContentReply *getPlaceContent(const QPlaceContentRequest &request) const;
43
44 QPlaceSearchReply *search(const QPlaceSearchRequest &query) const;
45
46 QPlaceSearchSuggestionReply *searchSuggestions(const QPlaceSearchRequest &request) const;
47
48 QPlaceIdReply *savePlace(const QPlace &place);
49 QPlaceIdReply *removePlace(const QString &placeId);
50
51 QPlaceIdReply *saveCategory(const QPlaceCategory &category, const QString &parentId = QString());
52 QPlaceIdReply *removeCategory(const QString &categoryId);
53
54 QPlaceReply *initializeCategories();
55 QString parentCategoryId(const QString &categoryId) const;
56 QStringList childCategoryIds(const QString &parentId = QString()) const;
57
58 QPlaceCategory category(const QString &categoryId) const;
59 QList<QPlaceCategory> childCategories(const QString &parentId = QString()) const;
60
61 QList<QLocale> locales() const;
62 void setLocale(const QLocale &locale);
63 void setLocales(const QList<QLocale> &locale);
64
65 QPlace compatiblePlace(const QPlace &place) const;
66
67 QPlaceMatchReply *matchingPlaces(const QPlaceMatchRequest &request) const;
68
72 const QString &errorString = QString());
73
74 void placeAdded(const QString &placeId);
75 void placeUpdated(const QString &placeId);
76 void placeRemoved(const QString &placeId);
77
78 void categoryAdded(const QPlaceCategory &category, const QString &parentId);
79 void categoryUpdated(const QPlaceCategory &category, const QString &parentId);
80 void categoryRemoved(const QString &categoryId, const QString &parentId);
82
83private:
84 explicit QPlaceManager(QPlaceManagerEngine *engine, QObject *parent = nullptr);
85 Q_DISABLE_COPY(QPlaceManager)
86
88
89 friend class QGeoServiceProvider;
91 friend class QPlaceIcon;
92};
93
95
96#endif // QPLACEMANAGER_H
\inmodule QtLocation
\inmodule QtCore
Definition qobject.h:103
\inmodule QtLocation
\inmodule QtLocation
\inmodule QtLocation
\inmodule QtLocation
\inmodule QtLocation
Definition qplaceicon.h:23
\inmodule QtLocation
\inmodule QtLocation
\inmodule QtLocation
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 &parentId)
This signal is emitted if a category has been added to the manager's datastore.
void placeUpdated(const QString &placeId)
This signal is emitted if a place has been modified in the manager's datastore.
void finished(QPlaceReply *reply)
This signal is emitted when reply has finished processing.
void placeAdded(const QString &placeId)
This signal is emitted if a place has been added to the manager engine's datastore.
void categoryRemoved(const QString &categoryId, const QString &parentId)
This signal is emitted when the category corresponding to categoryId has been removed from the manage...
void dataChanged()
This signal is emitted by the manager if there are large scale changes to its underlying datastore an...
void placeRemoved(const QString &placeId)
This signal is emitted if a place has been removed from the manager's datastore.
void categoryUpdated(const QPlaceCategory &category, const QString &parentId)
This signal is emitted if a category has been modified in the manager's datastore.
\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
\inmodule QtLocation
Definition qplace.h:25
\inmodule QtCore
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
const QLoggingCategory & category()
[1]
Combined button and popup list for selecting options.
DBusConnection const char DBusError * error
GLenum query
#define Q_OBJECT
#define Q_SIGNALS
QNetworkRequest request(url)
QNetworkReply * reply
QJSEngine engine
[0]