Marble

GeoDataNetworkLinkControl.h
1// SPDX-License-Identifier: LGPL-2.1-or-later
2//
3// SPDX-FileCopyrightText: 2013 Mohammed Nafees <nafees.technocool@gmail.com>
4//
5
6#ifndef GEODATANETWORKLINKCONTROL_H
7#define GEODATANETWORKLINKCONTROL_H
8
9#include "GeoDataContainer.h"
10#include "geodata_export.h"
11
12class QDateTime;
13
14namespace Marble
15{
16
17class GeoDataAbstractView;
18class GeoDataUpdate;
19class GeoDataNetworkLinkControlPrivate;
20
21/**
22 */
23class GEODATA_EXPORT GeoDataNetworkLinkControl : public GeoDataContainer
24{
25public:
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
78private:
79 Q_DECLARE_PRIVATE(GeoDataNetworkLinkControl)
80};
81
82}
83
84#endif
void update(Part *part, const QByteArray &data, qint64 dataSize)
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 Mon Nov 18 2024 12:15:45 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.