Marble

GeoDataLink.h
1 // SPDX-License-Identifier: LGPL-2.1-or-later
2 //
3 // SPDX-FileCopyrightText: 2012 Dennis Nienhüser <[email protected]>
4 // SPDX-FileCopyrightText: 2013 Sanjiban Bairagya <[email protected]>
5 
6 
7 #ifndef MARBLE_GEODATALINK_H
8 #define MARBLE_GEODATALINK_H
9 
10 #include "GeoDataObject.h"
11 #include "MarbleGlobal.h"
12 
13 namespace Marble {
14 
15 class GeoDataLinkPrivate;
16 
17 /**
18  */
19 class GEODATA_EXPORT GeoDataLink: public GeoDataObject
20 {
21 public:
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 
80 private:
81  GeoDataLinkPrivate* const d;
82 };
83 
84 }
85 
86 #endif
bool operator==(const Qt3DRender::QGraphicsApiFilter &reference, const Qt3DRender::QGraphicsApiFilter &sample)
bool operator!=(const Qt3DRender::QGraphicsApiFilter &reference, const Qt3DRender::QGraphicsApiFilter &sample)
Binds a QML item to a specific geodetic location in screen coordinates.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Oct 2 2023 03:52:08 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.