Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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;
25class QGeoTiledMapReplyPrivate;
26
27class Q_LOCATION_EXPORT QGeoTiledMapReply : public QObject
28{
29 Q_OBJECT
30
31public:
32 enum Error {
33 NoError,
34 CommunicationError,
35 ParseError,
36 UnknownError
37 };
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
56Q_SIGNALS:
57 void finished();
58 void aborted();
59 void errorOccurred(QGeoTiledMapReply::Error error, const QString &errorString = QString());
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:
71 QGeoTiledMapReplyPrivate *d_ptr;
72 Q_DISABLE_COPY(QGeoTiledMapReply)
73};
74
75QT_END_NAMESPACE
76
77#endif
QGeoMappingManagerEngine * engine
\inmodule QtLocation