*
* 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
#include "location-ielement.h"
#include "location-signaling-util.h"
#include "location-common-util.h"
-#include "location-privacy.h"
#include <vconf-internal-location-keys.h>
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),
}
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;
}
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;
}