X-Git-Url: http://git.maemo.org/git/?p=speedfreak;a=blobdiff_plain;f=Client%2Fmeasures.cpp;h=724e926f7f64aa0ce235ad23a2d00fd40be3716d;hp=c840ec0b16565089c3fdc0c0150a4e85f1c06406;hb=22dc1e626b0a47b33e5e13ec3ab117235e3f3beb;hpb=004ab54a25868348ec5c1399e1c7b6e5889fe714 diff --git a/Client/measures.cpp b/Client/measures.cpp index c840ec0..724e926 100644 --- a/Client/measures.cpp +++ b/Client/measures.cpp @@ -1,9 +1,38 @@ +/* + * CarMainWindow main class + * + * @author Janne Änäkkälä + * @copyright (c) 2010 Speed Freak team + * @license http://opensource.org/licenses/gpl-license.php GNU Public License + */ + #include "measures.h" Measures::Measures() { } +/** + * Initializes measures class's member variables. + */ +void Measures::initializeMembers() +{ + this->setTime10kmh(0); + this->setTime20kmh(0); + this->setTime30kmh(0); + this->setTime40kmh(0); + this->setTime50kmh(0); + this->setTime60kmh(0); + this->setTime70kmh(0); + this->setTime80kmh(0); + this->setTime90kmh(0); + this->setTime100kmh(0); +} + +/** + * Get the value of time10kmh + * @return time10kmh the time in qreal when speed has been 10 km/h + */ qreal Measures::getTime10kmh() { return time10kmh; @@ -54,6 +83,10 @@ qreal Measures::getTime100kmh() return time100kmh; } +/** + * Set the given time in to the time10kmh + * @param pTime is time in qreal + */ void Measures::setTime10kmh(qreal pTime) { time10kmh = pTime;