KWeatherCore
locationqueryreply.cpp
33 void requestPosition(LocationQueryReply *q, QGeoPositionInfoSource *source, QNetworkAccessManager *nam);
47LocationQueryReply::LocationQueryReply(const QString &name, int number, QNetworkAccessManager *nam, QObject *parent)
105LocationQueryReply::LocationQueryReply(QGeoPositionInfoSource *source, QNetworkAccessManager *nam, QObject *parent)
121 QCoreApplication::instance()->requestPermission(permission, this, [this, nam, source](const auto &permission) {
146void LocationQueryReplyPrivate::requestPosition(LocationQueryReply *q, QGeoPositionInfoSource *source, QNetworkAccessManager *nam)
148 QObject::connect(source, &QGeoPositionInfoSource::positionUpdated, q, [this, q, nam](const QGeoPositionInfo &pos) {
Asynchronous reply for a location query.
Definition locationqueryreply.h:27
const std::vector< LocationQueryResult > & result() const
Result of the location query.
Definition locationqueryreply.cpp:188
Class represents location query result.
Definition locationqueryresult.h:26
void finished()
Emitted once the job has been finished, either successfully or with an error.
@ NotFound
The queried information could not be found by the backend (e.g. unknown location).
Definition reply.h:34
char * toString(const EngineQuery &query)
KNOTIFICATIONS_EXPORT Qt::PermissionStatus checkPermission()
QCoreApplication * instance()
void requestPermission(const QPermission &permission, Functor &&functor)
latitude
longitude
QGeoCoordinate coordinate() const const
void positionUpdated(const QGeoPositionInfo &update)
virtual void requestUpdate(int timeout)=0
QJsonDocument fromJson(const QByteArray &json, QJsonParseError *error)
QJsonObject object() const const
const_iterator constEnd() const const
const_iterator constFind(QLatin1StringView key) const const
QJsonValue value(QLatin1StringView key) const const
QJsonArray toArray() const const
Precise
WhenInUse
void setAccuracy(Accuracy accuracy)
void setAvailability(Availability availability)
bool invokeMethod(QObject *context, Functor &&function, FunctorReturnType *ret)
QNetworkReply * get(const QNetworkRequest &request)
NoError
void finished()
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
QString number(double n, char format, int precision)
QueuedConnection
void addQueryItem(const QString &key, const QString &value)
Q_D(Todo)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:18:45 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:18:45 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.