code rearrangement 13/80613/3
authorchanywa <cbible.kim@samsung.com>
Tue, 19 Jul 2016 06:38:22 +0000 (15:38 +0900)
committerchanywa <cbible.kim@samsung.com>
Tue, 19 Jul 2016 07:00:46 +0000 (16:00 +0900)
Change-Id: I8c37fca23c18b267c4e1af6b795f9411612c3b47

include/maps_extra_types.h
src/api/maps_place.cpp
src/api/maps_view.cpp
src/api/maps_view_object.cpp

index 8b8b54e..74f1fd3 100644 (file)
@@ -1158,9 +1158,9 @@ int maps_item_hashtable_free_float(void *data);
  * \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
@@ -1188,9 +1188,9 @@ int maps_item_hashtable_set_string(maps_item_hashtable_h table,
  * \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
@@ -1218,9 +1218,9 @@ int maps_item_hashtable_set_int(maps_item_hashtable_h table, const char *key,
  * \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
@@ -1266,7 +1266,7 @@ int maps_item_hashtable_set_float(maps_item_hashtable_h table,
  * 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
@@ -1302,9 +1302,9 @@ int maps_item_hashtable_set(maps_item_hashtable_h table, const char *key,
  * @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
@@ -1328,9 +1328,9 @@ int maps_item_hashtable_get_string(maps_item_hashtable_h table,
  * 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
@@ -1354,9 +1354,9 @@ int maps_item_hashtable_get_int(maps_item_hashtable_h table, const char *key,
  * 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
@@ -1380,9 +1380,9 @@ int maps_item_hashtable_get_float(maps_item_hashtable_h table,
  * @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
@@ -1402,7 +1402,7 @@ int maps_item_hashtable_get(maps_item_hashtable_h table, const char *key,
  * @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
@@ -1428,7 +1428,7 @@ int maps_item_hashtable_remove(maps_item_hashtable_h table, const char *key);
  *
  * @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()
@@ -1450,8 +1450,7 @@ typedef bool(*maps_item_hashtable_foreach_cb) (int index, int total,
  * @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
@@ -1478,7 +1477,7 @@ int maps_item_hashtable_foreach(maps_item_hashtable_h 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[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
index c9e9e00..c57803a 100644 (file)
@@ -629,12 +629,10 @@ EXPORT_API int maps_place_set_categories(maps_place_h place, const maps_item_lis
                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)
@@ -643,12 +641,10 @@ EXPORT_API int maps_place_set_attributes(maps_place_h place, const maps_item_lis
                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)
@@ -657,12 +653,10 @@ EXPORT_API int maps_place_set_contacts(maps_place_h place, const maps_item_list_
                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)
@@ -671,12 +665,10 @@ EXPORT_API int maps_place_set_editorials(maps_place_h place, const maps_item_lis
                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)
@@ -697,12 +689,10 @@ EXPORT_API int maps_place_set_reviews(maps_place_h place, const maps_item_list_h
                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,
index ed5fab8..968a403 100644 (file)
@@ -506,11 +506,8 @@ static void __maps_view_create_panel(maps_view_h view, Evas_Object *obj)
 /* 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;
 
@@ -1425,11 +1422,8 @@ EXPORT_API int maps_view_get_screen_location(const maps_view_h view, int *x, int
 
 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;
 
@@ -1462,7 +1456,6 @@ EXPORT_API int maps_view_resize(maps_view_h view, int width, int height)
 
 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;
 
@@ -1476,7 +1469,6 @@ EXPORT_API int maps_view_set_visibility(maps_view_h view, bool visible)
 
 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;
 
index eacb9bd..6aafe45 100644 (file)
@@ -587,7 +587,8 @@ EXPORT_API int maps_view_object_get_visible(const maps_view_object_h object, boo
 * 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;
@@ -602,15 +603,13 @@ EXPORT_API int maps_view_object_polyline_set_polyline(maps_view_object_h polylin
        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;
@@ -624,7 +623,6 @@ EXPORT_API int maps_view_object_polyline_foreach_point(maps_view_object_h polyli
        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)
 {
@@ -643,9 +641,7 @@ EXPORT_API int maps_view_object_polyline_set_color(maps_view_object_h polyline,
        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;
 }
@@ -690,9 +686,7 @@ EXPORT_API int maps_view_object_polyline_set_width(maps_view_object_h polyline,
        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;
 }
@@ -732,9 +726,7 @@ EXPORT_API int maps_view_object_polygon_set_polygon(maps_view_object_h polygon,
        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;
 }
@@ -773,9 +765,7 @@ EXPORT_API int maps_view_object_polygon_set_fill_color(maps_view_object_h polygo
        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;
 }