• 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
MarbleClock.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 2007-2008 David Roberts <dvdr18@gmail.com>
9 // Copyright 2010 Harshit Jain <hjain.itbhu@gmail.com>
10 //
11 
12 #ifndef MARBLE_MARBLECLOCK_H
13 #define MARBLE_MARBLECLOCK_H
14 
15 #include "geodata_export.h"
16 
17 #include <QObject>
18 #include <QDateTime>
19 
20 namespace Marble
21 {
22 
23 class MarbleClockPrivate;
24 
25 class GEODATA_EXPORT MarbleClock : public QObject
26 {
27  Q_OBJECT
28 
29  public:
30  explicit MarbleClock( QObject* parent = 0 );
31 
32  ~MarbleClock();
33 
38  qreal dayFraction() const;
39 
40  Q_SIGNALS:
45  void timeChanged();
46 
50  void updateIntervalChanged( int seconds );
51 
52 public:
53 
58  void setDateTime( const QDateTime& datetime );
59 
63  QDateTime dateTime() const;
64 
70  void setUpdateInterval( int seconds );
71 
78  int updateInterval() const;
79 
84  void setSpeed( int speed );
85 
89  int speed() const;
90 
95  void setTimezone( int timeInSec );
96 
100  int timezone() const;
101 
102  private:
103  Q_DISABLE_COPY( MarbleClock )
104 
105  Q_PRIVATE_SLOT( d, void timerTimeout() )
106 
107  MarbleClockPrivate* const d;
108 
109  friend class MarbleClockPrivate;
110 };
111 
112 }
113 #endif
QObject
GEODATA_EXPORT
#define GEODATA_EXPORT
Definition: geodata_export.h:22
geodata_export.h
Marble::MarbleClock
Definition: MarbleClock.h:25
QDateTime
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:40 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