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// Qt-Security score:significant reason:default
4
5#ifndef QGEOTILEDMAPREPLY_H
6#define QGEOTILEDMAPREPLY_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <QtLocation/private/qlocationglobal_p.h>
20
21#include <QObject>
22
24
25class QGeoTileSpec;
26class QGeoTiledMapReplyPrivate;
27
28class Q_LOCATION_EXPORT QGeoTiledMapReply : public QObject
29{
30 Q_OBJECT
31
32public:
33 enum Error {
34 NoError,
35 CommunicationError,
36 ParseError,
37 UnknownError
38 };
39
40 QGeoTiledMapReply(const QGeoTileSpec &spec, QObject *parent = nullptr);
41 QGeoTiledMapReply(Error error, const QString &errorString, QObject *parent = nullptr);
42 virtual ~QGeoTiledMapReply();
43
44 bool isFinished() const;
45 Error error() const;
46 QString errorString() const;
47
48 bool isCached() const;
49
50 QGeoTileSpec tileSpec() const;
51
52 QByteArray mapImageData() const;
53 QString mapImageFormat() const;
54
55 virtual void abort();
56
57Q_SIGNALS:
58 void finished();
59 void aborted();
60 void errorOccurred(QGeoTiledMapReply::Error error, const QString &errorString = QString());
61
62protected:
63 void setError(Error error, const QString &errorString);
64 void setFinished(bool finished);
65
66 void setCached(bool cached);
67
68 void setMapImageData(const QByteArray &data);
69 void setMapImageFormat(const QString &format);
70
71private:
72 QGeoTiledMapReplyPrivate *d_ptr;
73 Q_DISABLE_COPY(QGeoTiledMapReply)
74};
75
76QT_END_NAMESPACE
77
78#endif
QGeoMappingManagerEngine * engine
\inmodule QtLocation
Combined button and popup list for selecting options.