Marble

GeoDataSimpleData.h
1// SPDX-License-Identifier: LGPL-2.1-or-later
2//
3// SPDX-FileCopyrightText: 2014 Abhinav Gangwar <abhgang@gmail.com>
4//
5
6#ifndef MARBLE_GEODATASIMPLEDATA_H
7#define MARBLE_GEODATASIMPLEDATA_H
8
9#include "GeoDocument.h"
10#include "geodata_export.h"
11
12// Qt
13#include <QDataStream>
14#include <QString>
15
16namespace Marble
17{
18
19class GeoDataSimpleDataPrivate;
20
21/**
22 */
23class GEODATA_EXPORT GeoDataSimpleData : public GeoNode
24{
25public:
26 GeoDataSimpleData();
27 GeoDataSimpleData(const GeoDataSimpleData &other);
28 ~GeoDataSimpleData() override;
29
30 /*
31 * @brief Returns the value of name attribute of SimpleData tag
32 */
33 QString name() const;
34
35 /*
36 * @brief Set the name of SimpleData to @p name
37 */
38 void setName(const QString &name);
39
40 /*
41 * @brief Returns the data defined by SimpleData
42 */
43 QString data() const;
44
45 /*
46 * @brief Set the value of data defined by SimpleData to @p data
47 */
48 void setData(const QString &data);
49
50 /*
51 * Assignment operator
52 */
53 GeoDataSimpleData &operator=(const GeoDataSimpleData &rhs);
54
55 /*
56 * @brief Equality operator
57 */
58 bool operator==(const GeoDataSimpleData &other) const;
59 bool operator!=(const GeoDataSimpleData &other) const;
60
61 /*
62 * Provides information for downcasting a GeoNode
63 */
64 const char *nodeType() const override;
65
66 /*
67 * Seriliaze SimpleData to stream @p stream
68 */
69 virtual void pack(QDataStream &stream) const;
70
71 /*
72 * Unseriliaze SimpleData from stream @p stream
73 */
74 virtual void unpack(QDataStream &stream);
75
76private:
77 GeoDataSimpleDataPrivate *const d;
78};
79
80} // namespace Marble
81
82#endif // MARBLE_GEODATASIMPLEDATA_H
QString name(GameStandardAction id)
KIOCORE_EXPORT bool operator!=(const UDSEntry &entry, const UDSEntry &other)
KIOCORE_EXPORT bool operator==(const UDSEntry &entry, const UDSEntry &other)
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 4 2024 16:37:03 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.