[Marble-commits] KDE/kdeedu/marble/src/lib
Jens-Michael Hoffmann
jensmh at gmx.de
Fri May 7 17:04:37 CEST 2010
SVN commit 1124012 by jmhoffmann:
Separate interface and implementation.
M +25 -4 ExtDateTime.h
--- trunk/KDE/kdeedu/marble/src/lib/ExtDateTime.h #1124011:1124012
@@ -46,12 +46,12 @@
/**
* @brief Sets the internal date and time with the current one
**/
- void setNow() {m_datetime = QDateTime::currentDateTime().toUTC();}
+ void setNow();
/**
* @brief Returns the internal date and time
**/
- QDateTime datetime() {return m_datetime;}
+ QDateTime datetime();
/**
* @brief Sets the internal date and time a custom one
@@ -62,13 +62,13 @@
/**
* @brief Returns the speed of the timer
**/
- int getSpeed() {return m_speed;};
+ int getSpeed();
/**
* @brief Sets the speed of the timer
* @param speed The new speed (integer)
**/
- void setSpeed(int speed) {m_speed = speed;}
+ void setSpeed(int speed);
private Q_SLOTS:
void timerTimeout();
@@ -84,6 +84,27 @@
int m_lastmin;
};
+
+inline void ExtDateTime::setNow()
+{
+ m_datetime = QDateTime::currentDateTime().toUTC();
}
+inline QDateTime ExtDateTime::datetime()
+{
+ return m_datetime;
+}
+
+inline int ExtDateTime::getSpeed()
+{
+ return m_speed;
+}
+
+inline void ExtDateTime::setSpeed( int speed )
+{
+ m_speed = speed;
+}
+
+}
+
#endif
More information about the Marble-commits
mailing list