* \n This function uses implicitly maps_item_hashtable_clone_string() and
* maps_item_hashtable_free_string().
*
- * @param[in] table The handle of the table
- * @param[in] key The string value of "key"
- * @param[in] value The string (char*) value
+ * @param[in] table The handle of the table
+ * @param[in] key The string value of "key"
+ * @param[in] value The string (char*) value
* @return 0 on success, otherwise a negative error value
* @retval #MAPS_ERROR_NONE Successful
* @retval #MAPS_ERROR_INVALID_PARAMETER Invalid parameter
* \n This function uses implicitly maps_item_hashtable_clone_int() and
* maps_item_hashtable_free_int().
*
- * @param[in] table The handle of the table
- * @param[in] key The string value of "key"
- * @param[in] value The integer value
+ * @param[in] table The handle of the table
+ * @param[in] key The string value of "key"
+ * @param[in] value The integer value
* @return 0 on success, otherwise a negative error value
* @retval #MAPS_ERROR_NONE Successful
* @retval #MAPS_ERROR_INVALID_PARAMETER Invalid parameter
* \n This function uses implicitly maps_item_hashtable_clone_int() and
* maps_item_hashtable_free_int().
*
- * @param[in] table The handle of the table
+ * @param[in] table The handle of the table
* @param[in] key The string value of "key"
- * @param[in] value The floating point numeric value
+ * @param[in] value The floating point numeric value
* @return 0 on success, otherwise a negative error value
* @retval #MAPS_ERROR_NONE Successful
* @retval #MAPS_ERROR_INVALID_PARAMETER Invalid parameter
* and @a value must be released.
*
* @param[in] table The handle of the table
- * @param[in] key The string value of "key"
+ * @param[in] key The string value of "key"
* @param[in] value The value
* @param[in] clone_func The function for cloning the value
* @param[in] free_func The function for freeing the value
* @since_tizen @if MOBILE 2.4 @elseif WEARABLE 2.3.2 @endif
* @remark @a value must be released using free().
*
- * @param[in] table The handle of the table
- * @param[in] key The string value of "key"
- * @param[out] value The string (char*) value
+ * @param[in] table The handle of the table
+ * @param[in] key The string value of "key"
+ * @param[out] value The string (char*) value
* @return 0 on success, otherwise a negative error value
* @retval #MAPS_ERROR_NONE Successful
* @retval #MAPS_ERROR_INVALID_PARAMETER Invalid parameter
* value in the Hash Table.
* @since_tizen @if MOBILE 2.4 @elseif WEARABLE 2.3.2 @endif
*
- * @param[in] table The handle of the table
- * @param[in] key The string value of "key"
- * @param[out] value The integer value
+ * @param[in] table The handle of the table
+ * @param[in] key The string value of "key"
+ * @param[out] value The integer value
* @return 0 on success, otherwise a negative error value
* @retval #MAPS_ERROR_NONE Successful
* @retval #MAPS_ERROR_INVALID_PARAMETER Invalid parameter
* point numeric value in the Hash Table.
* @since_tizen @if MOBILE 2.4 @elseif WEARABLE 2.3.2 @endif
*
- * @param[in] table The handle of the table
+ * @param[in] table The handle of the table
* @param[in] key The string value of "key"
- * @param[out] value The floating point numeric value
+ * @param[out] value The floating point numeric value
* @return 0 on success, otherwise a negative error value
* @retval #MAPS_ERROR_NONE Successful
* @retval #MAPS_ERROR_INVALID_PARAMETER Invalid parameter
* @since_tizen @if MOBILE 2.4 @elseif WEARABLE 2.3.2 @endif
* @remark Th @a value must be released by you.
*
- * @param[in] table The handle of the table
+ * @param[in] table The handle of the table
* @param[in] key The string value of "key"
- * @param[out] value The corresponding value of "value"
+ * @param[out] value The corresponding value of "value"
* @return 0 on success, otherwise a negative error value
* @retval #MAPS_ERROR_NONE Successful
* @retval #MAPS_ERROR_INVALID_PARAMETER Invalid parameter
* @since_tizen @if MOBILE 2.4 @elseif WEARABLE 2.3.2 @endif
* @remarks The resources, used by item will be released automatically.
*
- * @param[in] table The handle of the table
+ * @param[in] table The handle of the table
* @param[in] key The string value of "key"
* @return 0 on success, otherwise a negative error value
* @retval #MAPS_ERROR_NONE Successful
*
* @param[in] index The current index of item
* @param[in] total The total amount of items
- * @param[in] key The string value of "key"
+ * @param[in] key The string value of "key"
* @param[in] value The corresponding value of "value"
* @param[in] user_data The user data passed from
* maps_item_hashtable_foreach()
* @since_tizen @if MOBILE 2.4 @elseif WEARABLE 2.3.2 @endif
*
* @param[in] table The handle of table
- * @param[in] callback The callback to be invoked for delivering each
- * key-value pair
+ * @param[in] callback The callback to be invoked for delivering each key-value pair
* @param[in] user_data The user data to be passed to the callback
* function
* @return 0 on success, otherwise a negative error value
* @since_tizen @if MOBILE 2.4 @elseif WEARABLE 2.3.2 @endif
*
* @param[in] table The handle of the table
- * @param[in] key The string value of "key"
+ * @param[in] key The string value of "key"
* @param[out] contains The flag of key presence
* @return 0 on success, otherwise a negative error value
* @retval #MAPS_ERROR_NONE Successful
return MAPS_ERROR_INVALID_PARAMETER;
maps_place_s *p = (maps_place_s *) place;
if (p->categories) {
- maps_item_list_remove_all(p->categories,
- maps_place_category_destroy);
+ maps_item_list_remove_all(p->categories, maps_place_category_destroy);
maps_item_list_destroy(p->categories);
}
- return maps_item_list_clone(categories, maps_place_category_clone,
- &p->categories);
+ return maps_item_list_clone(categories, maps_place_category_clone, &p->categories);
}
EXPORT_API int maps_place_set_attributes(maps_place_h place, const maps_item_list_h attributes)
return MAPS_ERROR_INVALID_PARAMETER;
maps_place_s *p = (maps_place_s *) place;
if (p->attribute) {
- maps_item_list_remove_all(p->attribute,
- maps_place_attribute_destroy);
+ maps_item_list_remove_all(p->attribute, maps_place_attribute_destroy);
maps_item_list_destroy(p->attribute);
}
- return maps_item_list_clone(attributes, maps_place_attribute_clone,
- &p->attribute);
+ return maps_item_list_clone(attributes, maps_place_attribute_clone, &p->attribute);
}
EXPORT_API int maps_place_set_contacts(maps_place_h place, const maps_item_list_h contacts)
return MAPS_ERROR_INVALID_PARAMETER;
maps_place_s *p = (maps_place_s *) place;
if (p->contacts) {
- maps_item_list_remove_all(p->contacts,
- maps_place_contact_destroy);
+ maps_item_list_remove_all(p->contacts, maps_place_contact_destroy);
maps_item_list_destroy(p->contacts);
}
- return maps_item_list_clone(contacts, maps_place_contact_clone,
- &p->contacts);
+ return maps_item_list_clone(contacts, maps_place_contact_clone, &p->contacts);
}
EXPORT_API int maps_place_set_editorials(maps_place_h place, const maps_item_list_h editorials)
return MAPS_ERROR_INVALID_PARAMETER;
maps_place_s *p = (maps_place_s *) place;
if (p->editorials) {
- maps_item_list_remove_all(p->editorials,
- maps_place_editorial_destroy);
+ maps_item_list_remove_all(p->editorials, maps_place_editorial_destroy);
maps_item_list_destroy(p->editorials);
}
- return maps_item_list_clone(editorials, maps_place_editorial_clone,
- &p->editorials);
+ return maps_item_list_clone(editorials, maps_place_editorial_clone, &p->editorials);
}
EXPORT_API int maps_place_set_images(maps_place_h place, const maps_item_list_h images)
return MAPS_ERROR_INVALID_PARAMETER;
maps_place_s *p = (maps_place_s *) place;
if (p->reviews) {
- maps_item_list_remove_all(p->reviews,
- maps_place_review_destroy);
+ maps_item_list_remove_all(p->reviews, maps_place_review_destroy);
maps_item_list_destroy(p->reviews);
}
- return maps_item_list_clone(reviews, maps_place_review_clone,
- &p->reviews);
+ return maps_item_list_clone(reviews, maps_place_review_clone, &p->reviews);
}
EXPORT_API int maps_place_set_properties(maps_place_h place,
/* Create the panel and link it to the instance of Maps Service */
EXPORT_API int maps_view_create(maps_service_h maps, Evas_Object *obj, maps_view_h *view)
{
- /* Check if parameters are valid */
if (!maps || !obj || !view)
return MAPS_ERROR_INVALID_PARAMETER;
-
- /* Check if privileges enough */
if (!maps_condition_check_privilege())
return MAPS_ERROR_PERMISSION_DENIED;
EXPORT_API int maps_view_move(maps_view_h view, int x, int y)
{
- /* Check if internet feature is supported */
if (!maps_condition_check_feature())
return MAPS_ERROR_NOT_SUPPORTED;
-
- /* Check if parameters are valid */
if (!view)
return MAPS_ERROR_INVALID_PARAMETER;
EXPORT_API int maps_view_set_visibility(maps_view_h view, bool visible)
{
- /* Check if parameters are valid */
if (!view)
return MAPS_ERROR_INVALID_PARAMETER;
EXPORT_API int maps_view_get_visibility(const maps_view_h view, bool *visible)
{
- /* Check if parameters are valid */
if (!view || !visible)
return MAPS_ERROR_INVALID_PARAMETER;
* Polyline
*/
-EXPORT_API int maps_view_object_polyline_set_polyline(maps_view_object_h polyline, maps_coordinates_list_h points)
+EXPORT_API int maps_view_object_polyline_set_polyline(maps_view_object_h polyline,
+ maps_coordinates_list_h points)
{
if (!polyline || !points)
return MAPS_ERROR_INVALID_PARAMETER;
p->points = points;
/* Notify view, that the object specific preferences is changed */
- _maps_view_on_object_operation(__get_view(polyline),
- polyline,
- MAPS_VIEW_OBJECT_CHANGE);
+ _maps_view_on_object_operation(__get_view(polyline), polyline, MAPS_VIEW_OBJECT_CHANGE);
return MAPS_ERROR_NONE;
}
EXPORT_API int maps_view_object_polyline_foreach_point(maps_view_object_h polyline,
- maps_coordinates_cb callback, void *user_data)
+ maps_coordinates_cb callback, void *user_data)
{
if (!polyline || !callback)
return MAPS_ERROR_INVALID_PARAMETER;
return maps_coordinates_list_foreach(p->points, callback, user_data);
}
-
EXPORT_API int maps_view_object_polyline_set_color(maps_view_object_h polyline,
unsigned char r, unsigned char g, unsigned char b, unsigned char a)
{
p->a = a;
/* Notify view, that the object specific preferences is changed */
- _maps_view_on_object_operation(__get_view(polyline),
- polyline,
- MAPS_VIEW_OBJECT_CHANGE);
+ _maps_view_on_object_operation(__get_view(polyline), polyline, MAPS_VIEW_OBJECT_CHANGE);
return MAPS_ERROR_NONE;
}
p->width = width;
/* Notify view, that the object specific preferences is changed */
- _maps_view_on_object_operation(__get_view(polyline),
- polyline,
- MAPS_VIEW_OBJECT_CHANGE);
+ _maps_view_on_object_operation(__get_view(polyline), polyline, MAPS_VIEW_OBJECT_CHANGE);
return MAPS_ERROR_NONE;
}
p->points = points;
/* Notify view, that the object specific preferences is changed */
- _maps_view_on_object_operation(__get_view(polygon),
- polygon,
- MAPS_VIEW_OBJECT_CHANGE);
+ _maps_view_on_object_operation(__get_view(polygon), polygon, MAPS_VIEW_OBJECT_CHANGE);
return MAPS_ERROR_NONE;
}
p->a = a;
/* Notify view, that the object specific preferences is changed */
- _maps_view_on_object_operation(__get_view(polygon),
- polygon,
- MAPS_VIEW_OBJECT_CHANGE);
+ _maps_view_on_object_operation(__get_view(polygon), polygon, MAPS_VIEW_OBJECT_CHANGE);
return MAPS_ERROR_NONE;
}