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#ifndef MARBLE_GEODATALINK_H
7#define MARBLE_GEODATALINK_H
8
9#include "GeoDataObject.h"
10#include "MarbleGlobal.h"
11
12namespace Marble
13{
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
KIOCORE_EXPORT bool operator!=(const UDSEntry &entry, const UDSEntry &other)
bool operator==(const StyleDelim &l, const StyleDelim &r)
Binds a QML item to a specific geodetic location in screen coordinates.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 8 2024 12:02:43 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.