Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qgeocodereply.h
Go to the documentation of this file.
1// Copyright (C) 2015 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QGEOCODEREPLY_H
5#define QGEOCODEREPLY_H
6
7#include <QtLocation/qlocationglobal.h>
8#include <QtPositioning/QGeoShape>
9#include <QtCore/QObject>
10#include <QtCore/QList>
11
13
14class QGeoLocation;
16
17class Q_LOCATION_EXPORT QGeoCodeReply : public QObject
18{
20
21public:
31
32 explicit QGeoCodeReply(Error error, const QString &errorString, QObject *parent = nullptr);
33 virtual ~QGeoCodeReply();
34
35 bool isFinished() const;
36 Error error() const;
37 QString errorString() const;
38
39 QGeoShape viewport() const;
40 QList<QGeoLocation> locations() const;
41
42 qsizetype limit() const;
43 qsizetype offset() const;
44
45 virtual void abort();
46
48 void finished();
49 void aborted();
51
52protected:
53 explicit QGeoCodeReply(QObject *parent = nullptr);
54
55 void setError(Error error, const QString &errorString);
56 void setFinished(bool finished);
57
58 void setViewport(const QGeoShape &viewport);
59 void addLocation(const QGeoLocation &location);
60 void setLocations(const QList<QGeoLocation> &locations);
61
62 void setLimit(qsizetype limit);
63 void setOffset(qsizetype offset);
64
65private:
67 Q_DISABLE_COPY(QGeoCodeReply)
69};
70
72
73#endif
\inmodule QtLocation
void finished()
This signal is emitted when this reply has finished processing.
void errorOccurred(QGeoCodeReply::Error error, const QString &errorString=QString())
This signal is emitted when an error has been detected in the processing of this reply.
Error
Describes an error which prevented the completion of the operation.
\inmodule QtPositioning
\inmodule QtPositioning
Definition qgeoshape.h:17
\inmodule QtCore
Definition qobject.h:103
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
Combined button and popup list for selecting options.
DBusConnection const char DBusError * error
GLint location
GLenum GLuint GLintptr offset
GLint limit
GLuint const GLint * locations
static void setError(QJsonObject *response, const QString &msg)
#define Q_OBJECT
#define Q_SIGNALS
ptrdiff_t qsizetype
Definition qtypes.h:165
view viewport() -> scroll(dx, dy, deviceRect)