marble
#include <MarbleClock.h>

Signals | |
void | timeChanged () |
void | updateIntervalChanged (int seconds) |
Public Member Functions | |
MarbleClock (QObject *parent=0) | |
~MarbleClock () | |
QDateTime | dateTime () const |
qreal | dayFraction () const |
void | setDateTime (const QDateTime &datetime) |
void | setSpeed (int speed) |
void | setTimezone (int timeInSec) |
void | setUpdateInterval (int seconds) |
int | speed () const |
int | timezone () const |
int | updateInterval () |
Detailed Description
Definition at line 25 of file MarbleClock.h.
Constructor & Destructor Documentation
|
explicit |
Definition at line 80 of file MarbleClock.cpp.
Marble::MarbleClock::~MarbleClock | ( | ) |
Definition at line 90 of file MarbleClock.cpp.
Member Function Documentation
QDateTime Marble::MarbleClock::dateTime | ( | ) | const |
Returns the internal date and time.
Definition at line 110 of file MarbleClock.cpp.
qreal Marble::MarbleClock::dayFraction | ( | ) | const |
Determine how much of the current day has elapsed.
- Returns
- A value between 0 and 1 corresponding to the fraction of the day that has elapsed
Definition at line 95 of file MarbleClock.cpp.
void Marble::MarbleClock::setDateTime | ( | const QDateTime & | datetime | ) |
Sets the internal date and time a custom one.
- Parameters
-
datetime The custom date and time
Definition at line 104 of file MarbleClock.cpp.
void Marble::MarbleClock::setSpeed | ( | int | speed | ) |
Sets the speed of the timer which is how fast the marble clock can run relative to actual speed of time.
- Parameters
-
speed The new speed (integer)
Definition at line 131 of file MarbleClock.cpp.
void Marble::MarbleClock::setTimezone | ( | int | timeInSec | ) |
Sets the timezone of the clock.
- Parameters
-
timeInSec The new timezone ( in seconds w.r.t. UTC )
Definition at line 142 of file MarbleClock.cpp.
void Marble::MarbleClock::setUpdateInterval | ( | int | seconds | ) |
Set the interval at which dateTime() is updated and timeChanged() is emitted.
- Parameters
-
seconds The interval in seconds
- See also
- updateInterval
Definition at line 115 of file MarbleClock.cpp.
int Marble::MarbleClock::speed | ( | ) | const |
Returns the speed of the timer.
Definition at line 126 of file MarbleClock.cpp.
|
signal |
the timeChanged signal will be triggered at updateInterval() rate or at most every second.
int Marble::MarbleClock::timezone | ( | ) | const |
Returns the timezone of the clock.
Definition at line 137 of file MarbleClock.cpp.
int Marble::MarbleClock::updateInterval | ( | ) |
Returns the interval at which dateTime() is updated and timeChanged() is emitted, The default is 60 seconds.
- Returns
- The interval in seconds.
- See also
- setUpdateInterval
Definition at line 121 of file MarbleClock.cpp.
|
signal |
Emitted when setUpdateInterval() is called.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:56 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.