Removed qWarnings and modified src/src.pro.
authorJussi Laitinen <jupe@l3l7588.ixonos.local>
Tue, 22 Jun 2010 11:06:28 +0000 (14:06 +0300)
committerJussi Laitinen <jupe@l3l7588.ixonos.local>
Tue, 22 Jun 2010 11:06:28 +0000 (14:06 +0300)
src/engine/engine.cpp
src/gps/gpspositionprivateliblocation.cpp
src/gps/gpspositionprivatestub.cpp
src/src.pro

index 65ed9a2..8cff6f4 100644 (file)
@@ -434,7 +434,7 @@ void SituareEngine::saveGPSPosition(QPointF position)
     }
 
     if (m_automaticUpdateRequest && m_userMoved) {
-        requestUpdateLocation(tr("Automatic location update"));
+        requestUpdateLocation(tr("Automatic location update."));
         m_automaticUpdateRequest = false;
         m_userMoved = false;
     }
index 3345ee7..4b175c4 100644 (file)
@@ -170,13 +170,10 @@ void GPSPositionPrivate::requestUpdate()
 {
     qDebug() << __PRETTY_FUNCTION__;
 
-    if (m_powerSave) {
+    if (m_powerSave)
         m_liblocationWrapper->startUpdates();
-        qWarning() << __PRETTY_FUNCTION__ << "liblocation:start()";
-    }
-    else {
+    else
         requestLastPosition();
-    }
 }
 
 void GPSPositionPrivate::positionUpdated(const GeoPositionInfo &positionInfo)
@@ -189,10 +186,8 @@ void GPSPositionPrivate::positionUpdated(const GeoPositionInfo &positionInfo)
                       accuracy(positionInfo));
     }
 
-    if (m_powerSave) {
+    if (m_powerSave)
         m_liblocationWrapper->stopUpdates();
-        qWarning() << __PRETTY_FUNCTION__ << "liblocation:stop()";
-    }
 }
 
 void GPSPositionPrivate::locationError(const QString &errorMessage)
index 18e2030..e8cb5ca 100644 (file)
@@ -36,6 +36,8 @@ GPSPositionPrivate::GPSPositionPrivate(QObject *parent)
 void GPSPositionPrivate::enablePowerSave(bool enabled)
 {
     qDebug() << __PRETTY_FUNCTION__;
+
+    Q_UNUSED(enabled);
 }
 
 bool GPSPositionPrivate::isInitialized()
index 2af0307..577dca8 100644 (file)
@@ -161,9 +161,11 @@ simulator {
     message(install headers with: apt-get install libqtm-dev)
 } else {
     SOURCES += gps/gpspositionprivatestub.cpp \
-               network/networkhandlerprivatestub.cpp
+               network/networkhandlerprivatestub.cpp \
+               engine/mceprivatestub.cpp
     HEADERS += gps/gpspositionprivatestub.h \
-               network/networkhandlerprivatestub.h
+               network/networkhandlerprivatestub.h \
+               engine/mceprivatestub.h
     message(QJson built in)
     message(Make sure you have QJson development headers installed)
     message(install headers with: sudo apt-get install libqjson-dev)