Marble

GeoDataNetworkLinkControl.h
1 // SPDX-License-Identifier: LGPL-2.1-or-later
2 //
3 // SPDX-FileCopyrightText: 2013 Mohammed Nafees <[email protected]>
4 //
5 
6 #ifndef GEODATANETWORKLINKCONTROL_H
7 #define GEODATANETWORKLINKCONTROL_H
8 
9 #include "GeoDataContainer.h"
10 #include "geodata_export.h"
11 
12 class QDateTime;
13 
14 namespace Marble
15 {
16 
17 class GeoDataAbstractView;
18 class GeoDataUpdate;
19 class GeoDataNetworkLinkControlPrivate;
20 
21 /**
22  */
23 class GEODATA_EXPORT GeoDataNetworkLinkControl : public GeoDataContainer
24 {
25 public:
26  GeoDataNetworkLinkControl();
27 
28  GeoDataNetworkLinkControl( const GeoDataNetworkLinkControl &other );
29 
30  ~GeoDataNetworkLinkControl() override;
31 
32  GeoDataNetworkLinkControl& operator=( const GeoDataNetworkLinkControl &other );
33 
34  bool operator==( const GeoDataNetworkLinkControl &other ) const;
35  bool operator!=( const GeoDataNetworkLinkControl &other ) const;
36 
37  GeoDataFeature * clone() const override;
38 
39  /** Provides type information for downcasting a GeoNode */
40  const char* nodeType() const override;
41 
42  qreal minRefreshPeriod() const;
43  void setMinRefreshPeriod(qreal minRefreshPeriod);
44 
45  qreal maxSessionLength() const;
46  void setMaxSessionLength(qreal maxSessionLength);
47 
48  QString cookie() const;
49  void setCookie( const QString &cookie );
50 
51  QString message() const;
52  void setMessage( const QString &message );
53 
54  QString linkName() const;
55  void setLinkName( const QString &linkName );
56 
57  QString linkDescription() const;
58  void setLinkDescription( const QString &linkDescription );
59 
60  QString linkSnippet() const;
61  void setLinkSnippet( const QString &linkSnippet );
62  int maxLines() const;
63  void setMaxLines(int maxLines);
64 
65  QDateTime expires() const;
66  void setExpires( const QDateTime &expires );
67 
68  GeoDataUpdate& update();
69  const GeoDataUpdate& update() const;
70  void setUpdate( const GeoDataUpdate &update );
71 
72  GeoDataAbstractView* abstractView() const;
73  /**
74  * Sets the abstract view and takes control of this pointer.
75  */
76  void setAbstractView( GeoDataAbstractView *abstractView );
77 
78 private:
79  Q_DECLARE_PRIVATE(GeoDataNetworkLinkControl)
80 };
81 
82 }
83 
84 #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.
void update(Part *part, const QByteArray &data, qint64 dataSize)
QString message
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Sep 25 2023 03:50:18 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.