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
15class GeoDataSimpleArrayDataPrivate;
16
17/**
18 */
19class GEODATA_EXPORT GeoDataSimpleArrayData : public GeoDataObject
20{
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 *d;
55};
56
57}
58
59#endif // MARBLE_GEODATASIMPLEARRAYDATA_H
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 May 17 2024 11:49:23 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.