9#include <QtCore/QDebug>
10#include <QtCore/QLocale>
13#include <QtLocation/QPlace>
14#include <QtLocation/QPlaceCategory>
15#include <QtLocation/QPlaceContentReply>
16#include <QtLocation/QPlaceContentRequest>
17#include <QtLocation/QPlaceDetailsReply>
18#include <QtLocation/QPlaceIcon>
19#include <QtLocation/QPlaceIdReply>
20#include <QtLocation/QPlaceMatchReply>
21#include <QtLocation/QPlaceMatchRequest>
22#include <QtLocation/QPlaceReply>
23#include <QtLocation/QPlaceSearchSuggestionReply>
24#include <QtLocation/QPlaceSearchRequest>
25#include <QtLocation/QPlaceSearchResult>
126 d->d_ptr->manager =
this;
128 qRegisterMetaType<QPlaceCategory>();
151 qFatal(
"The place manager engine that was set for this place manager was NULL.");
virtual QPlaceIdReply * removeCategory(const QString &categoryId)
Removes the category corresponding to categoryId from the manager engine's datastore.
virtual QPlaceIdReply * saveCategory(const QPlaceCategory &category, const QString &parentId)
Saves a category that is a child of the category specified by parentId.
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...
virtual QPlaceSearchReply * search(const QPlaceSearchRequest &request)
Searches for places according to the parameters specified in request.
virtual QPlaceIdReply * savePlace(const QPlace &place)
Saves a specified place to the manager engine's datastore.
virtual QPlaceSearchSuggestionReply * searchSuggestions(const QPlaceSearchRequest &request)
Requests a set of search term suggestions according to the parameters specified in request.
virtual QPlaceDetailsReply * getPlaceDetails(const QString &placeId)
Retrieves details of place corresponding to the given placeId.
virtual QPlaceReply * initializeCategories()
Initializes the categories of the manager engine.
QString managerName() const
Returns the name which this engine implementation uses to distinguish itself from the implementations...
void placeAdded(const QString &placeId)
This signal is emitted if a place has been added to the manager engine's datastore.
int managerVersion() const
Returns the version of this engine implementation.
void categoryUpdated(const QPlaceCategory &category, const QString &parentCategoryId)
This signal is emitted if a category has been modified in the manager engine's datastore.
virtual QList< QLocale > locales() const
Returns a list of preferred locales.
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.
virtual void setLocales(const QList< QLocale > &locales)
Set the list of preferred locales.
virtual QStringList childCategoryIds(const QString &categoryId) const
Returns the child category identifiers of the category corresponding to categoryId.
virtual QPlaceContentReply * getPlaceContent(const QPlaceContentRequest &request)
Retrieves content for a place according to the parameters specified in request.
virtual QPlaceMatchReply * matchingPlaces(const QPlaceMatchRequest &request)
Returns a reply which contains a list of places which correspond/match those specified in request.
virtual QList< QPlaceCategory > childCategories(const QString &parentId) const
Returns a list of categories that are children of the category corresponding to parentId.
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.
virtual QPlace compatiblePlace(const QPlace &original) const
Returns a pruned or modified version of the original place which is suitable to be saved by the manag...
void categoryRemoved(const QString &categoryId, const QString &parentCategoryId)
This signal is emitted when the category corresponding to categoryId has been removed from the manage...
virtual QPlaceIdReply * removePlace(const QString &placeId)
Removes the place corresponding to placeId from the manager engine's datastore.
virtual QPlaceCategory category(const QString &categoryId) const
Returns the category corresponding to the given categoryId.
virtual QString parentCategoryId(const QString &categoryId) const
Returns the parent category identifier of the category corresponding to categoryId.
QPlaceMatchReply * matchingPlaces(const QPlaceMatchRequest &request) const
Returns a reply which contains a list of places which correspond/match those specified in the request...
QList< QLocale > locales() const
Returns a list of preferred locales.
QPlaceCategory category(const QString &categoryId) const
Returns the category corresponding to the given categoryId.
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.
QStringList childCategoryIds(const QString &parentId=QString()) const
Returns the child category identifiers of the category corresponding to parentId.
void categoryAdded(const QPlaceCategory &category, const QString &parentId)
This signal is emitted if a category has been added to the manager's datastore.
QPlaceIdReply * savePlace(const QPlace &place)
Saves a specified place.
QString managerName() const
Returns the name of the manager.
QPlaceSearchSuggestionReply * searchSuggestions(const QPlaceSearchRequest &request) const
Requests a set of search term suggestions according to the parameters specified in request.
QPlaceSearchReply * search(const QPlaceSearchRequest &query) const
Searches for places according to the parameters specified in request.
QPlaceDetailsReply * getPlaceDetails(const QString &placeId) const
Retrieves a details of place corresponding to the given placeId.
void placeUpdated(const QString &placeId)
This signal is emitted if a place has been modified in the manager's datastore.
void setLocale(const QLocale &locale)
Convenience function which sets the manager's list of preferred locales to a single locale.
QPlaceIdReply * removeCategory(const QString &categoryId)
Removes the category corresponding to categoryId from the manager.
QPlace compatiblePlace(const QPlace &place) const
Returns a pruned or modified version of the original place which is suitable to be saved into this ma...
QPlaceContentReply * getPlaceContent(const QPlaceContentRequest &request) const
Retrieves content for a place according to the parameters specified in request.
void finished(QPlaceReply *reply)
This signal is emitted when reply has finished processing.
QString parentCategoryId(const QString &categoryId) const
Returns the parent category identifier of the category corresponding to categoryId.
int managerVersion() const
Returns the manager version.
void placeAdded(const QString &placeId)
This signal is emitted if a place has been added to the manager engine's datastore.
QPlaceIdReply * saveCategory(const QPlaceCategory &category, const QString &parentId=QString())
Saves a category that is a child of the category specified by parentId.
QPlaceReply * initializeCategories()
Initializes the categories of the manager.
QList< QPlaceCategory > childCategories(const QString &parentId=QString()) const
Returns a list of categories that are children of the category corresponding to parentId.
~QPlaceManager()
Destroys the manager.
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 setLocales(const QList< QLocale > &locale)
Set the list of preferred locales.
void placeRemoved(const QString &placeId)
This signal is emitted if a place has been removed from the manager's datastore.
QPlaceIdReply * removePlace(const QString &placeId)
Removes the place corresponding to placeId from the manager.
void categoryUpdated(const QPlaceCategory &category, const QString &parentId)
This signal is emitted if a category has been modified in the manager's datastore.
\macro QT_RESTRICTED_CAST_FROM_ASCII
const QLoggingCategory & category()
[1]
Combined button and popup list for selecting options.
connect(quitButton, &QPushButton::clicked, &app, &QCoreApplication::quit, Qt::QueuedConnection)
QNetworkRequest request(url)
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent