Marble

GeoDataTimePrimitive.cpp
1// SPDX-License-Identifier: LGPL-2.1-or-later
2//
3// SPDX-FileCopyrightText: 2010 Harshit Jain <hjain.itbhu@gmail.com>
4//
5
6// Own
7#include "GeoDataTimePrimitive.h"
8
9// Private
10#include "GeoDataTimePrimitive_p.h"
11
12// Qt
13#include <QDataStream>
14
15// GeoData
16#include "GeoDataTypes.h"
17
18namespace Marble
19{
20
21GeoDataTimePrimitive::GeoDataTimePrimitive()
22 : GeoDataObject()
23 , d(new GeoDataTimePrimitivePrivate)
24{
25}
26
27GeoDataTimePrimitive::GeoDataTimePrimitive(const GeoDataTimePrimitive &other)
28 : GeoDataObject(other)
29 , d(new GeoDataTimePrimitivePrivate(*other.d))
30{
31}
32
33GeoDataTimePrimitive::~GeoDataTimePrimitive()
34{
35 delete d;
36}
37
38GeoDataTimePrimitive &GeoDataTimePrimitive::operator=(const GeoDataTimePrimitive &other)
39{
40 GeoDataObject::operator=(other);
41 *d = *other.d;
42 return *this;
43}
44
45const char *GeoDataTimePrimitive::nodeType() const
46{
47 return GeoDataTypes::GeoDataTimePrimitiveType;
48}
49
50void GeoDataTimePrimitive::pack(QDataStream &stream) const
51{
52 GeoDataObject::pack(stream);
53}
54
55void GeoDataTimePrimitive::unpack(QDataStream &stream)
56{
57 GeoDataObject::unpack(stream);
58}
59
60}
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 Fri Dec 6 2024 12:08:53 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.