• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

marble

  • sources
  • kde-4.14
  • kdeedu
  • marble
  • src
  • lib
  • marble
  • geodata
  • data
GeoDataTimeStamp.h
Go to the documentation of this file.
1 //
2 // This file is part of the Marble Virtual Globe.
3 //
4 // This program is free software licensed under the GNU LGPL. You can
5 // find a copy of this license in LICENSE.txt in the top directory of
6 // the source code.
7 //
8 // Copyright 2010 Harshit Jain <hjain.itbhu@gmail.com>
9 //
10 
11 #ifndef MARBLE_GEODATATIMESTAMP_H
12 #define MARBLE_GEODATATIMESTAMP_H
13 
14 #include <QString>
15 #include <QDateTime>
16 
17 #include "GeoDataObject.h"
18 #include "GeoDataTimePrimitive.h"
19 
20 #include "geodata_export.h"
21 
22 namespace Marble
23 {
24 
25 class GeoDataTimeStampPrivate;
26 
27 class GEODATA_EXPORT GeoDataTimeStamp : public GeoDataTimePrimitive
28 {
29  public:
30  enum TimeResolution {
31  SecondResolution,
32  DayResolution,
33  MonthResolution,
34  YearResolution
35  };
36 
37  GeoDataTimeStamp();
38  GeoDataTimeStamp( const GeoDataTimeStamp& other );
39  virtual ~GeoDataTimeStamp();
40 
44  GeoDataTimeStamp& operator=( const GeoDataTimeStamp& other );
45 
49  bool operator==( const GeoDataTimeStamp& other ) const;
50  bool operator!=( const GeoDataTimeStamp& other ) const;
51 
52 
54  virtual const char* nodeType() const;
55 
59  QDateTime when() const;
60 
65  void setWhen( const QDateTime& when );
66 
67  void setResolution( TimeResolution resolution );
68 
69  TimeResolution resolution() const;
70 
75  virtual void pack( QDataStream& stream ) const;
76 
81  virtual void unpack( QDataStream& stream );
82 
83  private:
84  GeoDataTimeStampPrivate * const d;
85 };
86 
87 }
88 
89 #endif
Marble::GeoDataTimePrimitive
a base class for the style classes
Definition: GeoDataTimePrimitive.h:34
Marble::GeoDataTimeStamp
Definition: GeoDataTimeStamp.h:27
Marble::GeoDataTimeStamp::MonthResolution
Definition: GeoDataTimeStamp.h:33
QDataStream
Marble::operator==
bool operator==(const DownloadPolicyKey &lhs, const DownloadPolicyKey &rhs)
Definition: DownloadPolicy.h:49
Marble::GeoDataTimeStamp::DayResolution
Definition: GeoDataTimeStamp.h:32
GeoDataObject.h
Marble::operator!=
bool operator!=(GeoDataLatLonBox const &lhs, GeoDataLatLonBox const &rhs)
Definition: GeoDataLatLonBox.cpp:59
GeoDataTimePrimitive.h
Marble::GeoDataTimeStamp::SecondResolution
Definition: GeoDataTimeStamp.h:31
Marble::GeoDataTimeStamp::TimeResolution
TimeResolution
Definition: GeoDataTimeStamp.h:30
GEODATA_EXPORT
#define GEODATA_EXPORT
Definition: geodata_export.h:22
geodata_export.h
Marble::GeoDataTimeStampPrivate
Definition: GeoDataTimeStamp_p.h:22
QDateTime
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:39 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

marble

Skip menu "marble"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal