Marble

GeoDataSimpleArrayData.h
1// SPDX-License-Identifier: LGPL-2.1-or-later
2//
3// SPDX-FileCopyrightText: 2011 Niko Sams <niko.sams@gmail.com>
4//
5
6#ifndef MARBLE_GEODATASIMPLEARRAYDATA_H
7#define MARBLE_GEODATASIMPLEARRAYDATA_H
8
9#include "GeoDataObject.h"
10
11class QVariant;
12
13namespace Marble
14{
15
16class GeoDataSimpleArrayDataPrivate;
17
18/**
19 */
20class GEODATA_EXPORT GeoDataSimpleArrayData : public GeoDataObject
21{
22public:
23 GeoDataSimpleArrayData();
24 GeoDataSimpleArrayData(const GeoDataSimpleArrayData &other);
25 bool operator==(const GeoDataSimpleArrayData &other) const;
26 bool operator!=(const GeoDataSimpleArrayData &other) const;
27 ~GeoDataSimpleArrayData() override;
28
29 /**
30 * Returns the number of value in the array
31 */
32 int size() const;
33
34 /**
35 * Returns the value at index @p index
36 */
37 QVariant valueAt(int index) const;
38
39 /**
40 * Returns all values in the array
41 */
42 QList<QVariant> valuesList() const;
43
44 /**
45 * Append a value to the array
46 */
47 void append(const QVariant &value);
48
49 const char *nodeType() const override;
50 void pack(QDataStream &stream) const override;
51 void unpack(QDataStream &stream) override;
52
53private:
54 GeoDataSimpleArrayDataPrivate *const d;
55};
56
57}
58
59#endif // MARBLE_GEODATASIMPLEARRAYDATA_H
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.