8#include <QtQml/QQmlInfo>
9#include <QtLocation/QGeoServiceProvider>
10#include <QtLocation/QPlaceIcon>
11#include <QtLocation/QPlaceManager>
12#include <QtLocation/QPlaceIdReply>
13#include <QCoreApplication>
90 this, &QDeclarativeCategory::pluginReady);
102void QDeclarativeCategory::pluginReady()
171 return m_category.
name();
225 return m_category.
icon();
244 return m_errorString;
249 Status originalStatus = m_status;
253 if (originalStatus != m_status)
299 this, &QDeclarativeCategory::replyFinished);
316 this, &QDeclarativeCategory::replyFinished);
323void QDeclarativeCategory::replyFinished()
329 switch (m_reply->
type()) {
331 QPlaceIdReply *idReply = qobject_cast<QPlaceIdReply *>(m_reply);
351 m_errorString.
clear();
390 if (!serviceProvider) {
static QString translate(const char *context, const char *key, const char *disambiguation=nullptr, int n=-1)
\threadsafe
void setName(const QString &name)
\qmlproperty string Category::name
void setStatus(Status status, const QString &errorString=QString())
Q_INVOKABLE void save(const QString &parentId=QString())
\qmlmethod void Category::save()
QDeclarativeGeoServiceProvider * plugin
void componentComplete() override
Invoked after the root component that caused this instantiation has completed construction.
void setVisibility(Visibility visibility)
void setCategory(const QPlaceCategory &category)
void setPlugin(QDeclarativeGeoServiceProvider *plugin)
\qmlproperty Plugin Category::plugin
Q_INVOKABLE void remove()
\qmlmethod void Category::remove()
Q_INVOKABLE QString errorString() const
\qmlmethod string Category::errorString()
void setIcon(const QPlaceIcon &icon)
QDeclarativeCategory(QObject *parent=nullptr)
\qmltype Category \instantiates QDeclarativeCategory \inqmlmodule QtLocation
void setCategoryId(const QString &catID)
\qmlproperty string Category::categoryId
QGeoServiceProvider * sharedGeoServiceProvider() const
Error error() const
Returns an error code describing the error which occurred during the last operation that was performe...
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 deleteLater()
\threadsafe
void setVisibility(QLocation::Visibility visibility)
Sets the visibility of the category.
void setCategoryId(const QString &identifier)
Sets the identifier of the category.
QString categoryId() const
Returns the identifier of the category.
void setIcon(const QPlaceIcon &icon)
Sets the icon of the category.
QLocation::Visibility visibility() const
Returns the visibility of the category.
void setName(const QString &name)
Sets the name of the category.
QString name() const
Returns the name of category.
QPlaceIcon icon() const
Returns the icon associated with the category.
OperationType operationType() const
Returns the operation type of the reply.
QString id() const
Returns the relevant identifier for the operation.
QPlaceIdReply * removeCategory(const QString &categoryId)
Removes the category corresponding to categoryId from the manager.
QPlaceIdReply * saveCategory(const QPlaceCategory &category, const QString &parentId=QString())
Saves a category that is a child of the category specified by parentId.
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.
QString errorString() const
Returns the error string of the reply.
virtual Type type() const
Returns the type of the reply.
\macro QT_RESTRICTED_CAST_FROM_ASCII
void clear()
Clears the contents of the string and makes it null.
const QLoggingCategory & category()
[1]
QT_BEGIN_NAMESPACE const char CONTEXT_NAME[]
const char PLUGIN_NOT_VALID[]
const char PLUGIN_ERROR[]
const char PLUGIN_PROPERTY_NOT_SET[]
Combined button and popup list for selecting options.
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent