Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
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
// Qt-Security score:significant reason:default
4
5
#
ifndef
QGEOTILEFETCHER_H
6
#
define
QGEOTILEFETCHER_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
<
QObject
>
20
#
include
<
QtLocation
/
private
/
qlocationglobal_p
.
h
>
21
#
include
<
QtLocation
/
private
/
qabstractgeotilecache_p
.
h
>
22
23
QT_BEGIN_NAMESPACE
24
25
class
QGeoMapRequestOptions;
26
class
QGeoTileFetcherPrivate;
27
class
QGeoTiledMappingManagerEngine;
28
class
QGeoTiledMapReply;
29
class
QGeoTileSpec;
30
31
class
Q_LOCATION_EXPORT
QGeoTileFetcher
:
public
QObject
32
{
33
Q_OBJECT
34
Q_DECLARE_PRIVATE(QGeoTileFetcher)
35
36
public
:
37
QGeoTileFetcher(QGeoMappingManagerEngine *parent);
38
virtual
~QGeoTileFetcher();
39
40
public
Q_SLOTS:
41
void
updateTileRequests(
const
QSet<QGeoTileSpec> &tilesAdded,
const
QSet<QGeoTileSpec> &tilesRemoved);
42
43
private
Q_SLOTS:
44
void
cancelTileRequests(
const
QSet<QGeoTileSpec> &tiles);
45
void
requestNextTile();
46
void
finished();
47
48
Q_SIGNALS:
49
void
tileFinished(
const
QGeoTileSpec &spec,
const
QByteArray &bytes,
const
QString &format);
50
void
tileError(
const
QGeoTileSpec &spec,
const
QString &errorString);
51
52
protected
:
53
QGeoTileFetcher(QGeoTileFetcherPrivate &dd, QGeoMappingManagerEngine *parent);
54
55
void
timerEvent(QTimerEvent *event) override;
56
QAbstractGeoTileCache::CacheAreas cacheHint()
const
;
57
virtual
bool
initialized()
const
;
58
virtual
bool
fetchingEnabled()
const
;
59
60
private
:
61
62
virtual
QGeoTiledMapReply *getTileImage(
const
QGeoTileSpec &spec) = 0;
63
virtual
void
handleReply(QGeoTiledMapReply *reply,
const
QGeoTileSpec &spec);
64
65
Q_DISABLE_COPY(QGeoTileFetcher)
66
friend
class
QGeoTiledMappingManagerEngine;
67
};
68
69
QT_END_NAMESPACE
70
71
#
endif
QGeoTileFetcher
Definition
qgeotilefetcher_p.h:32
QGeoTiledMappingManagerEnginePrivate
Definition
qgeotiledmappingmanagerengine_p_p.h:33
QGeoTiledMappingManagerEnginePrivate::mapHash_
QHash< QGeoTiledMap *, QSet< QGeoTileSpec > > mapHash_
Definition
qgeotiledmappingmanagerengine_p_p.h:37
QGeoTiledMappingManagerEnginePrivate::tileSize_
QSize tileSize_
Definition
qgeotiledmappingmanagerengine_p_p.h:35
QGeoTiledMappingManagerEnginePrivate::fetcher_
QGeoTileFetcher * fetcher_
Definition
qgeotiledmappingmanagerengine_p_p.h:41
QGeoTiledMappingManagerEnginePrivate::m_tileVersion
int m_tileVersion
Definition
qgeotiledmappingmanagerengine_p_p.h:36
QGeoTiledMappingManagerEnginePrivate::tileCache_
std::unique_ptr< QAbstractGeoTileCache > tileCache_
Definition
qgeotiledmappingmanagerengine_p_p.h:40
QGeoTiledMappingManagerEnginePrivate::tileHash_
QHash< QGeoTileSpec, QSet< QGeoTiledMap * > > tileHash_
Definition
qgeotiledmappingmanagerengine_p_p.h:38
QGeoTiledMappingManagerEnginePrivate::cacheHint_
QAbstractGeoTileCache::CacheAreas cacheHint_
Definition
qgeotiledmappingmanagerengine_p_p.h:39
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtlocation
src
location
maps
qgeotilefetcher_p.h
Generated on
for Qt by
1.18.0