8#include <QtCore/QCoreApplication>
9#include <QtQml/QQmlInfo>
10#include <QtLocation/QGeoServiceProvider>
11#include <QtLocation/QPlaceIcon>
12#include <QtLocation/QPlaceManager>
13#include <QtLocation/QPlaceSearchRequest>
14#include <QtLocation/QPlaceSearchReply>
15#include <QtPositioning/QGeoCircle>
16#include <QtPositioning/QGeoPolygon>
17#include <QtLocation/private/qplacesearchrequest_p.h>
75 bool routeSearchArea =
false;
86 routeSearchArea =
true;
157 Status prevStatus = m_status;
162 if (prevStatus != m_status)
183 if (!serviceProvider) {
247 return m_errorString;
306 this, &QDeclarativeSearchModelBase::pluginNameChanged);
310 this, &QDeclarativeSearchModelBase::pluginNameChanged);
317 if (serviceProvider) {
339void QDeclarativeSearchModelBase::pluginNameChanged()
349 if (m_previousPageRequest == previous)
352 m_previousPageRequest = previous;
358 if (m_nextPageRequest ==
next)
361 m_nextPageRequest =
next;
void endResetModel()
Completes a model reset operation.
void beginResetModel()
Begins a model reset operation.
static QString translate(const char *context, const char *key, const char *disambiguation=nullptr, int n=-1)
\threadsafe
void nameChanged(const QString &name)
QGeoServiceProvider * sharedGeoServiceProvider() const
void classBegin() override
Q_INVOKABLE void update()
Q_INVOKABLE void cancel()
void setSearchArea(const QVariant &searchArea)
void nextPagesAvailableChanged()
virtual void clearData(bool suppressSignal=false)
Q_INVOKABLE void nextPage()
virtual void onContentUpdated()
QDeclarativeSearchModelBase(QObject *parent=nullptr)
QDeclarativeGeoServiceProvider * plugin
void setPlugin(QDeclarativeGeoServiceProvider *plugin)
void componentComplete() override
virtual void queryFinished()=0
Q_INVOKABLE void previousPage()
virtual void initializePlugin(QDeclarativeGeoServiceProvider *plugin)
QDeclarativeGeoServiceProvider * m_plugin
Q_INVOKABLE QString errorString() const
void setPreviousPageRequest(const QPlaceSearchRequest &previous)
QPlaceSearchRequest m_request
~QDeclarativeSearchModelBase()
bool previousPagesAvailable
void setNextPageRequest(const QPlaceSearchRequest &next)
void setStatus(Status status, const QString &errorString=QString())
virtual QPlaceReply * sendQuery(QPlaceManager *manager, const QPlaceSearchRequest &request)=0
void previousPagesAvailableChanged()
QPlaceManager * placeManager() const
Returns the QPlaceManager made available by the service provider.
QString errorString() const
Returns a string describing the error which occurred during the last operation that was performed by ...
static QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
\threadsafe
void setParent(QObject *parent)
Makes the object a child of parent.
void deleteLater()
\threadsafe
QStringList childCategoryIds(const QString &parentId=QString()) const
Returns the child category identifiers of the category corresponding to parentId.
QPlaceReply * initializeCategories()
Initializes the categories of the manager.
void finished()
This signal is emitted when this reply has finished processing.
virtual void abort()
Cancels the operation immediately.
bool isFinished() const
Return true if the reply has completed.
void contentUpdated()
This signal is emitted when this reply has updated content available.
static const QPlaceSearchRequestPrivate * get(const QPlaceSearchRequest &request)
QGeoRoute routeSearchArea
QGeoShape searchArea() const
Returns the search area which will be used to limit search results.
int limit() const
Returns the maximum number of search results to retrieve.
void setLimit(int limit)
Set the maximum number of search results to retrieve to limit.
void setSearchArea(const QGeoShape &area)
Sets the search request to search within the given area.
\macro QT_RESTRICTED_CAST_FROM_ASCII
int typeId() const
Returns the storage type of the value stored in the variant.
static auto fromValue(T &&value) noexcept(std::is_nothrow_copy_constructible_v< T > &&Private::CanUseInternalSpace< T >) -> std::enable_if_t< std::conjunction_v< std::is_copy_constructible< T >, std::is_destructible< T > >, QVariant >
QT_BEGIN_NAMESPACE const char CONTEXT_NAME[]
const char PLUGIN_ERROR[]
const char PLUGIN_PROVIDER_ERROR[]
const char UNABLE_TO_MAKE_REQUEST[]
const char PLUGIN_PROPERTY_NOT_SET[]
Combined button and popup list for selecting options.
myObject disconnect()
[26]
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent