* limitations under the License.
*/
-#include <map>
+#include <tizen.h>
#include <Json.h>
+#include <context_places_internal.h>
+#if 0
+#include <map>
#include <MyPlaceTypes.h>
#include <Types.h>
-#include <context_places_internal.h>
#include "DBusClient.h"
+#endif
/* XXX: temporary !!!!! Example JSON output:
---------------------------------------------------------------------------------------
}
};
-SO_EXPORT int context_places_get_list(context_places_list_h* list)
+EXPORT_API int context_places_get_list(context_places_list_h* list)
{
+#if 0
ASSERT_NOT_NULL(list);
*list = NULL;
(*list)->current = 0;
return CONTEXT_PLACES_ERROR_NONE;
+#endif
+ return TIZEN_ERROR_NOT_SUPPORTED;
}
-SO_EXPORT int context_places_list_get_count(context_places_list_h list, int* count)
+EXPORT_API int context_places_list_get_count(context_places_list_h list, int* count)
{
+#if 0
ASSERT_NOT_NULL(list && count);
*count = 0;
*count = result;
return CONTEXT_PLACES_ERROR_NONE;
+#endif
+ return TIZEN_ERROR_NOT_SUPPORTED;
}
-SO_EXPORT int context_places_list_get_current(context_places_list_h list, context_places_place_h* record)
+EXPORT_API int context_places_list_get_current(context_places_list_h list, context_places_place_h* record)
{
+#if 0
ASSERT_NOT_NULL(list && record);
*record = NULL;
(*record)->jPlace = tmp_record;
return CONTEXT_PLACES_ERROR_NONE;
+#endif
+ return TIZEN_ERROR_NOT_SUPPORTED;
}
-SO_EXPORT int context_places_list_move_first(context_places_list_h list)
+EXPORT_API int context_places_list_move_first(context_places_list_h list)
{
+#if 0
ASSERT_NOT_NULL(list);
list->current = 0;
return CONTEXT_PLACES_ERROR_NONE;
+#endif
+ return TIZEN_ERROR_NOT_SUPPORTED;
}
-SO_EXPORT int context_places_list_move_next(context_places_list_h list)
+EXPORT_API int context_places_list_move_next(context_places_list_h list)
{
+#if 0
ASSERT_NOT_NULL(list);
IF_FAIL_RETURN_TAG(
list->current++;
return CONTEXT_PLACES_ERROR_NONE;
+#endif
+ return TIZEN_ERROR_NOT_SUPPORTED;
}
-SO_EXPORT int context_places_list_destroy(context_places_list_h list)
+EXPORT_API int context_places_list_destroy(context_places_list_h list)
{
+#if 0
ASSERT_NOT_NULL(list);
delete list;
return CONTEXT_PLACES_ERROR_NONE;
+#endif
+ return TIZEN_ERROR_NOT_SUPPORTED;
}
-SO_EXPORT int context_places_place_get_category(context_places_place_h place, context_places_categ_id_e* value, double* confidence)
+EXPORT_API int context_places_place_get_category(context_places_place_h place, context_places_categ_id_e* value, double* confidence)
{
+#if 0
ASSERT_NOT_NULL(place && value && confidence);
int categId;
*confidence = categConfidence;
return CONTEXT_PLACES_ERROR_NONE;
+#endif
+ return TIZEN_ERROR_NOT_SUPPORTED;
}
-SO_EXPORT int context_places_place_get_name(context_places_place_h place, char** name)
+EXPORT_API int context_places_place_get_name(context_places_place_h place, char** name)
{
+#if 0
ASSERT_NOT_NULL(place && name);
std::string str;
ASSERT_ALLOC(*name);
return CONTEXT_PLACES_ERROR_NONE;
+#endif
+ return TIZEN_ERROR_NOT_SUPPORTED;
}
-SO_EXPORT int context_places_place_get_location(context_places_place_h place, double* latitude, double* longitude, double* accuracy)
+EXPORT_API int context_places_place_get_location(context_places_place_h place, double* latitude, double* longitude, double* accuracy)
{
+#if 0
ASSERT_NOT_NULL(place && latitude && longitude && accuracy);
ctx::Json locationJson;
*accuracy = acc;
return CONTEXT_PLACES_ERROR_NONE;
+#endif
+ return TIZEN_ERROR_NOT_SUPPORTED;
}
-SO_EXPORT int context_places_place_get_creation_date(context_places_place_h place, time_t* timestamp)
+EXPORT_API int context_places_place_get_creation_date(context_places_place_h place, time_t* timestamp)
{
+#if 0
ASSERT_NOT_NULL(place && timestamp);
int64_t tmp_timestamp;
*timestamp = static_cast<time_t>(tmp_timestamp);
return CONTEXT_PLACES_ERROR_NONE;
+#endif
+ return TIZEN_ERROR_NOT_SUPPORTED;
}
-SO_EXPORT int context_places_place_destroy(context_places_place_h place)
+EXPORT_API int context_places_place_destroy(context_places_place_h place)
{
+#if 0
ASSERT_NOT_NULL(place);
delete place;
return CONTEXT_PLACES_ERROR_NONE;
+#endif
+ return TIZEN_ERROR_NOT_SUPPORTED;
}
-SO_EXPORT int context_places_place_get_wifi_ap_list(context_places_place_h place, context_places_wifi_ap_list_h* list)
+EXPORT_API int context_places_place_get_wifi_ap_list(context_places_place_h place, context_places_wifi_ap_list_h* list)
{
+#if 0
ASSERT_NOT_NULL(place && list);
*list = NULL;
(*list)->current = 0;
return CONTEXT_PLACES_ERROR_NONE;
+#endif
+ return TIZEN_ERROR_NOT_SUPPORTED;
}
-SO_EXPORT int context_places_wifi_ap_list_get_count(context_places_wifi_ap_list_h list, int* count)
+EXPORT_API int context_places_wifi_ap_list_get_count(context_places_wifi_ap_list_h list, int* count)
{
+#if 0
ASSERT_NOT_NULL(list && count);
*count = 0;
*count = result;
return CONTEXT_PLACES_ERROR_NONE;
+#endif
+ return TIZEN_ERROR_NOT_SUPPORTED;
}
-SO_EXPORT int context_places_wifi_ap_list_get_current(context_places_wifi_ap_list_h list, char** bssid, char** essid)
+EXPORT_API int context_places_wifi_ap_list_get_current(context_places_wifi_ap_list_h list, char** bssid, char** essid)
{
+#if 0
ASSERT_NOT_NULL(list && bssid && essid);
ctx::Json wifiAPJson;
ASSERT_ALLOC(*essid);
return CONTEXT_PLACES_ERROR_NONE;
+#endif
+ return TIZEN_ERROR_NOT_SUPPORTED;
}
-SO_EXPORT int context_places_wifi_ap_list_move_first(context_places_wifi_ap_list_h list)
+EXPORT_API int context_places_wifi_ap_list_move_first(context_places_wifi_ap_list_h list)
{
+#if 0
ASSERT_NOT_NULL(list);
list->current = 0;
return CONTEXT_PLACES_ERROR_NONE;
+#endif
+ return TIZEN_ERROR_NOT_SUPPORTED;
}
-SO_EXPORT int context_places_wifi_ap_list_move_next(context_places_wifi_ap_list_h list)
+EXPORT_API int context_places_wifi_ap_list_move_next(context_places_wifi_ap_list_h list)
{
+#if 0
ASSERT_NOT_NULL(list);
IF_FAIL_RETURN_TAG(
list->current++;
return CONTEXT_PLACES_ERROR_NONE;
+#endif
+ return TIZEN_ERROR_NOT_SUPPORTED;
}
-SO_EXPORT int context_places_wifi_ap_list_destroy(context_places_wifi_ap_list_h list)
+EXPORT_API int context_places_wifi_ap_list_destroy(context_places_wifi_ap_list_h list)
{
+#if 0
ASSERT_NOT_NULL(list);
delete list;
return CONTEXT_PLACES_ERROR_NONE;
+#endif
+ return TIZEN_ERROR_NOT_SUPPORTED;
}
-SO_EXPORT int context_places_is_supported(bool *supported)
+EXPORT_API int context_places_is_supported(bool *supported)
{
+#if 0
ctx::DBusClient dbusClient;
int error = dbusClient.isSupported(PLACE_DETECTION_SUBJECT);
if (error == ERR_NONE) {
}
_D("");
return CONTEXT_PLACES_ERROR_NONE;
+#endif
+ if (supported)
+ *supported = false;
+ return TIZEN_ERROR_NONE;
}
-SO_EXPORT int context_places_consent(bool consent)
+EXPORT_API int context_places_consent(bool consent)
{
+#if 0
_D("");
ctx::Json option;
option.set(NULL, PLACE_DETECTION_REQUEST_CONSENT, consent ? MYPLACE_SETTING_VALUE_TRUE : MYPLACE_SETTING_VALUE_FALSE);
_E, "Setting consent value failed");
return CONTEXT_PLACES_ERROR_NONE;
+#endif
+ return TIZEN_ERROR_NOT_SUPPORTED;
}
-SO_EXPORT int context_places_is_consented(bool *consented)
+EXPORT_API int context_places_is_consented(bool *consented)
{
+#if 0
_D("");
ctx::Json option;
option.set(NULL, PLACE_DETECTION_REQUEST, PLACE_DETECTION_REQUEST_CONSENT);
}
return CONTEXT_PLACES_ERROR_NONE;
+#endif
+ if (consented)
+ *consented = false;
+ return TIZEN_ERROR_NONE;
}