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 <QString>
14#include <QDataStream>
15
16
17namespace Marble
18{
19
20class GeoDataSimpleDataPrivate;
21
22/**
23 */
24class GEODATA_EXPORT GeoDataSimpleData : public GeoNode
25{
26public:
27 GeoDataSimpleData();
28 GeoDataSimpleData( const GeoDataSimpleData &other );
29 ~GeoDataSimpleData() override;
30
31 /*
32 * @brief Returns the value of name attribute of SimpleData tag
33 */
34 QString name() const;
35
36 /*
37 * @brief Set the name of SimpleData to @p name
38 */
39 void setName( const QString &name );
40
41 /*
42 * @brief Returns the data defined by SimpleData
43 */
44 QString data() const;
45
46 /*
47 * @brief Set the value of data defined by SimpleData to @p data
48 */
49 void setData( const QString &data );
50
51 /*
52 * Assignment operator
53 */
54 GeoDataSimpleData &operator=( const GeoDataSimpleData &rhs );
55
56 /*
57 * @brief Equality operator
58 */
59 bool operator==( const GeoDataSimpleData &other ) const;
60 bool operator!=( const GeoDataSimpleData &other ) const;
61
62 /*
63 * Provides information for downcasting a GeoNode
64 */
65 const char* nodeType() const override;
66
67 /*
68 * Seriliaze SimpleData to stream @p stream
69 */
70 virtual void pack( QDataStream &stream ) const;
71
72 /*
73 * Unseriliaze SimpleData from stream @p stream
74 */
75 virtual void unpack( QDataStream &stream );
76
77private:
78 GeoDataSimpleDataPrivate * const d;
79};
80
81} // namespace Marble
82
83#endif // MARBLE_GEODATASIMPLEDATA_H
QString name(StandardAction id)
Binds a QML item to a specific geodetic location in screen coordinates.
bool operator==(const QGraphicsApiFilter &reference, const QGraphicsApiFilter &sample)
bool operator!=(const QGraphicsApiFilter &reference, const QGraphicsApiFilter &sample)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jun 21 2024 12:00:06 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.