}
if (m_automaticUpdateRequest && m_userMoved) {
- requestUpdateLocation(tr("Automatic location update"));
+ requestUpdateLocation(tr("Automatic location update."));
m_automaticUpdateRequest = false;
m_userMoved = false;
}
{
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)
accuracy(positionInfo));
}
- if (m_powerSave) {
+ if (m_powerSave)
m_liblocationWrapper->stopUpdates();
- qWarning() << __PRETTY_FUNCTION__ << "liblocation:stop()";
- }
}
void GPSPositionPrivate::locationError(const QString &errorMessage)
void GPSPositionPrivate::enablePowerSave(bool enabled)
{
qDebug() << __PRETTY_FUNCTION__;
+
+ Q_UNUSED(enabled);
}
bool GPSPositionPrivate::isInitialized()
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)