namespace Geolocation {
namespace {
static void positionChangedCallback(LocationObject *obj,
- guint type,
- gpointer data,
- gpointer accuracy,
- Geolocation* this_)
+ guint type,
+ gpointer data,
+ gpointer accuracy,
+ Geolocation* this_)
{
if (this_) {
this_->positionHasChanged(obj, type, data, accuracy);
}
long Geolocation::watchPosition(const EventPositionChangedEmitterPtr& emitter,
- long timeout,
- long maximumAge,
- bool highAccuracy)
+ long timeout,
+ long maximumAge,
+ bool highAccuracy)
{
initialize();
m_positionEmitters.attach(emitter);
}
void Geolocation::positionHasChanged(LocationObject *obj,
- guint type,
- gpointer data,
- gpointer accuracy)
+ guint type,
+ gpointer data,
+ gpointer accuracy)
{
LogDebug("Enter");
if (POSITION_UPDATED != type) {
return;
}
- m_location = location_new(convertMethodToPlatform(m_currentLocationMethod)); //may return NULL
+ //may return NULL
+ m_location = location_new(convertMethodToPlatform(m_currentLocationMethod));
+
if (NULL == m_location) {
ThrowMsg(Commons::PlatformException,
"Couldn't create new location object.");