removed wrong contacts, added authors
[platform/core/location/lbs-location.git] / location / manager / location-passive.c
index eb70428..4bf8b12 100755 (executable)
@@ -3,9 +3,6 @@
  *
  * Copyright (c) 2010-2013 Samsung Electronics Co., Ltd. All rights reserved.
  *
- * Contact: Youngae Kang <youngae.kang@samsung.com>, Minjune Kim <sena06.kim@samsung.com>
- *                     Genie Kim <daejins.kim@samsung.com>
- *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
@@ -33,7 +30,6 @@
 #include "location-ielement.h"
 #include "location-signaling-util.h"
 #include "location-common-util.h"
-#include "location-privacy.h"
 
 #include <vconf-internal-location-keys.h>
 
@@ -150,6 +146,11 @@ static void passive_location_cb(gboolean enabled, LocationPosition *pos, Locatio
        LocationPassivePrivate *priv = GET_PRIVATE(self);
        g_return_if_fail(priv);
 
+       if (priv->min_interval != LOCATION_UPDATE_INTERVAL_NONE) {
+               distance_based_position_signaling(self, signals, enabled, pos, vel, acc,
+                                                       priv->min_interval, priv->min_distance, &(priv->enabled),
+                                                       &(priv->dist_updated_timestamp), &(priv->pos), &(priv->vel), &(priv->acc));
+       }
        location_signaling(self, signals, enabled, priv->boundary_list, pos, vel, acc,
                                                priv->pos_interval, priv->vel_interval, priv->loc_interval, &(priv->enabled),
                                                &(priv->pos_updated_timestamp), &(priv->vel_updated_timestamp),
@@ -358,7 +359,7 @@ static void location_passive_set_property(GObject *object, guint property_id, co
        }
        case PROP_MIN_DISTANCE: {
                gdouble distance = g_value_get_double(value);
-               LOCATION_LOGD("Set prop>> update-min-distance: %u", distance);
+               LOCATION_LOGD("Set prop>> update-min-distance: %f", distance);
                if (distance > 0) {
                        if (distance < LOCATION_MIN_DISTANCE_MAX)
                                priv->min_distance = distance;
@@ -372,7 +373,7 @@ static void location_passive_set_property(GObject *object, guint property_id, co
        }
        case PROP_SERVICE_STATUS: {
                gint enabled = g_value_get_int(value);
-               LOCATION_LOGD("Set prop>> PROP_SERVICE_STATUS: %u", enabled);
+               LOCATION_LOGD("Set prop>> PROP_SERVICE_STATUS: %d", enabled);
                priv->enabled = enabled;
                break;
        }