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
qgeotiledmapreply_p.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 QGEOTILEDMAPREPLY_H
5#define QGEOTILEDMAPREPLY_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtLocation/private/qlocationglobal_p.h>
19
20#include <QObject>
21
23
24class QGeoTileSpec;
26
27class Q_LOCATION_EXPORT QGeoTiledMapReply : public QObject
28{
30
31public:
38
39 QGeoTiledMapReply(const QGeoTileSpec &spec, QObject *parent = nullptr);
40 QGeoTiledMapReply(Error error, const QString &errorString, QObject *parent = nullptr);
41 virtual ~QGeoTiledMapReply();
42
43 bool isFinished() const;
44 Error error() const;
45 QString errorString() const;
46
47 bool isCached() const;
48
49 QGeoTileSpec tileSpec() const;
50
51 QByteArray mapImageData() const;
52 QString mapImageFormat() const;
53
54 virtual void abort();
55
57 void finished();
58 void aborted();
60
61protected:
62 void setError(Error error, const QString &errorString);
63 void setFinished(bool finished);
64
65 void setCached(bool cached);
66
67 void setMapImageData(const QByteArray &data);
68 void setMapImageFormat(const QString &format);
69
70private:
72 Q_DISABLE_COPY(QGeoTiledMapReply)
73};
74
76
77#endif
\inmodule QtCore
Definition qbytearray.h:57
\inmodule QtLocation
void finished()
This signal is emitted when this reply has finished processing.
void errorOccurred(QGeoTiledMapReply::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 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 GLsizei GLsizei GLenum GLenum GLsizei void * data
GLint GLsizei GLsizei GLenum format
static void setError(QJsonObject *response, const QString &msg)
#define Q_OBJECT
#define Q_SIGNALS