2 * Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 #ifndef __MAPS_PLACE_IMAGE_PLUGIN_H__
18 #define __MAPS_PLACE_IMAGE_PLUGIN_H__
20 #include <maps_place_image.h>
23 * @deprecated Deprecated since 7.5.
24 * @ingroup CAPI_MAPS_PLUGIN_PLACE_MODULE
25 * @defgroup CAPI_MAPS_PLUGIN_PLACE_IMAGE_MODULE Image
27 * @file maps_place_image_plugin.h
28 * @brief This file contains the functions related to Place Image
29 * information, needed in plug-in development.
31 * @addtogroup CAPI_MAPS_PLUGIN_PLACE_IMAGE_MODULE
33 * @brief This provides APIs related to Place Image, used in Place
34 * Discovery and Search, needed in plug-in development.
42 * @deprecated Deprecated since 7.5.
43 * @brief Creates a new place image handle.
44 * @details This function creates a new place image handle and allocates all
46 * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 2.3.2 @endif
47 * @remarks @a image must be released using maps_place_image_destroy().
48 * \n @a image may be cloned using maps_place_image_clone().
50 * @param[out] image A handle of a new place image on success
51 * @return 0 on success, otherwise a negative error value
52 * @retval #MAPS_ERROR_NONE Successful
53 * @retval #MAPS_ERROR_OUT_OF_MEMORY Out of memory
54 * @retval #MAPS_ERROR_INVALID_PARAMETER Invalid parameter
55 * @retval #MAPS_ERROR_NOT_SUPPORTED Not supported
57 * @see maps_place_image_destroy()
58 * @see maps_place_image_clone()
60 int maps_place_image_create(maps_place_image_h *image);
63 * @deprecated Deprecated since 7.5.
64 * @brief Sets the place image ID.
65 * @details This function sets the place image ID.
66 * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 2.3.2 @endif
68 * @param[in] image The handle of place image
69 * @param[in] id The place image Id
70 * @return 0 on success, otherwise a negative error value
71 * @retval #MAPS_ERROR_NONE Successful
72 * @retval #MAPS_ERROR_INVALID_PARAMETER Invalid parameter
73 * @retval #MAPS_ERROR_NOT_SUPPORTED Not supported
75 * @pre @a image is created using maps_place_image_create().
77 * @see maps_place_image_create()
78 * @see maps_place_image_get_id()
80 int maps_place_image_set_id(maps_place_image_h image, const char *id);
83 * @deprecated Deprecated since 7.5.
84 * @brief Sets the place image URL.
85 * @details This function sets the place image URL.
86 * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 2.3.2 @endif
88 * @param[in] image The handle of place image
89 * @param[in] url The place image url
90 * @return 0 on success, otherwise a negative error value
91 * @retval #MAPS_ERROR_NONE Successful
92 * @retval #MAPS_ERROR_INVALID_PARAMETER Invalid parameter
93 * @retval #MAPS_ERROR_NOT_SUPPORTED Not supported
95 * @pre @a image is created using maps_place_image_create().
97 * @see maps_place_image_create()
98 * @see maps_place_image_get_url()
100 int maps_place_image_set_url(maps_place_image_h image, const char *url);
103 * @deprecated Deprecated since 7.5.
104 * @brief Sets the place image width.
105 * @details This function sets the place image width.
106 * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 2.3.2 @endif
108 * @param[in] image The handle of place image
109 * @param[in] width The place image width
110 * @return 0 on success, otherwise a negative error value
111 * @retval #MAPS_ERROR_NONE Successful
112 * @retval #MAPS_ERROR_INVALID_PARAMETER Invalid parameter
113 * @retval #MAPS_ERROR_NOT_SUPPORTED Not supported
115 * @pre @a image is created using maps_place_image_create().
117 * @see maps_place_image_create()
118 * @see maps_place_image_get_width()
120 int maps_place_image_set_width(maps_place_image_h image, const int width);
123 * @deprecated Deprecated since 7.5.
124 * @brief Sets the place image height.
125 * @details This function sets the place image height.
126 * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 2.3.2 @endif
128 * @param[in] image The handle of place image
129 * @param[in] height The place image height
130 * @return 0 on success, otherwise a negative error value
131 * @retval #MAPS_ERROR_NONE Successful
132 * @retval #MAPS_ERROR_INVALID_PARAMETER Invalid parameter
133 * @retval #MAPS_ERROR_NOT_SUPPORTED Not supported
135 * @pre @a image is created using maps_place_image_create().
137 * @see maps_place_image_create()
138 * @see maps_place_image_get_height()
140 int maps_place_image_set_height(maps_place_image_h image, const int height);
143 * @deprecated Deprecated since 7.5.
144 * @brief Sets the place image user link.
145 * @details This function sets the place image user link.
146 * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 2.3.2 @endif
148 * @param[in] image The handle of place image
149 * @param[in] user The place image user link
150 * @return 0 on success, otherwise a negative error value
151 * @retval #MAPS_ERROR_NONE Successful
152 * @retval #MAPS_ERROR_INVALID_PARAMETER Invalid parameter
153 * @retval #MAPS_ERROR_NOT_SUPPORTED Not supported
155 * @pre @a image is created using maps_place_image_create().
157 * @see maps_place_image_create()
158 * @see maps_place_image_get_user_link()
159 * @see #maps_place_link_object_h
161 int maps_place_image_set_user_link(maps_place_image_h image, const maps_place_link_object_h user);
164 * @deprecated Deprecated since 7.5.
165 * @brief Sets the place image media.
166 * @details This function sets the place image media.
167 * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 2.3.2 @endif
169 * @param[in] image The handle of place image
170 * @param[in] media The place image media
171 * @return 0 on success, otherwise a negative error value
172 * @retval #MAPS_ERROR_NONE Successful
173 * @retval #MAPS_ERROR_INVALID_PARAMETER Invalid parameter
174 * @retval #MAPS_ERROR_NOT_SUPPORTED Not supported
176 * @pre @a image is created using maps_place_image_create().
178 * @see maps_place_image_create()
179 * @see maps_place_image_get_media()
180 * @see #maps_place_media_h
182 int maps_place_image_set_media(maps_place_image_h image, const maps_place_media_h media);
190 #endif /* __MAPS_PLACE_IMAGE_PLUGIN_H__ */