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
qgeotilefetcher_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 QGEOTILEFETCHER_H
5
#define QGEOTILEFETCHER_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 <QObject>
19
#include <QtLocation/private/qlocationglobal_p.h>
20
#include <QtLocation/private/qabstractgeotilecache_p.h>
21
22
QT_BEGIN_NAMESPACE
23
24
class
QGeoMapRequestOptions;
25
class
QGeoTileFetcherPrivate
;
26
class
QGeoTiledMappingManagerEngine
;
27
class
QGeoTiledMapReply
;
28
class
QGeoTileSpec
;
29
30
class
Q_LOCATION_EXPORT
QGeoTileFetcher
:
public
QObject
31
{
32
Q_OBJECT
33
Q_DECLARE_PRIVATE(
QGeoTileFetcher
)
34
35
public
:
36
QGeoTileFetcher
(
QGeoMappingManagerEngine
*parent);
37
virtual
~QGeoTileFetcher
();
38
39
public
Q_SLOTS
:
40
void
updateTileRequests(
const
QSet<QGeoTileSpec> &tilesAdded,
const
QSet<QGeoTileSpec> &tilesRemoved);
41
42
private
Q_SLOTS
:
43
void
cancelTileRequests(
const
QSet<QGeoTileSpec> &tiles);
44
void
requestNextTile();
45
void
finished();
46
47
Q_SIGNALS
:
48
void
tileFinished
(
const
QGeoTileSpec
&spec,
const
QByteArray
&bytes,
const
QString
&
format
);
49
void
tileError
(
const
QGeoTileSpec
&spec,
const
QString
&errorString);
50
51
protected
:
52
QGeoTileFetcher
(
QGeoTileFetcherPrivate
&dd,
QGeoMappingManagerEngine
*parent);
53
54
void
timerEvent(
QTimerEvent
*
event
)
override
;
55
QAbstractGeoTileCache::CacheAreas
cacheHint
()
const
;
56
virtual
bool
initialized()
const
;
57
virtual
bool
fetchingEnabled()
const
;
58
59
private
:
60
61
virtual
QGeoTiledMapReply
*
getTileImage
(
const
QGeoTileSpec
&spec) = 0;
62
virtual
void
handleReply(
QGeoTiledMapReply
*
reply
,
const
QGeoTileSpec
&spec);
63
64
Q_DISABLE_COPY(
QGeoTileFetcher
)
65
friend class
QGeoTiledMappingManagerEngine
;
66
};
67
68
QT_END_NAMESPACE
69
70
#endif
QByteArray
\inmodule QtCore
Definition
qbytearray.h:57
QGeoMappingManagerEngine
\inmodule QtLocation
Definition
qgeomappingmanagerengine_p.h:38
QGeoTileFetcherPrivate
Definition
qgeotilefetcher_p_p.h:38
QGeoTileFetcher
Definition
qgeotilefetcher_p.h:31
QGeoTileFetcher::tileError
void tileError(const QGeoTileSpec &spec, const QString &errorString)
QGeoTileFetcher::cacheHint
QAbstractGeoTileCache::CacheAreas cacheHint() const
QGeoTileFetcher::getTileImage
virtual QGeoTiledMapReply * getTileImage(const QGeoTileSpec &spec)=0
QGeoTileFetcher::tileFinished
void tileFinished(const QGeoTileSpec &spec, const QByteArray &bytes, const QString &format)
QGeoTileSpec
Definition
qgeotilespec_p.h:32
QGeoTiledMapReply
\inmodule QtLocation
Definition
qgeotiledmapreply_p.h:28
QGeoTiledMappingManagerEngine
Definition
qgeotiledmappingmanagerengine_p.h:34
QObject
\inmodule QtCore
Definition
qobject.h:103
QString
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition
qstring.h:129
QTimerEvent
\inmodule QtCore
Definition
qcoreevent.h:366
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1590
format
GLint GLsizei GLsizei GLenum format
Definition
qopengles2ext.h:206
event
struct _cl_event * event
Definition
qopenglext.h:2998
Q_OBJECT
#define Q_OBJECT
Definition
qtmetamacros.h:119
Q_SLOTS
#define Q_SLOTS
Definition
qtmetamacros.h:44
Q_SIGNALS
#define Q_SIGNALS
Definition
qtmetamacros.h:45
reply
QNetworkReply * reply
Definition
src_network_access_qhttpmultipart.cpp:26
qtlocation
src
location
maps
qgeotilefetcher_p.h
Generated by
1.10.0