Marble

GeoDataLink.h
1// SPDX-License-Identifier: LGPL-2.1-or-later
2//
3// SPDX-FileCopyrightText: 2012 Dennis Nienhüser <nienhueser@kde.org>
4// SPDX-FileCopyrightText: 2013 Sanjiban Bairagya <sanjiban22393@gmail.com>
5
6
7#ifndef MARBLE_GEODATALINK_H
8#define MARBLE_GEODATALINK_H
9
10#include "GeoDataObject.h"
11#include "MarbleGlobal.h"
12
13namespace Marble {
14
15class GeoDataLinkPrivate;
16
17/**
18 */
19class GEODATA_EXPORT GeoDataLink: public GeoDataObject
20{
21public:
22 enum RefreshMode {
23 OnChange,
24 OnInterval,
25 OnExpire
26 };
27
28 enum ViewRefreshMode {
29 Never,
30 OnStop,
31 OnRequest,
32 OnRegion
33 };
34
35 GeoDataLink();
36
37 GeoDataLink( const GeoDataLink &other );
38
39 GeoDataLink& operator=( const GeoDataLink &other );
40 bool operator==( const GeoDataLink &other ) const;
41 bool operator!=( const GeoDataLink &other ) const;
42
43 ~GeoDataLink() override;
44
45 /** Provides type information for downcasting a GeoNode */
46 const char* nodeType() const override;
47
48 QString href() const;
49
50 void setHref( const QString& href );
51
52 RefreshMode refreshMode() const;
53
54 void setRefreshMode( RefreshMode refreshMode );
55
56 qreal refreshInterval() const;
57
58 void setRefreshInterval( qreal refreshInterval );
59
60 ViewRefreshMode viewRefreshMode() const;
61
62 void setViewRefreshMode(ViewRefreshMode refreshMode);
63
64 qreal viewRefreshTime() const;
65
66 void setViewRefreshTime(qreal viewRefreshTime);
67
68 qreal viewBoundScale() const;
69
70 void setViewBoundScale(qreal viewBoundScale);
71
72 QString viewFormat() const;
73
74 void setViewFormat(const QString &viewFormat);
75
76 QString httpQuery() const;
77
78 void setHttpQuery(const QString &httpQuery);
79
80private:
81 GeoDataLinkPrivate* const d;
82};
83
84}
85
86#endif
Binds a QML item to a specific geodetic location in screen coordinates.
bool operator==(const QGraphicsApiFilter &reference, const QGraphicsApiFilter &sample)
bool operator!=(const QGraphicsApiFilter &reference, const QGraphicsApiFilter &sample)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:18:17 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.