6#include <QGeoServiceProvider>
7#include <QPlaceDetailsReply>
8#include <QPlaceIdReply>
9#include <QPlaceManager>
10#include <QPlaceSearchReply>
11#include <QPlaceResult>
13#include <QtCore/QMetaObject>
118 address.setStreet(
"111 Nother Street");
261 request.setParameters(parameters);
367 qDebug() <<
"Removal of place identified by"
378 qDebug() <<
"Categories initialized";
380 qDebug() <<
"Failed to initialize categories";
414 qDebug() <<
"Removal of category identified by"
456 qDebug() <<
"Place is not a favorite";
QString street() const
Returns the street name.
Q_INVOKABLE QString toString(CoordinateFormat format=DegreesMinutesSecondsWithHemisphere) const
Returns this coordinate as a string in the specified format.
QGeoAddress address() const
Returns the address of the location.
QGeoCoordinate coordinate() const
Returns the coordinate of the location.
QPlaceManager * placeManager() const
Returns the QPlaceManager made available by the service provider.
iterator insert(const Key &key, const T &value)
static QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
\threadsafe
void deleteLater()
\threadsafe
static const QString OpeningHours
\qmltype ExtendedAttributes \instantiates QQmlPropertyMap \inqmlmodule QtLocation
QString text
\qmlproperty string placeAttribute::text
QString categoryId() const
Returns the identifier of the category.
int totalCount() const
Returns the total number of content objects for a place.
QPlaceContent::Collection content() const
Returns the collection of content retrieved.
QPlaceContentRequest request() const
Returns the content request that was used to generate this reply.
QPlaceContent::Type contentType() const
Returns the type of content to be requested, for example reviews or images.
QPlace place() const
Returns the place that was fetched.
Q_INVOKABLE QUrl url(const QSize &size=QSize()) const
Returns an icon URL according to the given size.
QString id() const
Returns the relevant identifier for the operation.
QPlaceMatchReply * matchingPlaces(const QPlaceMatchRequest &request) const
Returns a reply which contains a list of places which correspond/match those specified in the request...
QPlaceIdReply * savePlace(const QPlace &place)
Saves a specified place.
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.
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.
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.
QPlaceIdReply * removePlace(const QString &placeId)
Removes the place corresponding to placeId from the manager.
QList< QPlace > places() const
Returns a list of matching places;.
static const QString AlternativeId
\variable QPlaceMatchRequest::AlternativeId The key to specify that matching is to be accomplished vi...
QML_STRUCTURED_VALUEqreal average
\qmlproperty real ratings::average
qreal maximum
\qmlproperty real ratings::maximum
QPlaceReply::Error error() const
Returns the error code.
void finished()
This signal is emitted when this reply has finished processing.
virtual void abort()
Cancels the operation immediately.
Error
Describes an error which occurred during an operation.
QString errorString() const
Returns the error string of the reply.
void setError(QPlaceReply::Error error, const QString &errorString)
Sets the error and errorString of the reply.
void setFinished(bool finished)
Sets the status of whether the reply is finished or not.
qreal distance() const
Returns the distance of the place to the search center.
QPlace place() const
Returns the place of the search result.
QPlaceSearchRequest request() const
Returns the search request that was used to generate this reply.
QList< QPlaceSearchResult > results() const
Returns a list of search results;.
QStringList suggestions() const
Returns the search term suggestions.
QList< QPlaceContactDetail > contactDetails(const QString &contactType) const
Returns a list of contact details of the specified contactType.
void setTotalContentCount(QPlaceContent::Type type, int total)
Sets the totalCount of content objects of the given type.
QStringList extendedAttributeTypes() const
Returns the types of extended attributes that this place has.
void insertContent(QPlaceContent::Type type, const QPlaceContent::Collection &content)
Adds a collection of content of the given type to the place.
QPlaceIcon icon() const
Returns the icon of the place.
void setLocation(const QGeoLocation &location)
Sets the location of the place.
QGeoLocation location() const
Returns the location of the place.
QStringList contactTypes() const
Returns the type of contact details this place has.
QPlaceAttribute extendedAttribute(const QString &attributeType) const
Returns the exteded attribute corresponding to the specified attributeType.
void setName(const QString &name)
Sets the name of the place.
QPlaceRatings ratings() const
Returns an aggregated rating of the place.
QString placeId() const
Returns the identifier of the place.
bool detailsFetched() const
Returns true if the details of this place have been fetched, otherwise returns false.
QString name() const
Returns the name of the place.
\macro QT_RESTRICTED_CAST_FROM_ASCII
void convertSearchResult()
[Match places handler]
void handleRemovePlaceReply()
[Save place handler]
void handleSearchReply()
[Search for places handler cpp]
QPlaceSearchSuggestionReply * suggestionReply
QPlaceMatchReply * matchReply
QPlaceIdReply * removePlaceReply
QPlaceContentReply * contentReply
void handleImagesReply()
[Details handler cpp]
QPlaceSearchReply * searchReply
void processSearchReply()
void handleSuggestionReply()
[Image handler]
void handleSaveCategoryReply()
[Save category handler]
void handleInitCatReply()
[Remove place handler]
void matchHandler()
[Match places handler]
void phoneNumbers()
[Content handler]
void contentHandler()
[Remove category handler]
QPlaceDetailsReply * detailsReply
void saveBetweenManagers()
void handleSavePlaceReply()
[Suggestion handler]
void handleRemoveCategoryReply()
[Save category handler]
void handleDetailsReply()
[Search for places handler cpp]
QPlaceIdReply * saveCategoryReply
QPlaceIdReply * savePlaceReply
void initializeCategories()
QPlaceIdReply * removeCategoryReply
void categories()
[Initialize categories reply]
QPlaceReply * initCatReply
void triggerDone(QPlaceReply::Error error=QPlaceReply::NoError, const QString &errorString=QString())
[Implement reply pt1]
void setRequest(const QPlaceSearchRequest &request)
SearchReply(ManagerEngine *engine)
void setResults(const QList< QPlaceSearchResult > &results)
void triggerDone(QPlaceReply::Error error=QPlaceReply::NoError, const QString &errorString=QString())
[Trigger done]
const QLoggingCategory & category()
[1]
DBusConnection const char DBusError DBusBusType DBusError return DBusConnection DBusHandleMessageFunction void DBusFreeFunction return DBusConnection return DBusConnection return const char DBusError return DBusConnection DBusMessage dbus_uint32_t return DBusConnection dbus_bool_t DBusConnection DBusAddWatchFunction DBusRemoveWatchFunction DBusWatchToggledFunction void DBusFreeFunction return DBusConnection DBusDispatchStatusFunction void DBusFreeFunction DBusTimeout return DBusTimeout return DBusWatch return DBusWatch unsigned int return DBusError const DBusError return const DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessageIter * iter
DBusConnection const char DBusError * error
#define Q_ARG(Type, data)
GLsizei GLenum * categories
GLuint GLuint64EXT address
QNetworkRequest request(url)