+++ /dev/null
-Jinmin Jung <jinmin@samsung.com>
-DoHyun Pyun <dh79.pyun@samsung.com>
-CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
+CMAKE_MINIMUM_REQUIRED(VERSION 3.9)
PROJECT(ug-setting-bluetooth-efl C)
+INCLUDE(FindPkgConfig)
+INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include)
+
+SET(EXTRA_FLAGS "-Wall -Werror -fvisibility=hidden")
+SET(GC_SECTIONS_FLAGS "-fdata-sections -ffunction-sections -Wl,--gc-sections")
+SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${EXTRA_FLAGS} ${GC_SECTIONS_FLAGS}")
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_FLAGS} ${GC_SECTIONS_FLAGS}")
+SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-z,nodelete")
+
SET(PREFIX ${CMAKE_INSTALL_PREFIX})
-SET(EXEC_PREFIX "\${prefix}")
-SET(LIBDIR "\${prefix}/lib")
-SET(INCLUDEDIR "\${prefix}/include")
SET(VERSION 0.1.0)
SET(RESDIR "${PREFIX}/res")
SET(LOCALEDIR "${RESDIR}/locale")
SET(HELPDIR "${RESDIR}/help/${PROJECT_NAME}")
SET(TABLEDIR "${RESDIR}/tables/${PROJECT_NAME}")
-IF("$ENV{CFLAGS}" MATCHES "-DTIZEN_TEST_EMUL")
-ADD_SUBDIRECTORY(emulator)
-ELSE()
-ADD_SUBDIRECTORY(standard)
-ENDIF()
+ADD_DEFINITIONS("-DPKGNAME=\"${PROJECT_NAME}\"")
+ADD_DEFINITIONS("-DPREFIX=\"${PREFIX}\"")
+ADD_DEFINITIONS("-DLOCALEDIR=\"${LOCALEDIR}\"")
+ADD_DEFINITIONS("-DEDJDIR=\"${EDJDIR}\"")
+#ADD_DEFINITIONS("-D__TIZEN_OPEN__")
-ADD_SUBDIRECTORY(res/po)
+IF(TV_PROFILE)
+ ADD_DEFINITIONS("-DBT_TV_PROFILE")
+ENDIF(TV_PROFILE)
+
+ADD_SUBDIRECTORY(standard)
ADD_SUBDIRECTORY(res)
+
+IF(BUILD_EMUL)
+ SET(EMUL_LIB_NAME "emul${PROJECT_NAME}")
+ ADD_SUBDIRECTORY(emulator)
+ENDIF(BUILD_EMUL)
-CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
+FILE(GLOB SRCS *.c)
-SET(SRCS
-bt-main-ug.c
-bt-widget.c
-bt-main-view.c
-bt-util.c
-bt-callback.c
-bt-event-manager.c
-bt-emulator-api.c
-)
+SET(PKG_MODULES elementary appcore-efl ui-gadget-1 dlog vconf evas edje ecore eina aul
+ syspopup-caller capi-network-bluetooth capi-appfw-application capi-system-info
+ notification efl-extension glib-2.0 gio-2.0)
-INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/include)
-
-SET(PKG_MODULES
- elementary
- appcore-efl
- ui-gadget-1
- dlog
- vconf
- evas
- edje
- ecore
- eina
- aul
- syspopup-caller
- gobject-2.0
- capi-network-bluetooth
- capi-appfw-application
- capi-system-info
- notification
- efl-extension
- glib-2.0
- gio-2.0
-)
-
-INCLUDE(FindPkgConfig)
pkg_check_modules(pkgs REQUIRED ${PKG_MODULES})
+INCLUDE_DIRECTORIES(${pkgs_INCLUDE_DIRS})
+LINK_DIRECTORIES(${pkgs_LIBRARY_DIRS})
-FOREACH(flag ${pkgs_CFLAGS})
- SET(EXTRA_CXXFLAGS "${EXTRA_CXXFLAGS} ${flag}")
-ENDFOREACH(flag)
-
-SET(GC_SECTIONS_FLAGS "-fdata-sections -ffunction-sections -Wl,--gc-sections")
-SET(EXTRA_CXXFLAGS "${EXTRA_CXXFLAGS} -fvisibility=hidden -Wall")
-SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${EXTRA_CXXFLAGS} ${GC_SECTIONS_FLAGS}")
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${CMAKE_CXX_FLAGS} ${GC_SECTIONS_FLAGS} -fPIC -Werror")
-
-ADD_DEFINITIONS("-DPREFIX=\"${CMAKE_INSTALL_PREFIX}\"")
-ADD_DEFINITIONS("-DEDJDIR=\"${EDJDIR}\"")
-ADD_DEFINITIONS("-DRESDIR=\"${RESDIR}\"")
-ADD_DEFINITIONS("-DIMAGEDIR=\"${IMAGEDIR}\"")
-ADD_DEFINITIONS("-DBT_USE_PLATFORM_DBG")
-#ADD_DEFINITIONS("-D__TIZEN_OPEN__")
-
-INSTALL(FILES ${CMAKE_SOURCE_DIR}/res/ug-bluetooth-efl.xml DESTINATION /usr/share/packages/)
-INSTALL(FILES ${CMAKE_SOURCE_DIR}/res/images/ug-bluetooth-efl.png DESTINATION /usr/share/icons/default/small)
-
-ADD_LIBRARY(${PROJECT_NAME} SHARED ${SRCS})
-SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES SOVERSION 0.1.0)
-TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${pkgs_LDFLAGS})
-
-INSTALL(TARGETS ${PROJECT_NAME} DESTINATION /usr/ug/lib)
+ADD_LIBRARY(${EMUL_LIB_NAME} SHARED ${SRCS})
+SET_TARGET_PROPERTIES(${EMUL_LIB_NAME} PROPERTIES SOVERSION ${VERSION})
+TARGET_LINK_LIBRARIES(${EMUL_LIB_NAME} ${pkgs_LIBRARIES})
-INSTALL(FILES ${CMAKE_SOURCE_DIR}/res/images/ug-bluetooth-efl.png DESTINATION ${IMAGEDIR})
-INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/res/images/ DESTINATION ${IMAGEDIR} FILES_MATCHING PATTERN "*.png")
-INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/res/images/ DESTINATION ${IMAGEDIR} FILES_MATCHING PATTERN "*.jpg")
-INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/res/help/ DESTINATION ${HELPDIR} FILES_MATCHING PATTERN "*help_*")
-INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/res/tables/WVGA/ DESTINATION ${TABLEDIR} FILES_MATCHING PATTERN "*.xml")
+INSTALL(TARGETS ${EMUL_LIB_NAME} DESTINATION ${LIB_INSTALL_DIR})
--- /dev/null
+/*
+* ug-bluetooth-efl
+*
+* Copyright 2012 Samsung Electronics Co., Ltd
+*
+* Contact: Hocheol Seo <hocheol.seo@samsung.com>
+* GirishAshok Joshi <girish.joshi@samsung.com>
+* DoHyun Pyun <dh79.pyun@samsung.com>
+*
+* Licensed under the Flora License, Version 1.1 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.tizenopensource.org/license
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*/
+
+#ifndef __BT_CALLBACK_H
+#define __BT_CALLBACK_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include <bluetooth.h>
+
+void _bt_cb_state_changed(int result,
+ bt_adapter_state_e adapter_state,
+ void *user_data);
+
+void _bt_cb_discovery_state_changed(int result,
+ bt_adapter_device_discovery_state_e discovery_state,
+ bt_adapter_device_discovery_info_s *discovery_info,
+ void *user_data);
+
+#ifdef __cplusplus
+}
+#endif
+#endif /* __BT_CALLBACK_H */
--- /dev/null
+/*
+* ug-bluetooth-efl
+*
+* Copyright 2012 Samsung Electronics Co., Ltd
+*
+* Contact: Hocheol Seo <hocheol.seo@samsung.com>
+* GirishAshok Joshi <girish.joshi@samsung.com>
+* DoHyun Pyun <dh79.pyun@samsung.com>
+*
+* Licensed under the Flora License, Version 1.1 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.tizenopensource.org/license
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*/
+
+#ifndef __BT_EMULATOR_API_H__
+#define __BT_EMULATOR_API_H__
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include <bluetooth.h>
+
+int bt_emulator_start_device_discovery(void);
+
+int bt_emulator_stop_device_discovery(void);
+
+int bt_emulator_get_state(bt_adapter_state_e *adapter_state);
+
+int bt_emulator_is_discovering(bool *is_discovering);
+
+int bt_emulator_get_name(char **name);
+
+int bt_emulator_enable(void);
+
+int bt_emulator_disable(void);
+
+#endif /* __BT_EMULATOR_API_H__ */
--- /dev/null
+/*
+* ug-bluetooth-efl
+*
+* Copyright 2012 Samsung Electronics Co., Ltd
+*
+* Licensed under the Flora License, Version 1.1 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.tizenopensource.org/license
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*/
+
+
+#ifndef _BT_EVENT_MANAGER_H_
+#define _BT_EVENT_MANAGER_H_
+
+#include <sys/types.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+typedef enum {
+ BT_EVENT_TIMER_ENABLE = 0x00,
+ BT_EVENT_TIMER_DISABLE,
+ BT_EVENT_TIMER_START_DISCOVERY,
+ BT_EVENT_TIMER_STOP_DISCOVERY,
+ BT_EVENT_TIMER_FOUND_DEVICE,
+ BT_EVENT_MAX
+} bt_event_timer_e;
+
+
+void _bt_create_event_timer(int event_id, int interval, void *event_cb, void *user_data);
+
+void _bt_delete_event_timer(int event_id);
+
+void _bt_delete_all_event_timer(void);
+
+int _bt_get_sample_device_number(void);
+
+void* _bt_get_sample_device(int index);
+
+void _bt_free_device_discovery_info_s(void *info);
+
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+#endif /*_BT_EVENT_MANAGER_H_*/
+
--- /dev/null
+/*
+* ug-bluetooth-efl
+*
+* Copyright 2012 Samsung Electronics Co., Ltd
+*
+* Contact: Hocheol Seo <hocheol.seo@samsung.com>
+* GirishAshok Joshi <girish.joshi@samsung.com>
+* DoHyun Pyun <dh79.pyun@samsung.com>
+*
+* Licensed under the Flora License, Version 1.1 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.tizenopensource.org/license
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*/
+
+#ifndef __BT_MAIN_UG_H__
+#define __BT_MAIN_UG_H__
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include <stdbool.h>
+#include <libintl.h>
+#include <appcore-efl.h>
+#include <Elementary.h>
+#include <efl_extension.h>
+#include <ui-gadget-module.h>
+#include <dlog.h>
+#include <bundle.h>
+#include <gio/gio.h>
+
+#include "bt-define.h"
+#include "bt-type-define.h"
+
+#define _EDJ(o) elm_layout_edje_get(o)
+
+#ifdef _
+#undef _
+#endif
+#define _(s) dgettext(PKGNAME, s)
+
+#define dgettext_noop(s) (s)
+
+#ifdef N_
+#undef N_
+#endif
+#define N_(s) dgettext_noop(s)
+
+#define BT_UG_VCONF_PRINTSETTING "memory/bluetooth/printsetting"
+
+typedef struct {
+ /* UI gadget data */
+ ui_gadget_h ug;
+ Evas_Object *base;
+ Evas_Object *win_main;
+ Elm_Theme *theme;
+
+ bt_launch_mode_t bt_launch_mode;
+
+ /* Request timer */
+ Ecore_Timer *request_timer;
+
+ /*************************
+ * Main View objects
+ ************************ */
+ Evas_Object *navi_bar;
+ Evas_Object *main_layout;
+ Elm_Object_Item *navi_it;
+ Elm_Object_Item *service_navi_it;
+ /* Genlist */
+ Evas_Object *main_genlist;
+
+
+ /* Paired / Searched devices */
+ Evas_Object *searched_dlggrp;
+
+ /* Selected device's genlist items */
+ Elm_Object_Item *searched_item;
+
+ /* Help object */
+ Evas_Object *help_more_popup;
+ Evas_Object *help_popup;
+
+ /* Rename Device object*/
+ Evas_Object *rename_popup;
+ Evas_Object *rename_entry;
+ Evas_Object *rename_button;
+
+ /* Paired / Searched device list */
+ Eina_List *searched_device;
+
+ /* Button */
+ Evas_Object *onoff_btn;
+ Evas_Object *scan_btn;
+
+ /* Genlist Item class */
+ Elm_Genlist_Item_Class *device_name_itc;
+ Elm_Genlist_Item_Class *rename_entry_itc;
+ Elm_Genlist_Item_Class *rename_desc_itc;
+ Elm_Genlist_Item_Class *searched_title_itc;
+ Elm_Genlist_Item_Class *searched_device_itc;
+ Elm_Genlist_Item_Class *no_device_itc;
+ Elm_Genlist_Item_Class *on_itc;
+ Elm_Genlist_Item_Class *off_itc;
+
+ /* Genlist Items */
+ Elm_Object_Item *onoff_item;
+ Elm_Object_Item *device_name_item;
+ Elm_Object_Item *searched_title;
+ Elm_Object_Item *no_device_item;
+ Elm_Object_Item *visible_exp_item[BT_MAX_TIMEOUT_ITEMS + 1];
+ Elm_Object_Item *empty_status_item;
+ Elm_Object_Item *rename_entry_item;
+
+ /*************************
+ * Popup objects
+ ************************ */
+ Evas_Object *popup;
+ bt_popup_data popup_data;
+ Evas_Object *popup_menu;
+
+ /*************************
+ * Status Variables
+ ************************ */
+ bool waiting_service_response;
+ bool disconn_req;
+ bool connect_req;
+ bool aul_launching_req;
+ bool is_discovery_started;
+ unsigned int op_status;
+ unsigned int ug_status;
+ unsigned int help_status;
+ unsigned int search_type;
+
+ /*************************
+ * Grobal variables
+ ************************ */
+ app_control_h service;
+ bundle *popup_bundle;
+ void *handle;
+ char phone_name[BT_GLOBALIZATION_STR_LENGTH];
+ int timeout_id;
+ int popup_timer;
+ bt_dev_t *pick_device;
+ void *connection;
+ bool is_popup_exist;
+
+ GDBusConnection *g_conn;
+ guint gdbus_owner_id;
+
+ /* End key callback */
+ bt_app_back_cb back_cb;
+
+ Ecore_Timer *timer;
+} bt_ug_data;
+
+
+typedef enum _bt_cfg_item_reset_type {
+ BT_CFG_ITEM_UNRESETABLE = 0,
+ BT_CFG_ITEM_RESETABLE = 1,
+} bt_cfg_item_reset_type;
+
+typedef enum _bt_cfg_item_type {
+ BT_CFG_ITEM_NODE_ERROR = 0, /** Error */
+ BT_CFG_ITEM_UG_NODE = 1, /** general UG */
+ BT_CFG_ITEM_UI_NODE = 2, /** no UG, no app launching, just menu name */
+ BT_CFG_ITEM_TITLE_NODE = 3, /** view name */
+ BT_CFG_ITEM_APP_NODE = 4, /** app type - by launcher - read doc '4' */
+ BT_CFG_ITEM_VIEW_NODE = 5, /** view name - 2depth search */
+} bt_cfg_item_type;
+
+typedef struct {
+ char *key_name; /** key name */
+ char *icon_path; /** icon path */
+ char *ug_args; /** UG path or hyperlink */
+ int pos; /** position : 1st, 2st -- deprecated */
+ bt_cfg_item_reset_type reset_type; /** if ug supports Reset function */
+ int click_times; /** UG menu need to check */
+ bt_cfg_item_type item_type; /** 0:item 1:header title */
+ void *data;
+} bt_setting_cfg_node_t;
+
+void _bt_ug_destroy(void *data, void *result);
+
+bt_ug_data* _bt_ug_get_user_data(void);
+
+#ifdef __cplusplus
+}
+#endif
+#endif /* __BT_MAIN_UG_H__ */
--- /dev/null
+/*
+* ug-bluetooth-efl
+*
+* Copyright 2012 Samsung Electronics Co., Ltd
+*
+* Contact: Hocheol Seo <hocheol.seo@samsung.com>
+* GirishAshok Joshi <girish.joshi@samsung.com>
+* DoHyun Pyun <dh79.pyun@samsung.com>
+*
+* Licensed under the Flora License, Version 1.1 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.tizenopensource.org/license
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*/
+
+#ifndef __BT_MAIN_VIEW_H__
+#define __BT_MAIN_VIEW_H__
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include <glib.h>
+
+#include "bt-type-define.h"
+#include "bt-main-ug.h"
+
+typedef struct _bt_radio_item bt_radio_item;
+
+struct _bt_radio_item {
+ Elm_Object_Item *it; /* Genlist Item pointer */
+ int index; /* Index*/
+ void *ugd;
+};
+
+int _bt_main_enable_bt(void *data);
+
+int _bt_main_disable_bt(void *data);
+
+void _bt_main_phone_name_changing_btn_cb(void *data, Evas_Object *obj,
+ void *event_info);
+
+void _bt_main_popup_del_cb(void *data, Evas_Object *obj, void *event_info);
+
+void _bt_back_btn_popup_del_cb(void *data, Evas_Object *obj, void *event_info);
+
+void _bt_main_create_information_popup(void *data, char *msg);
+
+int _bt_main_draw_list_view(bt_ug_data *ugd);
+
+Elm_Object_Item *_bt_main_add_searched_device(bt_ug_data *ugd,
+ bt_dev_t *dev);
+
+Elm_Object_Item *_bt_main_add_no_device_found(bt_ug_data *ugd);
+
+void _bt_main_remove_searched_device(bt_ug_data *ugd, bt_dev_t *dev);
+
+void _bt_main_remove_all_searched_devices(bt_ug_data *ugd);
+
+bt_dev_t *_bt_main_get_dev_info(Eina_List *list,
+ Elm_Object_Item *genlist_item);
+
+bt_dev_t *_bt_main_get_dev_info_by_address(Eina_List *list,
+ char *address);
+
+void _bt_main_init_status(bt_ug_data *ugd, void *data);
+
+bt_dev_t *_bt_main_create_searched_device_item(void *data);
+
+void _bt_main_get_paired_device(bt_ug_data *ugd);
+
+void _bt_main_scan_device(bt_ug_data *ugd);
+
+int _bt_main_service_request_cb(void *data);
+
+char *_bt_main_get_device_icon(int major_class, int minor_class,
+ int connected, gboolean highlighted);
+
+int _bt_main_check_and_update_device(Eina_List *list,
+ char *addr, char *name);
+
+void _bt_main_launch_syspopup(void *data, char *event_type,
+ char *title, char *type);
+
+gboolean _bt_main_is_matched_profile(unsigned int search_type,
+ unsigned int major_class,
+ unsigned int service_class,
+ app_control_h service,
+ unsigned int minor_class);
+
+void _bt_main_add_searched_title(bt_ug_data *ugd);
+
+void _bt_main_add_device_name_item(bt_ug_data *ugd, Evas_Object *genlist);
+
+void _bt_update_device_list(bt_ug_data *ugd);
+
+Evas_Object * _bt_main_create_scan_button(bt_ug_data *ugd);
+
+int _bt_idle_destroy_ug(void *data);
+
+#ifdef __cplusplus
+}
+#endif
+#endif /* __BT_MAIN_VIEW_H__ */
--- /dev/null
+/*
+* ug-bluetooth-efl
+*
+* Copyright 2012 Samsung Electronics Co., Ltd
+*
+* Contact: Hocheol Seo <hocheol.seo@samsung.com>
+* GirishAshok Joshi <girish.joshi@samsung.com>
+* DoHyun Pyun <dh79.pyun@samsung.com>
+*
+* Licensed under the Flora License, Version 1.1 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.tizenopensource.org/license
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*/
+
+#ifndef __BT_TYPE_DEFINE_H__
+#define __BT_TYPE_DEFINE_H__
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+#include <glib.h>
+#include <bluetooth.h>
+
+/**************************************************
+* Constant Value
+***************************************************/
+
+#define BT_GLOBALIZATION_STR_LENGTH 256
+#define BT_MAX_CHARS_IN_FTP_TITLE 12
+#define BT_MAX_MENU_NAME_LEN 64
+#define BT_MAX_SERVICE_LIST 9
+#define DEVICE_NAME_MAX_CHARACTER 32
+#define DEVICE_NAME_MAX_LEN 100
+#define BT_ADDRESS_LENGTH_MAX 6
+#define BT_ADDRESS_STR_LEN 18
+#define BT_FILE_NAME_LEN_MAX 255
+#define BT_IMG_PATH_MAX 256
+#define BT_HTML_EXTRA_TAG_LENGTH 20
+#define BT_SERVICE_NAME_LENGTH 30
+#define BT_SERVICE_CONTENT_LENGTH 256
+#define BT_PHONE_NUM_LEN 50
+#define BT_EXTRA_STR_LEN 10
+#define BT_BUFFER_LEN 256
+#define BT_TIMEOUT_MAX 3600
+#define BT_MAX_TIMEOUT_ITEMS 5
+#define BT_GLOBALIZATION_TEXT_LENGTH \
+ (BT_GLOBALIZATION_STR_LENGTH+BT_EXTRA_STR_LEN)
+#define BT_DISCONNECT_TEXT_LENGTH \
+ ((2*BT_GLOBALIZATION_STR_LENGTH)+DEVICE_NAME_MAX_LEN)
+#define BT_SERVICE_TEXT_LENGTH \
+ (BT_SERVICE_CONTENT_LENGTH+BT_HTML_EXTRA_TAG_LENGTH)* \
+ BT_MAX_SERVICE_LIST
+#define BT_UG_SYSPOPUP_TIMEOUT_FOR_MULTIPLE_POPUPS 200
+
+
+/* Timeout Value */
+#define BT_SEARCH_SERVICE_TIMEOUT 5
+#define BT_SELECTED_TIMEOUT 5
+#define BT_DELETED_TIMEOUT 2
+#define BT_VISIBILITY_TIMEOUT 1000
+#define BT_HELP_TIMEOUT 3000
+
+/* Define Error type */
+#define BT_UG_FAIL -1
+#define BT_UG_ERROR_NONE 0
+
+#define BT_TWO_MINUTES 120
+#define BT_FIVE_MINUTES 300
+#define BT_ONE_HOUR 3600
+#define BT_ZERO 0
+#define BT_ALWAYS_ON -1
+
+#define BT_RESULT_STR_MAX 256
+
+#define BT_GENLIST_FONT_32_INC 32
+
+/**************************************************
+* String define
+***************************************************/
+
+#define BT_SET_FONT_SIZE \
+"<font_size=%d>%s</font_size>"
+
+#define BT_SET_FONT_SIZE_COLOR \
+"<font_size=%d><color=%s>%s</color></font_size>"
+
+/* GENLIST_TEXT_COLOR_LIST_SUB_TEXT_SETTINGS 42 137 194 255 */
+#define BT_GENLIST_SUBTEXT_COLOR "#2A89C2FF"
+#define BT_GENLIST_WHITE_SUBTEXT_COLOR "#FFFFFFFF"
+
+#define BT_RESULT_SUCCESS "success"
+#define BT_RESULT_FAIL "fail"
+
+#define BT_ADAPTER_ON "on"
+#define BT_ADAPTER_OFF "off"
+
+#define BT_DEFAULT_PHONE_NAME "Kiran"
+
+#define BT_SYSPOPUP_REQUEST_NAME "app-confirm-request"
+#define BT_SYSPOPUP_TWO_BUTTON_TYPE "twobtn"
+#define BT_SYSPOPUP_ONE_BUTTON_TYPE "onebtn"
+
+#define BT_FILE_VISIBLE_TIME "file/private/libug-setting-bluetooth-efl/visibility_time"
+
+/* AppControl Operation */
+#define BT_APPCONTROL_PICK_OPERATION "http://tizen.org/appcontrol/operation/bluetooth/pick"
+
+#define BT_APPCONTROL_VISIBILITY_OPERATION "http://tizen.org/appcontrol/operation/configure/bluetooth/visibility"
+
+#define BT_APPCONTROL_ONOFF_OPERATION "http://tizen.org/appcontrol/operation/configure/bluetooth/onoff"
+
+#define APP_CONTROL_OPERATION_SETTING_BT_ENABLE "http://tizen.org/appcontrol/operation/setting/bt_enable"
+
+#define APP_CONTROL_OPERATION_SETTING_BT_VISIBILITY "http://tizen.org/appcontrol/operation/setting/bt_visibility"
+
+#define BT_APPCONTROL_EDIT_OPERATION "http://tizen.org/appcontrol/operation/edit"
+
+#define BT_APPCONTROL_ONOFF_MIME "application/x-bluetooth-on-off"
+
+#define BT_APPCONTROL_VISIBILITY_MIME "application/x-bluetooth-visibility"
+
+/* AppControl Output */
+#define BT_APPCONTROL_ADDRESS "http://tizen.org/appcontrol/data/bluetooth/address"
+#define BT_APPCONTROL_NAME "http://tizen.org/appcontrol/data/bluetooth/name"
+#define BT_APPCONTROL_RSSI "http://tizen.org/appcontrol/data/bluetooth/rssi"
+#define BT_APPCONTROL_IS_PAIRED "http://tizen.org/appcontrol/data/bluetooth/is_paired"
+#define BT_APPCONTROL_MAJOR_CLASS "http://tizen.org/appcontrol/data/bluetooth/major_class"
+#define BT_APPCONTROL_MINOR_CLASS "http://tizen.org/appcontrol/data/bluetooth/minor_class"
+#define BT_APPCONTROL_SERVICE_CLASS "http://tizen.org/appcontrol/data/bluetooth/service_class"
+#define BT_APPCONTROL_SERVICE_TYPE "http://tizen.org/appcontrol/data/bluetooth/service_type"
+#define BT_APPCONTROL_UUID_LIST "http://tizen.org/appcontrol/data/bluetooth/uuid_list"
+#define BT_APPCONTROL_VISIBILITY "http://tizen.org/appcontrol/data/bluetooth/visibility"
+
+/* Access information */
+#define BT_STR_ACCES_INFO_MAX_LEN 512
+#define BT_STR_ACC_ICON "Icon"
+
+/**************************************************
+* Enum type
+***************************************************/
+
+typedef enum {
+ BT_CONNECTION_REQ,
+ BT_PAIRING_REQ,
+ BT_NONE_REQ,
+} bt_confirm_req_t;
+
+/* Visible timout value (sec)*/
+typedef enum {
+ BT_2MIN = 120,
+ BT_5MIN = 300,
+ BT_1HOUR = 3600,
+ BT_NO_TIMEOUT = 0,
+} bt_visible_time_t;
+
+typedef enum {
+ BT_VISIBLE_OFF = 0,
+ BT_VISIBLE_ALWAYS = 1,
+ BT_VISIBLE_TIME_LIMITED = 2,
+} bt_visible_result_t;
+
+typedef enum {
+ BT_SEARCH_ALL_DEVICE = 0,
+ BT_SEARCH_PHONE,
+ BT_SEARCH_HEADSET,
+ BT_SEARCH_PC,
+ BT_SEARCH_HID,
+} bt_search_option_t;
+
+typedef enum {
+ BT_CONNECT_MENU = 1,
+ BT_SEND_MENU,
+ BT_RENAME_MENU,
+ BT_DELETE_MENU,
+ BT_SERVICE_LIST_MENU,
+} bt_menu_index_t;
+
+typedef enum {
+ BT_PAIRED_DEVICE_DISABLE,
+ BT_PAIRED_DEVICE_ENABLE,
+} bt_app_paired_device_status_t;
+
+typedef enum {
+ BT_STATUS_OFF = 0x0000,
+ BT_STATUS_ON = 0x0001,
+ BT_STATUS_BT_VISIBLE = 0x0002,
+ BT_STATUS_TRANSFER = 0x0004,
+} bt_status_t;
+
+typedef enum {
+ BT_POPUP_PAIRING_ERROR = 0,
+ BT_POPUP_GET_SERVICE_LIST_ERROR,
+ BT_POPUP_GETTING_SERVICE_LIST,
+ BT_POPUP_CONNECTION_ERROR,
+ BT_POPUP_DISCONNECT,
+ BT_POPUP_ENTER_DEVICE_NAME,
+ BT_POPUP_LOW_BATTERY,
+} bt_popup_t;
+
+typedef enum {
+ BT_LAUNCH_NORMAL = 0,
+ BT_LAUNCH_SEND_FILE,
+ BT_LAUNCH_PRINT_IMAGE,
+ BT_LAUNCH_CONNECT_HEADSET,
+ BT_LAUNCH_CONNECT_AUDIO_SOURCE,
+ BT_LAUNCH_USE_NFC,
+ BT_LAUNCH_PICK,
+ BT_LAUNCH_VISIBILITY,
+ BT_LAUNCH_SHARE_CONTACT,
+ BT_LAUNCH_HELP,
+ BT_LAUNCH_ONOFF,
+} bt_launch_mode_t;
+
+typedef enum {
+ BT_HELP_VIEW_NONE = 0x00,
+ BT_HELP_VIEW_1 = 0x01,
+ BT_HELP_VIEW_2 = 0x02,
+ BT_HELP_VIEW_3 = 0x03,
+ BT_HELP_VIEW_4 = 0x04,
+} bt_help_view_t;
+
+typedef enum {
+ BT_CONTROL_BAR_DISABLE,
+ BT_CONTROL_BAR_ENABLE,
+} bt_control_bar_status_t;
+
+typedef enum {
+ BT_NOCONTENT_HIDE,
+ BT_NOCONTNET_SHOW,
+} bt_nocontent_mode_t;
+
+typedef enum {
+ BT_STORE_BOOLEAN,
+ BT_STORE_INT,
+ BT_STORE_STRING,
+} bt_store_type_t;
+
+typedef enum {
+ BT_ACTIVATED = 0,
+ BT_ACTIVATING,
+ BT_DEACTIVATED,
+ BT_DEACTIVATING,
+ BT_SEARCHING,
+ BT_PAIRING,
+} bt_oper_t;
+
+typedef enum {
+ BT_UG_CREATE = 0,
+ BT_UG_START,
+ BT_UG_PAUSE,
+ BT_UG_RESUME,
+ BT_UG_DESTORY
+} bt_ug_status_t;
+
+
+typedef enum {
+ BT_IDLE = 0,
+ BT_DEV_PAIRING,
+ BT_DEV_UNPAIRING,
+ BT_CONNECTING,
+ BT_DISCONNECTING,
+ BT_SERVICE_SEARCHING
+} bt_dev_status_t;
+
+typedef enum {
+ BT_RUN_STATUS_NO_CHANGE = 0x00, /* No Change BT status*/
+ BT_RUN_STATUS_ACTIVATE = 0x01, /* BT Activate*/
+ BT_RUN_STATUS_DEACTIVATE = 0x02, /* BT Deactivate*/
+ BT_RUN_STATUS_SEARCH_TEST = 0x03, /* BT Search Test*/
+ BT_RUN_STATUS_TERMINATE = 0x04, /* BT Terminate*/
+ BT_RUN_STATUS_MAX = 0x05, /* Max val*/
+} bt_run_status_t;
+
+typedef enum {
+ BT_ON_CURRENTVIEW = 0x00, /* Run BT on current view*/
+ BT_ON_FOREGROUND = 0x01, /* Run BT on foreground*/
+ BT_ON_BACKGROUND = 0x02, /* Run BT on background*/
+} bt_on_t;
+
+typedef enum {
+ BT_HEADSET_CONNECTED = 0x01,
+ BT_STEREO_HEADSET_CONNECTED = 0x02,
+ BT_HID_CONNECTED = 0x04,
+ BT_NETWORK_CONNECTED = 0x08,
+ BT_NETWORK_SERVER_CONNECTED = 0x10,
+ BT_MUSIC_PLAYER_CONNECTED = 0x20,
+} bt_connected_mask_t;
+
+/**
+ * This enum indicates Device states.
+ */
+
+typedef enum {
+ BT_DEVICE_NONE, /** < None*/
+ BT_DEVICE_PAIRED, /** < Device Paired*/
+ BT_DEVICE_CONNECTED/** <Device Connected*/
+} bt_device_state_t;
+
+typedef enum {
+ BT_ITEM_NO_TYPE,
+ BT_ITEM_TOP,
+ BT_ITEM_CENTER,
+ BT_ITEM_BOTTOM,
+} bt_item_type_t;
+
+typedef enum {
+ BT_ITEM_NONE,
+ BT_ITEM_NAME,
+ BT_ITEM_UNPAIR,
+ BT_ITEM_CALL,
+ BT_ITEM_MEDIA,
+ BT_ITEM_HID,
+ BT_ITEM_NETWORK,
+} bt_profile_view_item_type_t;
+
+typedef enum {
+ BT_DEVICE_MAJOR_MASK_MISC = 0x00,
+ BT_DEVICE_MAJOR_MASK_COMPUTER = 0x0001,
+ BT_DEVICE_MAJOR_MASK_PHONE = 0x0002,
+ BT_DEVICE_MAJOR_MASK_LAN_ACCESS_POINT = 0x0004,
+ BT_DEVICE_MAJOR_MASK_AUDIO = 0x0008,
+ BT_DEVICE_MAJOR_MASK_PERIPHERAL = 0x0010,
+ BT_DEVICE_MAJOR_MASK_IMAGING = 0x0020,
+ BT_DEVICE_MAJOR_MASK_WEARABLE = 0x0040,
+ BT_DEVICE_MAJOR_MASK_TOY = 0x0080,
+ BT_DEVICE_MAJOR_MASK_HEALTH = 0x0100,
+} bt_device_major_mask_t;
+
+/*
+ * Major device class (part of Class of Device)
+ */
+typedef enum {
+ BT_MAJOR_DEV_CLS_MISC = 0x00,/**<miscellaneous */
+ BT_MAJOR_DEV_CLS_COMPUTER = 0x01, /**<Computer */
+ BT_MAJOR_DEV_CLS_PHONE = 0x02, /**<Phone */
+ BT_MAJOR_DEV_CLS_LAN_ACCESS_POINT = 0x03,/**<LAN access point */
+ BT_MAJOR_DEV_CLS_AUDIO = 0x04,/**<AudioDevice */
+ BT_MAJOR_DEV_CLS_PERIPHERAL = 0x05,/**<Peripheral Device */
+ BT_MAJOR_DEV_CLS_IMAGING = 0x06,/**<Imaging Device */
+ BT_MAJOR_DEV_CLS_WEARABLE = 0x07,/**<Wearable Device */
+ BT_MAJOR_DEV_CLS_TOY = 0x08,/**<Toy Device */
+ BT_MAJOR_DEV_CLS_HEALTH = 0x09,/**<Health Device */
+ BT_MAJOR_DEV_CLS_UNCLASSIFIED = 0x1F/**<Unclassified device */
+} bt_major_class_t;
+
+/*
+ * Minor device class (part of Class of Device)
+ */
+typedef enum {
+ BTAPP_MIN_DEV_CLS_UNCLASSIFIED = 0x00,
+ BTAPP_MIN_DEV_CLS_DESKTOP_WORKSTATION = 0x04,
+ BTAPP_MIN_DEV_CLS_SERVER_CLASS_COMPUTER = 0x08,
+ BTAPP_MIN_DEV_CLS_LAPTOP = 0x0C,
+ BTAPP_MIN_DEV_CLS_HANDHELD_PC_OR_PDA = 0x10,
+ BTAPP_MIN_DEV_CLS_PALM_SIZED_PC_OR_PDA = 0x14,
+ BTAPP_MIN_DEV_CLS_WEARABLE_COMPUTER = 0x18,
+
+ BTAPP_MIN_DEV_CLS_CELLULAR = 0x04,
+ BTAPP_MIN_DEV_CLS_CORDLESS = 0x08,
+ BTAPP_MIN_DEV_CLS_SMART_PHONE = 0x0C,
+ BTAPP_MIN_DEV_CLS_WIRED_MODEM_OR_VOICE_GATEWAY = 0x10,
+ BTAPP_MIN_DEV_CLS_COMMON_ISDN_ACCESS = 0x14,
+ BTAPP_MIN_DEV_CLS_SIM_CARD_READER = 0x18,
+ BTAPP_MID_DEV_CLS_PRINTER = 0x80,
+
+ BTAPP_MIN_DEV_CLS_FULLY_AVAILABLE = 0x04,
+ BTAPP_MIN_DEV_CLS_1_TO_17_PERCENT_UTILIZED = 0x20,
+ BTAPP_MIN_DEV_CLS_17_TO_33_PERCENT_UTILIZED = 0x40,
+ BTAPP_MIN_DEV_CLS_33_TO_50_PERCENT_UTILIZED = 0x60,
+ BTAPP_MIN_DEV_CLS_50_to_67_PERCENT_UTILIZED = 0x80,
+ BTAPP_MIN_DEV_CLS_67_TO_83_PERCENT_UTILIZED = 0xA0,
+ BTAPP_MIN_DEV_CLS_83_TO_99_PERCENT_UTILIZED = 0xC0,
+ BTAPP_MIN_DEV_CLS_NO_SERVICE_AVAILABLE = 0xE0,
+
+ BTAPP_MIN_DEV_CLS_HEADSET_PROFILE = 0x04,
+ BTAPP_MIN_DEV_CLS_HANDSFREE = 0x08,
+ BTAPP_MIN_DEV_CLS_MICROPHONE = 0x10,
+ BTAPP_MIN_DEV_CLS_LOUD_SPEAKER = 0x14,
+ BTAPP_MIN_DEV_CLS_HEADPHONES = 0x18,
+ BTAPP_MIN_DEV_CLS_PORTABLE_AUDIO = 0x1C,
+ BTAPP_MIN_DEV_CLS_CAR_AUDIO = 0x20,
+ BTAPP_MIN_DEV_CLS_SET_TOP_BOX = 0x24,
+ BTAPP_MIN_DEV_CLS_HIFI_AUDIO_DEVICE = 0x28,
+ BTAPP_MIN_DEV_CLS_VCR = 0x2C,
+ BTAPP_MIN_DEV_CLS_VIDEO_CAMERA = 0x30,
+ BTAPP_MIN_DEV_CLS_CAM_CORDER = 0x34,
+ BTAPP_MIN_DEV_CLS_VIDEO_MONITOR = 0x38,
+ BTAPP_MIN_DEV_CLS_VIDEO_DISPLAY_AND_LOUD_SPEAKER = 0x3C,
+ BTAPP_MIN_DEV_CLS_VIDEO_CONFERENCING = 0x40,
+ BTAPP_MIN_DEV_CLS_GAMING_OR_TOY = 0x48,
+
+ BTAPP_MIN_DEV_CLS_KEY_BOARD = 0x40,
+ BTAPP_MIN_DEV_CLS_POINTING_DEVICE = 0x80,
+ BTAPP_MIN_DEV_CLS_COMBO_KEYBOARD_OR_POINTING_DEVICE = 0xC0,
+
+ BTAPP_MIN_DEV_CLS_JOYSTICK = 0x04,
+ BTAPP_MIN_DEV_CLS_GAME_PAD = 0x08,
+ BTAPP_MIN_DEV_CLS_REMOTE_CONTROL = 0x0C,
+ BTAPP_MIN_DEV_CLS_SENSING_DEVICE = 0x10,
+ BTAPP_MIN_DEV_CLS_DIGITIZER_TABLET = 0x14,
+ BTAPP_MIN_DEV_CLS_CARD_READER = 0x18,
+
+ BTAPP_MIN_DEV_CLS_DISPLAY = 0x10,
+ BTAPP_MIN_DEV_CLS_CAMERA = 0x20,
+ BTAPP_MIN_DEV_CLS_SCANNER = 0x40,
+ BTAPP_MIN_DEV_CLS_PRINTER = 0x80,
+
+ BTAPP_MIN_DEV_CLS_WRIST_WATCH = 0x04,
+ BTAPP_MIN_DEV_CLS_PAGER = 0x08,
+ BTAPP_MIN_DEV_CLS_JACKET = 0x0C,
+ BTAPP_MIN_DEV_CLS_HELMET = 0x10,
+ BTAPP_MIN_DEV_CLS_GLASSES = 0x14,
+
+ BTAPP_MIN_DEV_CLS_ROBOT = 0x04,
+ BTAPP_MIN_DEV_CLS_VEHICLE = 0x08,
+ BTAPP_MIN_DEV_CLS_DOLL_OR_ACTION = 0x0C,
+ BTAPP_MIN_DEV_CLS_CONTROLLER = 0x10,
+ BTAPP_MIN_DEV_CLS_GAME = 0x14,
+
+ BTAPP_MIN_DEV_CLS_BLOOD_PRESSURE_MONITOR = 0x04,
+ BTAPP_MIN_DEV_CLS_THERMOMETER = 0x08,
+ BTAPP_MIN_DEV_CLS_WEIGHING_SCALE = 0x0C,
+ BTAPP_MIN_DEV_CLS_GLUCOSE_METER = 0x10,
+ BTAPP_MIN_DEV_CLS_PULSE_OXIMETER = 0x14,
+ BTAPP_MIN_DEV_CLS_HEART_OR_PULSE_RATE_MONITOR = 0x18,
+ BTAPP_MIN_DEV_CLS_MEDICAL_DATA_DISPLAY = 0x1C,
+} bt_minor_class_t;
+
+
+/*
+ * Service class part of class of device returned from device discovery
+ */
+
+/**
+ * This enum indicates Service calls part of device returned from device discovery.
+ */
+typedef enum {
+ BT_COD_SC_ALL = 0x000000, /**< ALL*/
+ BT_COD_SC_LIMITED_DISCOVERABLE_MODE = 0x002000,
+ BT_COD_SC_POSITIONING = 0x010000,/**< POSITIONING*/
+ BT_COD_SC_NETWORKING = 0x020000,/**< NETWORKING*/
+ BT_COD_SC_RENDERING = 0x040000,/**< RENDERING*/
+ BT_COD_SC_CAPTURING = 0x080000,/**< CAPTURING*/
+ BT_COD_SC_OBJECT_TRANSFER = 0x100000,/**< OBJECT_TRANSFER*/
+ BT_COD_SC_AUDIO = 0x200000,/**< AUDIO*/
+ BT_COD_SC_TELEPHONY = 0x400000,/**< TELEPHONY*/
+ BT_COD_SC_INFORMATION = 0x800000,/**< INFORMATION*/
+ BT_COD_SC_UNKNOWN = 0x1FF000/**< UNKNOWN */
+} bt_cod_service_class_t;
+
+typedef enum {
+ BT_SPP_PROFILE_UUID = ((unsigned short)0x1101), /**<SPP*/
+ BT_LAP_PROFILE_UUID = ((unsigned short)0x1102), /**<LAP*/
+ BT_DUN_PROFILE_UUID = ((unsigned short)0x1103), /**<DUN*/
+ BT_OBEX_IR_MC_SYNC_SERVICE_UUID = ((unsigned short)0x1104), /**<OBEX IR MC SYNC*/
+ BT_OBEX_OBJECT_PUSH_SERVICE_UUID = ((unsigned short)0x1105), /**<OPP*/
+ BT_OBEX_FILE_TRANSFER_UUID = ((unsigned short)0x1106), /**<FTP*/
+ BT_IRMC_SYNC_COMMAND_UUID = ((unsigned short)0x1107), /**<IRMC SYNC COMMAND*/
+ BT_HS_PROFILE_UUID = ((unsigned short)0x1108), /**<HS*/
+ BT_CTP_PROFILE_UUID = ((unsigned short)0x1109), /**<CTP*/
+ BT_AUDIO_SOURCE_UUID = ((unsigned short)0x110A), /**<AUDIO SOURCE*/
+ BT_AUDIO_SINK_UUID = ((unsigned short)0x110B), /**<AUDIO SINK*/
+ BT_AV_REMOTE_CONTROL_TARGET_UUID = ((unsigned short)0x110C), /**<AV REMOTE CONTROL
+ TARGET*/
+ BT_ADVANCED_AUDIO_PROFILE_UUID = ((unsigned short)0x110D), /**<A2DP*/
+ BT_AV_REMOTE_CONTROL_UUID = ((unsigned short)0x110E), /**<AV REMOTE CONTROL UUID*/
+ BT_AV_REMOTE_CONTROL_CONTROLLER_UUID = ((unsigned short)0x110F), /**<AV REMOTE CONTROLLER UUID*/
+ BT_ICP_PROFILE_UUID = ((unsigned short)0x1110), /**<ICP*/
+ BT_FAX_PROFILE_UUID = ((unsigned short)0x1111), /**<FAX*/
+ BT_HEADSET_AG_SERVICE_UUID = ((unsigned short)0x1112), /**<HS AG */
+ BT_PAN_PANU_PROFILE_UUID = ((unsigned short)0x1115), /**<PAN*/
+ BT_PAN_NAP_PROFILE_UUID = ((unsigned short)0x1116), /**<PAN*/
+ BT_PAN_GN_PROFILE_UUID = ((unsigned short)0x1117), /**<PAN*/
+ BT_DIRECT_PRINTING = ((unsigned short)0x1118),
+ BT_OBEX_BPPS_PROFILE_UUID = ((unsigned short)0x1118), /**<OBEX BPPS*/ /* Will be removed */
+ BT_REFERENCE_PRINTING = ((unsigned short)0x1119),
+ BT_OBEX_IMAGING_UUID = ((unsigned short)0x111A), /**<OBEX_IMAGING*/
+ BT_OBEX_IMAGING_RESPONDER_UUID = ((unsigned short)0x111B), /**<OBEX_IMAGING
+ RESPONDER*/
+ BT_IMAGING_AUTOMATIC_ARCHIVE_UUID = ((unsigned short)0x111C), /**<IMAGING AUTOMATIC ARCHIVE*/
+ BT_IMAGING_REFERENCED_OBJECTS_UUID = ((unsigned short)0x111D), /**<IMAGING REFERENCED OBJECTS*/
+ BT_HF_PROFILE_UUID = ((unsigned short)0x111E), /**<HF*/
+ BT_HFG_PROFILE_UUID = ((unsigned short)0x111F), /**<HFG*/
+ BT_DIRECT_PRINTING_REFERENCE_OBJ_UUID = ((unsigned short)0x1120),
+ /**<DIRECT PRINTING*/
+ BT_REFLECTED_UI = ((unsigned short)0x1121), /**<REFLECTED UI*/
+ BT_BASIC_PRINTING = ((unsigned short)0x1122), /**<BASIC PRINTING*/
+ BT_PRINTING_STATUS = ((unsigned short)0x1123), /**<PRINTING STATUS*/
+ BT_OBEX_PRINTING_STATUS_UUID = ((unsigned short)0x1123), /**<OBEX PRINTING STATUS*/ /* Will be removed */
+ BT_HID_PROFILE_UUID = ((unsigned short)0x1124), /**<HID*/
+ BT_HCR_PROFILE_UUID = ((unsigned short)0x1125), /**<HCRP*/
+ BT_HCR_PRINT_UUID = ((unsigned short)0x1126), /**<HCR PRINT*/
+ BT_HCR_SCAN_UUID = ((unsigned short)0x1127), /**<HCR SCAN*/
+ BT_SIM_ACCESS_PROFILE_UUID = ((unsigned short)0x112D), /**<SIM ACCESS PROFILE*/
+ BT_PBAP_PCE_UUID = ((unsigned short)0x112E), /**<PBAP - PCE*/
+ BT_PBAP_PSE_UUID = ((unsigned short)0x112F), /**<OBEX PBA*/
+ BT_OBEX_PBA_PROFILE_UUID = ((unsigned short)0x112F), /**<OBEX PBA*/ /* Will be removed */
+ BT_OBEX_PBAP_UUID = ((unsigned short)0x1130), /**<OBEX PBA*/
+ BT_HEADSET_HS_UUID = ((unsigned short)0x1131), /**<HEADSET HS*/
+ BT_MESSAGE_ACCESS_SERVER_UUID = ((unsigned short)0x1132),/**<MESSAGE ACCESS SERVER*/
+ BT_MESSAGE_NOTIFICATION_SERVER_UUID = ((unsigned short)0x1133),/**<MESSAGE NOTIFICATION SERVER*/
+ BT_MESSAGE_ACCESS_PROFILE_UUID = ((unsigned short)0x1134),/**<MESSAGE ACCESS PROFILE*/
+ BT_PNP_INFORMATION_UUID = ((unsigned short)0x1200), /**<PNP*/
+ BT_GENERIC_NETWORKING_UUID = ((unsigned short)0x1201), /**<GENERIC NETWORKING*/
+ BT_GENERIC_FILE_TRANSFER_UUID = ((unsigned short)0x1202),/**<GENERIC FILE TRANSFER*/
+ BT_GENERIC_AUDIO_UUID = ((unsigned short)0x1203), /**<GENERIC AUDIO*/
+ BT_GENERIC_TELEPHONY_UUID = ((unsigned short)0x1204), /**<GENERIC TELEPHONY*/
+ BT_VIDEO_SOURCE_UUID = ((unsigned short)0x1303), /**<VEDIO SOURCE*/
+ BT_VIDEO_SINK_UUID = ((unsigned short)0x1304), /**<VEDIO SINK*/
+ BT_VIDEO_DISTRIBUTION_UUID = ((unsigned short)0x1305), /**<VEDIO DISTRIBUTION*/
+ BT_HDP_UUID = ((unsigned short)0x1400), /**<HDP*/
+ BT_HDP_SOURCE_UUID = ((unsigned short)0x1401), /**<HDP SOURCE*/
+ BT_HDP_SINK_UUID = ((unsigned short)0x1402), /**<HDP SINK*/
+ BT_OBEX_SYNCML_TRANSFER_UUID = ((unsigned short)0x0000) /**<OBEX_SYNC*/ /* Will be removed */
+} bluetooth_service_uuid_list_t;
+
+
+/**************************************************
+* Struct define
+***************************************************/
+
+typedef struct {
+ unsigned char bd_addr[BT_ADDRESS_LENGTH_MAX];
+ char addr_str[BT_ADDRESS_STR_LEN + 1];
+ char name[DEVICE_NAME_MAX_LEN + 1];/**< Device Name */
+ bt_service_class_t service_list; /**< type of service */
+ bt_major_class_t major_class; /**< major class of the device */
+ bt_minor_class_t minor_class; /**< minor class of the device */
+ int authorized; /**< authorized ? */
+ bt_cod_service_class_t service_class; /**< service class of device */
+ int rssi; /**< Received signal strength indicator */
+ int is_connected;
+ int connected_mask;
+ int status;
+ int item_type;
+ int uuid_count;
+ char **uuids;
+ void *layout;
+ void *entry;
+ void *genlist_item;
+ void *icon;
+ void *net_profile;
+ gboolean is_bonded;
+ gboolean call_checked;
+ gboolean media_checked;
+ gboolean hid_checked;
+ gboolean network_checked;
+ gboolean highlighted;
+ void *ugd;
+ int pan_connection_result;
+} bt_dev_t;
+
+typedef struct {
+ bt_popup_t type;
+ void *data;
+} bt_popup_data;
+
+typedef struct {
+ unsigned char bd_addr[BT_ADDRESS_LENGTH_MAX];
+} bt_address_t;
+
+/**************************************************
+* Callback type
+***************************************************/
+
+typedef void (*bt_app_back_cb)(void *, void *, void *);
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __BT_TYPE_DEFINE_H__ */
--- /dev/null
+/*
+* ug-bluetooth-efl
+*
+* Copyright 2012 Samsung Electronics Co., Ltd
+*
+* Contact: Hocheol Seo <hocheol.seo@samsung.com>
+* GirishAshok Joshi <girish.joshi@samsung.com>
+* DoHyun Pyun <dh79.pyun@samsung.com>
+*
+* Licensed under the Flora License, Version 1.1 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.tizenopensource.org/license
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*/
+
+#ifndef __BT_UTIL_H__
+#define __BT_UTIL_H__
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include <glib.h>
+#include <bundle.h>
+#include <Elementary.h>
+
+#include "bt-type-define.h"
+
+/* Major Device Mask */
+#define MISCELLANEOUS_MAJOR_DEVICE_MASK (0x000000)
+#define COMPUTER_MAJOR_DEVICE_MASK (0x000100)
+#define PHONE_MAJOR_DEVICE_MASK (0x000200)
+#define LAN_MAJOR_DEVICE_MASK (0x000300)
+#define AV_MAJOR_DEVICE_MASK (0x000400)
+#define PERIPHERAL_MAJOR_DEVICE_MASK (0x000500)
+#define IMAGING_MAJOR_DEVICE_MASK (0x000600)
+#define WEARABLE_MAJOR_DEVICE_MASK (0x000700)
+#define TOY_MAJOR_DEVICE_MASK (0x000800)
+#define UNCLASSIFIED_MAJOR_DEVICE_MASK (0x001F00)
+#define OBJECT_TRANSFER_MAJOR_SERVICE_MASK (0x100000)
+
+gboolean _bt_util_update_class_of_device_by_service_list(bt_service_class_t service_list,
+ bt_major_class_t *major_class,
+ bt_minor_class_t *minor_class);
+
+void _bt_util_set_value(const char *req, unsigned int *search_type,
+ unsigned int *op_mode);
+
+gboolean _bt_util_store_get_value(const char *key,
+ bt_store_type_t store_type,
+ unsigned int size, void *value);
+
+void _bt_util_launch_no_event(void *data, void *obj, void *event);
+
+void _bt_util_set_list_disabled(Evas_Object *genlist, Eina_Bool disable);
+
+void _bt_util_set_phone_name(void);
+
+int _bt_util_get_phone_name(char *phone_name, int size);
+
+char * _bt_util_get_timeout_string(int timeout);
+
+int _bt_util_get_timeout_value(int index);
+
+int _bt_util_get_timeout_index(int timeout);
+
+void _bt_util_addr_type_to_addr_string(char *address,
+ unsigned char *addr);
+
+void _bt_util_addr_type_to_addr_result_string(char *address,
+ unsigned char *addr);
+
+void _bt_util_addr_type_to_addr_net_string(char *address,
+ unsigned char *addr);
+
+void _bt_util_addr_string_to_addr_type(unsigned char *addr,
+ const char *address);
+
+void _bt_util_convert_time_to_string(unsigned int remain_time,
+ char *text_display, char *text_read,
+ int size_display, int size_read);
+
+void _bt_util_free_device_uuids(bt_dev_t *item);
+
+void _bt_util_free_device_item(bt_dev_t *item);
+
+gboolean _bt_util_is_space_str(const char *name_str);
+
+void _bt_util_max_len_reached_cb(void *data, Evas_Object *obj,
+ void *event_info);
+
+
+#ifdef __cplusplus
+}
+#endif
+#endif /* __BT_UTIL_H__ */
--- /dev/null
+/*
+* ug-bluetooth-efl
+*
+* Copyright 2012 Samsung Electronics Co., Ltd
+*
+* Contact: Hocheol Seo <hocheol.seo@samsung.com>
+* GirishAshok Joshi <girish.joshi@samsung.com>
+* DoHyun Pyun <dh79.pyun@samsung.com>
+*
+* Licensed under the Flora License, Version 1.1 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.tizenopensource.org/license
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*/
+
+#ifndef __BT_WIDGET_H__
+#define __BT_WIDGET_H__
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include "Elementary.h"
+#include <efl_extension.h>
+
+#define BT_GENLIST_1LINE_TEXT_STYLE "type1"
+#define BT_GENLIST_1LINE_TEXT_ICON_STYLE "type1"
+#define BT_GENLIST_2LINE_TOP_TEXT_STYLE "type1"
+#define BT_GENLIST_2LINE_TOP_TEXT_ICON_STYLE "type1"
+#define BT_GENLIST_2LINE_BOTTOM_TEXT_STYLE "type2"
+#define BT_GENLIST_2LINE_BOTTOM_TEXT_ICON_STYLE "type2"
+#define BT_GENLIST_MULTILINE_TEXT_STYLE "multiline"
+#define BT_GENLIST_GROUP_INDEX_STYLE "group_index"
+#define BT_GENLIST_FULL_CONTENT_STYLE "full"
+
+#define BT_POPUP_STR_MAX_LEN 512
+
+Evas_Object *_bt_create_naviframe(Evas_Object *parent);
+
+Evas_Object *_bt_create_icon(Evas_Object *parent, char *img);
+
+Evas_Object *_bt_create_progressbar(Evas_Object *parent,
+ const char *style);
+
+void _bt_update_genlist_item(Elm_Object_Item *item);
+
+Evas_Object *_bt_main_base_layout_create(Evas_Object *parent, void *data);
+
+void _bt_set_popup_text(void *data, Evas_Object *popup);
+
+Evas_Object *_bt_create_popup(void *data, void *cb, void *cb_data,
+ int timer_val);
+#ifdef __cplusplus
+}
+#endif
+#endif /* __BT_WIDGET_H__ */
+++ /dev/null
-/*
-* ug-bluetooth-efl
-*
-* Copyright 2012 Samsung Electronics Co., Ltd
-*
-* Contact: Hocheol Seo <hocheol.seo@samsung.com>
-* GirishAshok Joshi <girish.joshi@samsung.com>
-* DoHyun Pyun <dh79.pyun@samsung.com>
-*
-* Licensed under the Flora License, Version 1.1 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.tizenopensource.org/license
-*
-* Unless required by applicable law or agreed to in writing,
-* software distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-#ifndef __BT_CALLBACK_H
-#define __BT_CALLBACK_H
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include <bluetooth.h>
-
-void _bt_cb_state_changed(int result,
- bt_adapter_state_e adapter_state,
- void *user_data);
-
-void _bt_cb_discovery_state_changed(int result,
- bt_adapter_device_discovery_state_e discovery_state,
- bt_adapter_device_discovery_info_s *discovery_info,
- void *user_data);
-
-#ifdef __cplusplus
-}
-#endif
-#endif /* __BT_CALLBACK_H */
+++ /dev/null
-/*
-* ug-bluetooth-efl
-*
-* Copyright 2012 Samsung Electronics Co., Ltd
-*
-* Contact: Hocheol Seo <hocheol.seo@samsung.com>
-* GirishAshok Joshi <girish.joshi@samsung.com>
-* DoHyun Pyun <dh79.pyun@samsung.com>
-*
-* Licensed under the Flora License, Version 1.1 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.tizenopensource.org/license
-*
-* Unless required by applicable law or agreed to in writing,
-* software distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-#ifndef __BT_DEBUG_H
-#define __BT_DEBUG_H
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include <dlog.h>
-#include <stdio.h>
-#include <string.h>
-
-#undef LOG_TAG
-#define LOG_TAG "BLUETOOTH_SETTING_UG"
-
-#define BT_INFO(fmt, arg...) SLOGI(fmt, ##arg)
-
-#define BT_ERR(fmt, arg...) SLOGE(fmt, ##arg)
-
-#define BT_DBG(fmt, arg...) SLOGD(fmt, ##arg)
-
-
-#define DBG_SECURE(fmt, args...) SECURE_SLOGD(fmt, ##args)
-#define ERR_SECURE(fmt, args...) SECURE_SLOGE(fmt, ##args)
-#define INFO_SECURE(fmt, args...) SECURE_SLOGI(fmt, ##args)
-
-#define FUNCTION_TRACE
-#ifdef FUNCTION_TRACE
-#define FN_START BT_DBG("[ENTER FUNC]");
-#define FN_END BT_DBG("[EXIT FUNC]");
-#else
-#define FN_START
-#define FN_END
-#endif
-
-#define warn_if(expr, fmt, arg...) \
- do { \
- if (expr) { \
- BT_ERR("(%s) -> "fmt, #expr, ##arg); \
- } \
- } while (0);
-
-#define ret_if(expr) \
- do { \
- if (expr) { \
- BT_ERR("(%s) return", #expr); \
- return; \
- } \
- } while (0);
-
-#define retv_if(expr, val) \
- do { \
- if (expr) { \
- BT_ERR("(%s) return", #expr); \
- return (val); \
- } \
- } while (0);
-
-#define retm_if(expr, fmt, arg...) \
- do { \
- if (expr) { \
- BT_ERR(fmt, ##arg); \
- BT_ERR("(%s) return", #expr); \
- return; \
- } \
- } while (0);
-
-#define retvm_if(expr, val, fmt, arg...) \
- do { \
- if (expr) { \
- BT_ERR(fmt, ##arg); \
- BT_ERR("(%s) return", #expr); \
- return (val); \
- } \
- } while (0);
-
-#ifdef __cplusplus
-}
-#endif
-#endif /* __BT_DEBUG_H */
+++ /dev/null
-/*
-* ug-bluetooth-efl
-*
-* Copyright 2012 Samsung Electronics Co., Ltd
-*
-* Contact: Hocheol Seo <hocheol.seo@samsung.com>
-* GirishAshok Joshi <girish.joshi@samsung.com>
-* DoHyun Pyun <dh79.pyun@samsung.com>
-*
-* Licensed under the Flora License, Version 1.1 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.tizenopensource.org/license
-*
-* Unless required by applicable law or agreed to in writing,
-* software distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-#ifndef __BT_EMULATOR_API_H__
-#define __BT_EMULATOR_API_H__
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include <bluetooth.h>
-
-int bt_emulator_start_device_discovery(void);
-
-int bt_emulator_stop_device_discovery(void);
-
-int bt_emulator_get_state(bt_adapter_state_e *adapter_state);
-
-int bt_emulator_is_discovering(bool *is_discovering);
-
-int bt_emulator_get_name(char **name);
-
-int bt_emulator_enable(void);
-
-int bt_emulator_disable(void);
-
-#endif /* __BT_EMULATOR_API_H__ */
+++ /dev/null
-/*
-* ug-bluetooth-efl
-*
-* Copyright 2012 Samsung Electronics Co., Ltd
-*
-* Licensed under the Flora License, Version 1.1 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.tizenopensource.org/license
-*
-* Unless required by applicable law or agreed to in writing,
-* software distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-
-#ifndef _BT_EVENT_MANAGER_H_
-#define _BT_EVENT_MANAGER_H_
-
-#include <sys/types.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-typedef enum {
- BT_EVENT_TIMER_ENABLE = 0x00,
- BT_EVENT_TIMER_DISABLE,
- BT_EVENT_TIMER_START_DISCOVERY,
- BT_EVENT_TIMER_STOP_DISCOVERY,
- BT_EVENT_TIMER_FOUND_DEVICE,
- BT_EVENT_MAX
-} bt_event_timer_e;
-
-
-void _bt_create_event_timer(int event_id, int interval, void *event_cb, void *user_data);
-
-void _bt_delete_event_timer(int event_id);
-
-void _bt_delete_all_event_timer(void);
-
-int _bt_get_sample_device_number(void);
-
-void* _bt_get_sample_device(int index);
-
-void _bt_free_device_discovery_info_s(void *info);
-
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
-#endif /*_BT_EVENT_MANAGER_H_*/
-
+++ /dev/null
-/*
-* ug-bluetooth-efl
-*
-* Copyright 2012 Samsung Electronics Co., Ltd
-*
-* Contact: Hocheol Seo <hocheol.seo@samsung.com>
-* GirishAshok Joshi <girish.joshi@samsung.com>
-* DoHyun Pyun <dh79.pyun@samsung.com>
-*
-* Licensed under the Flora License, Version 1.1 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.tizenopensource.org/license
-*
-* Unless required by applicable law or agreed to in writing,
-* software distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-#ifndef __BT_MAIN_UG_H__
-#define __BT_MAIN_UG_H__
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include <stdbool.h>
-#include <libintl.h>
-#include <appcore-efl.h>
-#include <Elementary.h>
-#include <efl_extension.h>
-#include <ui-gadget-module.h>
-#include <dlog.h>
-#include <bundle.h>
-#include <gio/gio.h>
-
-#include "bt-type-define.h"
-
-#ifndef UG_MODULE_API
-#define UG_MODULE_API __attribute__ ((visibility("default")))
-#endif
-
-#define PKGNAME "ug-setting-bluetooth-efl"
-
-#ifdef PREFIX
-#undef PREFIX
-#endif
-#define PREFIX "/usr/ug/"
-
-#define LOCALEDIR PREFIX"/res/locale"
-
-#define BT_EDJ_PATH PREFIX"/res/edje/ug-setting-bluetooth-efl"
-
-#define _EDJ(o) elm_layout_edje_get(o)
-#define BT_ICON_EDJ BT_EDJ_PATH"/bluetooth_images.edj"
-#define BT_GENLIST_EDJ BT_EDJ_PATH"/bluetooth_genlist.edj"
-
-#ifdef _
-#undef _
-#endif
-#define _(s) dgettext(PKGNAME, s)
-
-#define dgettext_noop(s) (s)
-
-#ifdef N_
-#undef N_
-#endif
-#define N_(s) dgettext_noop(s)
-
-#define BT_UG_VCONF_PRINTSETTING "memory/bluetooth/printsetting"
-
-typedef struct {
- /* UI gadget data */
- ui_gadget_h ug;
- Evas_Object *base;
- Evas_Object *win_main;
- Elm_Theme *theme;
-
- bt_launch_mode_t bt_launch_mode;
-
- /* Request timer */
- Ecore_Timer *request_timer;
-
- /*************************
- * Main View objects
- ************************ */
- Evas_Object *navi_bar;
- Evas_Object *main_layout;
- Elm_Object_Item *navi_it;
- Elm_Object_Item *service_navi_it;
- /* Genlist */
- Evas_Object *main_genlist;
-
-
- /* Paired / Searched devices */
- Evas_Object *searched_dlggrp;
-
- /* Selected device's genlist items */
- Elm_Object_Item *searched_item;
-
- /* Help object */
- Evas_Object *help_more_popup;
- Evas_Object *help_popup;
-
- /* Rename Device object*/
- Evas_Object *rename_popup;
- Evas_Object *rename_entry;
- Evas_Object *rename_button;
-
- /* Paired / Searched device list */
- Eina_List *searched_device;
-
- /* Button */
- Evas_Object *onoff_btn;
- Evas_Object *scan_btn;
-
- /* Genlist Item class */
- Elm_Genlist_Item_Class *device_name_itc;
- Elm_Genlist_Item_Class *rename_entry_itc;
- Elm_Genlist_Item_Class *rename_desc_itc;
- Elm_Genlist_Item_Class *searched_title_itc;
- Elm_Genlist_Item_Class *searched_device_itc;
- Elm_Genlist_Item_Class *no_device_itc;
- Elm_Genlist_Item_Class *on_itc;
- Elm_Genlist_Item_Class *off_itc;
-
- /* Genlist Items */
- Elm_Object_Item *onoff_item;
- Elm_Object_Item *device_name_item;
- Elm_Object_Item *searched_title;
- Elm_Object_Item *no_device_item;
- Elm_Object_Item *visible_exp_item[BT_MAX_TIMEOUT_ITEMS + 1];
- Elm_Object_Item *empty_status_item;
- Elm_Object_Item *rename_entry_item;
-
- /*************************
- * Popup objects
- ************************ */
- Evas_Object *popup;
- bt_popup_data popup_data;
- Evas_Object *popup_menu;
-
- /*************************
- * Status Variables
- ************************ */
- bool waiting_service_response;
- bool disconn_req;
- bool connect_req;
- bool aul_launching_req;
- bool is_discovery_started;
- unsigned int op_status;
- unsigned int ug_status;
- unsigned int help_status;
- unsigned int search_type;
-
- /*************************
- * Grobal variables
- ************************ */
- app_control_h service;
- bundle *popup_bundle;
- void *handle;
- char phone_name[BT_GLOBALIZATION_STR_LENGTH];
- int timeout_id;
- int popup_timer;
- bt_dev_t *pick_device;
- void *connection;
- bool is_popup_exist;
-
- GDBusConnection *g_conn;
- guint gdbus_owner_id;
-
- /* End key callback */
- bt_app_back_cb back_cb;
-
- Ecore_Timer *timer;
-} bt_ug_data;
-
-
-typedef enum _bt_cfg_item_reset_type {
- BT_CFG_ITEM_UNRESETABLE = 0,
- BT_CFG_ITEM_RESETABLE = 1,
-} bt_cfg_item_reset_type;
-
-typedef enum _bt_cfg_item_type {
- BT_CFG_ITEM_NODE_ERROR = 0, /** Error */
- BT_CFG_ITEM_UG_NODE = 1, /** general UG */
- BT_CFG_ITEM_UI_NODE = 2, /** no UG, no app launching, just menu name */
- BT_CFG_ITEM_TITLE_NODE = 3, /** view name */
- BT_CFG_ITEM_APP_NODE = 4, /** app type - by launcher - read doc '4' */
- BT_CFG_ITEM_VIEW_NODE = 5, /** view name - 2depth search */
-} bt_cfg_item_type;
-
-typedef struct {
- char *key_name; /** key name */
- char *icon_path; /** icon path */
- char *ug_args; /** UG path or hyperlink */
- int pos; /** position : 1st, 2st -- deprecated */
- bt_cfg_item_reset_type reset_type; /** if ug supports Reset function */
- int click_times; /** UG menu need to check */
- bt_cfg_item_type item_type; /** 0:item 1:header title */
- void *data;
-} bt_setting_cfg_node_t;
-
-void _bt_ug_destroy(void *data, void *result);
-
-bt_ug_data* _bt_ug_get_user_data(void);
-
-#ifdef __cplusplus
-}
-#endif
-#endif /* __BT_MAIN_UG_H__ */
+++ /dev/null
-/*
-* ug-bluetooth-efl
-*
-* Copyright 2012 Samsung Electronics Co., Ltd
-*
-* Contact: Hocheol Seo <hocheol.seo@samsung.com>
-* GirishAshok Joshi <girish.joshi@samsung.com>
-* DoHyun Pyun <dh79.pyun@samsung.com>
-*
-* Licensed under the Flora License, Version 1.1 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.tizenopensource.org/license
-*
-* Unless required by applicable law or agreed to in writing,
-* software distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-#ifndef __BT_MAIN_VIEW_H__
-#define __BT_MAIN_VIEW_H__
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include <glib.h>
-
-#include "bt-type-define.h"
-#include "bt-main-ug.h"
-
-typedef struct _bt_radio_item bt_radio_item;
-
-struct _bt_radio_item {
- Elm_Object_Item *it; /* Genlist Item pointer */
- int index; /* Index*/
- void *ugd;
-};
-
-int _bt_main_enable_bt(void *data);
-
-int _bt_main_disable_bt(void *data);
-
-void _bt_main_phone_name_changing_btn_cb(void *data, Evas_Object *obj,
- void *event_info);
-
-void _bt_main_popup_del_cb(void *data, Evas_Object *obj, void *event_info);
-
-void _bt_back_btn_popup_del_cb(void *data, Evas_Object *obj, void *event_info);
-
-void _bt_main_create_information_popup(void *data, char *msg);
-
-int _bt_main_draw_list_view(bt_ug_data *ugd);
-
-Elm_Object_Item *_bt_main_add_searched_device(bt_ug_data *ugd,
- bt_dev_t *dev);
-
-Elm_Object_Item *_bt_main_add_no_device_found(bt_ug_data *ugd);
-
-void _bt_main_remove_searched_device(bt_ug_data *ugd, bt_dev_t *dev);
-
-void _bt_main_remove_all_searched_devices(bt_ug_data *ugd);
-
-bt_dev_t *_bt_main_get_dev_info(Eina_List *list,
- Elm_Object_Item *genlist_item);
-
-bt_dev_t *_bt_main_get_dev_info_by_address(Eina_List *list,
- char *address);
-
-void _bt_main_init_status(bt_ug_data *ugd, void *data);
-
-bt_dev_t *_bt_main_create_searched_device_item(void *data);
-
-void _bt_main_get_paired_device(bt_ug_data *ugd);
-
-void _bt_main_scan_device(bt_ug_data *ugd);
-
-int _bt_main_service_request_cb(void *data);
-
-char *_bt_main_get_device_icon(int major_class, int minor_class,
- int connected, gboolean highlighted);
-
-int _bt_main_check_and_update_device(Eina_List *list,
- char *addr, char *name);
-
-void _bt_main_launch_syspopup(void *data, char *event_type,
- char *title, char *type);
-
-gboolean _bt_main_is_matched_profile(unsigned int search_type,
- unsigned int major_class,
- unsigned int service_class,
- app_control_h service,
- unsigned int minor_class);
-
-void _bt_main_add_searched_title(bt_ug_data *ugd);
-
-void _bt_main_add_device_name_item(bt_ug_data *ugd, Evas_Object *genlist);
-
-void _bt_update_device_list(bt_ug_data *ugd);
-
-Evas_Object * _bt_main_create_scan_button(bt_ug_data *ugd);
-
-int _bt_idle_destroy_ug(void *data);
-
-#ifdef __cplusplus
-}
-#endif
-#endif /* __BT_MAIN_VIEW_H__ */
+++ /dev/null
-/*
-* ug-bluetooth-efl
-*
-* Copyright 2012 Samsung Electronics Co., Ltd
-*
-* Contact: Hocheol Seo <hocheol.seo@samsung.com>
-* GirishAshok Joshi <girish.joshi@samsung.com>
-* DoHyun Pyun <dh79.pyun@samsung.com>
-*
-* Licensed under the Flora License, Version 1.1 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.tizenopensource.org/license
-*
-* Unless required by applicable law or agreed to in writing,
-* software distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-#ifndef __BT_RESOURCE_H
-#define __BT_RESOURCE_H
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include "bt-main-ug.h"
-
-/* Define icons */
-#define BT_ICON_UNKNOWN "buluetooth_Device_type_icon_unknown.png"
-#define BT_ICON_PHONE "buluetooth_Device_type_icon_mobilephone.png"
-#define BT_ICON_HEADSET "buluetooth_Device_type_icon_headset.png"
-#define BT_ICON_HEADPHONE "buluetooth_Device_type_icon_headphone.png"
-#define BT_ICON_PC "buluetooth_Device_type_icon_computer.png"
-#define BT_ICON_KEYBOARD "buluetooth_Device_type_icon_keyboard.png"
-#define BT_ICON_MOUSE "buluetooth_Device_type_icon_mouse.png"
-#define BT_ICON_PRINTER "buluetooth_Device_type_icon_printer.png"
-#define BT_ICON_HEALTH "bt_device_Medical.png"
-#define BT_ICON_NETWORK "buluetooth_Device_type_icon_network_infrastructure.png"
-#define BT_ICON_GAMING "buluetooth_Device_type_icon_gaming.png"
-#define BT_ICON_DISPLAY "buluetooth_Device_type_icon_display.png"
-#define BT_ICON_CAMERA "buluetooth_Device_type_icon_camera.png"
-#define BT_ICON_WATCH "buluetooth_Device_type_icon_wrist.png"
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* __BT_RESOURCE_H */
+++ /dev/null
-/*
-* ug-bluetooth-efl
-*
-* Copyright 2012 Samsung Electronics Co., Ltd
-*
-* Contact: Hocheol Seo <hocheol.seo@samsung.com>
-* GirishAshok Joshi <girish.joshi@samsung.com>
-* DoHyun Pyun <dh79.pyun@samsung.com>
-*
-* Licensed under the Flora License, Version 1.1 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.tizenopensource.org/license
-*
-* Unless required by applicable law or agreed to in writing,
-* software distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-#ifndef __BT_STRING_DEFINE_H__
-#define __BT_STRING_DEFINE_H__
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/* Not included in excel file, but it exist in STMS */
-#define BT_STR_ALLOW_TO_DELETE_YOUR_FILE_Q \
- _("IDS_BT_BODY_ALLOW_PS_TO_DELETE_YOUR_FILE_Q")
-#define BT_STR_ALLOW_TO_GET_YOUR_FILE_Q \
- _("IDS_BT_BODY_ALLOW_PS_TO_GET_YOUR_FILE_Q")
-#define BT_STR_ALLOW_TO_PUT_A_FILE_IN_Q \
- _("IDS_BT_BODY_ALLOW_PS_TO_PUT_A_FILE_IN_Q")
-#define BT_STR_ALWAYS_ON _("IDS_BT_BODY_ALWAYS_ON")
-#define BT_STR_CANCELLED _("IDS_BT_BODY_CANCELLED")
-#define BT_STR_CONTACT_ALREADY_EXISTS \
- _("IDS_BT_BODY_CONTACT_ALREADY_EXISTS")
-#define BT_STR_FILE_SENT _("IDS_BT_BODY_FILE_SENT")
-#define BT_STR_HEADSET _("IDS_BT_BODY_HEADSET")
-#define BT_STR_INVALID_TIME_ENTER_NUMBER_BETWEEN_1_AND_60 \
- _("IDS_BT_BODY_INVALID_TIME_ENTER_NUMBER_BETWEEN_1_AND_60")
-#define BT_STR_MINUTE _("IDS_BT_BODY_MINUTE_LC")
-#define BT_STR_MY_PHONES_NAME _("IDS_BT_BODY_MY_PHONES_NAME")
-#define BT_STR_MY_PHONES_VISIBILITY _("IDS_BT_BODY_MY_PHONES_VISIBILITY")
-#define BT_STR_NO_MORE_CONNECTIONS_POSSIBLE \
- _("IDS_BT_BODY_NO_MORE_CONNECTIONS_POSSIBLE_VODA")
-#define BT_STR_PAIRED_DEVICES _("IDS_BT_BODY_PAIRED_DEVICES")
-#define BT_STR_PRINTER _("IDS_BT_BODY_PRINTER")
-#define BT_STR_RECEIVCED _("IDS_BT_BODY_RECEIVED")
-#define BT_STR_SERVICES _("IDS_BT_BODY_SERVICES")
-#define BT_STR_UPDATING _("IDS_BT_BODY_UPDATING_ING")
-#define BT_STR_BLUETOOTH_DEVICES _("IDS_BT_HEADER_BLUETOOTH_DEVICES")
-#define BT_STR_ENTER_PIN _("IDS_BT_HEADER_ENTERPIN")
-#define BT_STR_NEW_DEVICE _("IDS_BT_HEADER_NEW_DEVICE")
-#define BT_STR_PRINTING _("IDS_BT_HEADER_PRINTING")
-#define BT_STR_CONNECT_STEREO _("IDS_BT_OPT_CONNECT_STEREO")
-#define BT_STR_DOWNLOAD _("IDS_BT_OPT_DOWNLOAD")
-#define BT_STR_PC _("IDS_BT_OPT_PC")
-#define BT_STR_PRINT _("IDS_BT_OPT_PRINT")
-#define BT_STR_SEARCH_OPTIONS _("IDS_BT_OPT_SEARCH_OPTIONS")
-#define BT_STR_ALLOW_PS_TO_CONNECT_Q _("IDS_BT_POP_ALLOW_PS_TO_CONNECT_Q")
-#define BT_STR_BLUETOOTH_ERROR_TRY_AGAIN_Q \
- _("IDS_BT_POP_BLUETOOTH_ERROR_TRY_AGAIN_Q")
-#define BT_STR_BLUETOOTH_TIMEOUT_TRY_AGAIN_Q \
- _("IDS_BT_POP_BLUETOOTH_TIMEOUT_TRY_AGAIN_Q")
-#define BT_STR_CONFIRM_PASSKEY_IS_PS_TO_PAIR_WITH_PS \
- _("IDS_BT_POP_CONFIRM_PASSKEY_IS_PS_TO_PAIR_WITH_PS")
-#define BT_STR_UNABLE_TO_CONNECT_TRY_Q _("IDS_BT_POP_CONNECTAGAIN")
-#define BT_STR_DELETE_QUESTION _("IDS_BT_POP_DELETE_Q")
-#define BT_STR_DELETING _("IDS_BT_POP_DELETING_ING")
-#define BT_STR_DEVICE_DELETED _("IDS_BT_POP_DEVICEDELETED")
-#define BT_STR_DOWNLOADED _("IDS_BT_POP_DOWNLOADED")
-#define BT_STR_DOWNLOADING_FAILED _("IDS_BT_POP_DOWNLOADING_FAILED")
-#define BT_STR_DOWNLOADING _("IDS_BT_POP_DOWNLOADING_ING")
-#define BT_STR_ENTER_DEVICE_NAME _("IDS_ST_POP_ENTER_DEVICE_NAME")
-#define BT_STR_ENTER_NUMBER_BETWEEN_PD_AND_PD \
- _("IDS_BT_POP_ENTER_NUMBER_BETWEEN_PD_AND_PD")
-#define BT_STR_INCORRECT_PIN_TRY_AGAIN_Q \
- _("IDS_BT_POP_INCORRECT_PIN_TRY_AGAIN_Q")
-#define BT_STR_PD_FILES_RECEIVED _("IDS_BT_POP_PD_FILES_RECEIVED")
-#define BT_STR_SENDING_CANCELLED _("IDS_BT_POP_SENDINGCANCEL")
-#define BT_STR_UNABLE_TO_SEND _("IDS_BT_POP_SENDINGFAIL")
-#define BT_STR_SERIAL_CONNECT_WITH_PS_Q _("IDS_BT_POP_SERIAL_CONNECT_WITH_PS_Q")
-#define BT_STR_FILE_RECEIVED _("IDS_BT_POP_SUBFILERECEIVED")
-#define BT_STR_UNABLE_TO_GET_SERVICE_LIST \
- _("IDS_BT_POP_UNABLE_TO_GET_SERVICE_LIST")
-#define BT_STR_CONNECT _("IDS_BT_SK_CONNECT")
-#define BT_STR_DISCONNECT _("IDS_BT_SK_DISCONNECT")
-#define BT_STR_DISCONNECT_DEVICE _("IDS_BT_HEADER_DISCONNECT_DEVICE_ABB")
-#define BT_STR_DOWNLOAD_CANCELLED _("IDS_BR_POP_DOWNLOAD_CANCELLED")
-#define BT_STR_SEARCHING _("IDS_BT_BODY_SEARCHINGDEVICE")
-#define BT_STR_CONNECTED _("IDS_BT_SBODY_CONNECTED_M_STATUS")
-#define BT_STR_DEVICE_NAME _("IDS_BT_BODY_DEVICENAME")
-#define BT_STR_NO_DEVICE _("IDS_BT_BODY_NO_DEVICES")
-#define BT_STR_GETTING_SERVICE_LIST _("IDS_BT_POP_GETTINGSERVICELIST")
-#define BT_STR_HEADSET_INFO _("IDS_BT_BODY_INFOHEADSET")
-#define BT_STR_SELECT_DEVICES _("IDS_BT_HEADER_SELECT_DEVICE")
-
-#define BT_STR_CONNECT_TO_DEVICE \
- _("IDS_BT_BODY_CONNECT_TO_BLUETOOTH_DEVICE")
-
-#define BT_STR_UNABLE_TO_GET_THE_SERVICE_LIST \
- _("IDS_BT_POP_UNABLE_TO_GET_SERVICE_LIST")
-
-#define BT_STR_FLIGHT_MODE \
- _("IDS_BT_POP_UNABLE_TO_ACTIVATE_BLUETOOTH_WHEN_FLIGHT_MODE_IS_ON")
-
-#define BT_STR_CONNECTED_PHONE_AND_MEDIO_AUDIO \
- _("IDS_BT_BODY_CONNECTED_TO_PHONE_AND_MEDIA_AUDIO")
-
-#define BT_STR_CONNECTED_PHONE_AUDIO \
- _("IDS_BT_BODY_CONNECTED_TO_PHONE_AUDIO")
-
-#define BT_STR_CONNECTED_MEDIA_AUDIO \
- _("IDS_BT_BODY_CONNECTED_TO_MEDIA_AUDIO")
-
-#define BT_STR_CONNECTED_HID_DEVICE \
- _("IDS_BT_POP_CONNECTED_TO_HID_DEVICE")
-
-#define BT_STR_SCANNING \
- _("IDS_BT_BODY_SCANNING_FOR_DEVICES_ING")
-
-#define BT_STR_SCAN \
- _("IDS_BT_SK_SCAN")
-
-
-#define BT_STR_SVC_HEADSET _("IDS_BT_BODY_HEADSET")
-#define BT_STR_SVC_HEADSET_D _("IDS_BT_BODY_INFOHEADSET")
-
-#define BT_STR_SVC_HF _("IDS_BT_BODY_HANDSFREE")
-#define BT_STR_SVC_HF_D _("IDS_BT_BODY_INFOHANDSFREE")
-
-#define BT_STR_SVC_STEREO _("IDS_BT_OPT_STEREO_HEADSET")
-#define BT_STR_SVC_STEREO_D _("IDS_BT_BODY_INFOAVHEADSET")
-
-#define BT_STR_SVC_FT _("IDS_ST_BODY_TRANSFER_FILES")
-#define BT_STR_SVC_FT_D _("IDS_BT_BODY_INFOFILETRANSFER")
-
-#define BT_STR_SVC_OP _("IDS_BT_BODY_OBJECT_PUSH")
-#define BT_STR_SVC_OP_D _("IDS_BT_BODY_INFOOBJECTPUSH")
-
-#define BT_STR_SVC_BPP _("IDS_BT_BODY_BASIC_PRINTING")
-#define BT_STR_SVC_BPP_D _("IDS_BT_BODY_PRINTER_SERVICEINFO")
-
-#define BT_STR_SVC_DUN _("IDS_BT_BODY_DIAL_UP_NETWORKING")
-#define BT_STR_SVC_DUN_D _("IDS_BT_BODY_INFODIALUP")
-
-#define BT_STR_SVC_HID _("IDS_BT_POP_HID_DEVICE")
-#define BT_STR_SVC_HID_D _("IDS_BT_BODY_HID_HKEYBOARD_MOUSE_ETC")
-
-#define BT_STR_SVC_SPP _("IDS_BT_BODY_SERIAL_PORT")
-
-#define BT_STR_SVC_SPP_D \
- _("IDS_BT_BODY_THIS_IS_USED_TO_CONNECT_TO_OTHER_BLUETOOTH_DEVICES_VIA_A_VIRTUAL_SERIAL_PORT")
-
-#define BT_STR_CONNECTION_EXISTS \
- _("IDS_BT_POP_FAILED_TO_CONNECT_HEADSET_OTHER_DEVICE_REFUSED_CONNECTION")
-
-#define BT_STR_VISIBLE_TO_ALL_NEARBY _("IDS_ST_BODY_VISIBLE_TO_ALL_NEARBY_BLUETOOTH_DEVICES")
-#define BT_STR_ONLY_VISIBLE_TO_PAIRED_DEVICES _("IDS_BT_SBODY_ONLY_VISIBLE_TO_PAIRED_BLUETOOTH_DEVICES_ABB")
-#define BT_STR_VISIBLE _("IDS_BT_POP_VISIBILITY_TIMEOUT")
-#define BT_STR_TWO_MINUTES _("IDS_BT_BODY_2_MINUTES")
-#define BT_STR_UNPAIR _("IDS_BT_OPT_UNPAIR")
-#define BT_STR_CONNECTION_OPTIONS _("IDS_BT_BODY_CONNECTION_OPTIONS")
-#define BT_STR_CALL_AUDIO _("IDS_BT_BODY_CALL_AUDIO")
-#define BT_STR_MEDIA_AUDIO _("IDS_BT_BODY_MEDIA_AUDIO")
-#define BT_STR_PS_REMAINING _("IDS_BT_BODY_PS_REMAINING")
-#define BT_STR_PSD_PSD_REMAINING _("IDS_BT_MBODY_P1SD_CP2SD_REMAINING")
-#define BT_STR_TAP_TO_CONNECT _("IDS_BT_BODY_TAP_TO_CONNECT")
-#define BT_STR_TAP_TO_DISCONNECT _("IDS_BT_BODY_TAP_TO_DISCONNECT")
-#define BT_STR_AVAILABLE_DEVICES _("IDS_BT_BODY_AVAILABLE_DEVICES")
-#define BT_STR_FIVE_MINUTES _("IDS_BT_BODY_5_MINUTES")
-#define BT_STR_ONE_HOUR _("IDS_BT_BODY_1_HOUR")
-#define BT_STR_DISCONNECTING _("IDS_BT_BODY_DISCONNECTING")
-#define BT_STR_END_CONNECTION _("IDS_WMGR_POP_THIS_WILL_END_YOUR_CONNECTION_WITH_PS")
-#define BT_STR_DISCONNECT_P_FROM_THE_P_CONNECTION \
- _("IDS_BT_BODY_DISCONNECT_P2SS_FROM_THE_P1SS_CONNECTION_Q")
-#define BT_STR_DISCONNECT_Q _("IDS_BT_POP_DISCONNECT")
-#define BT_STR_DETAILS _("IDS_BT_BODY_DETAILS")
-#define BT_STR_INPUT_DEVICE _("IDS_BT_BODY_INPUT_DEVICE")
-#define BT_STR_NO_DEVICE_FOUND _("IDS_BT_BODY_NO_DEVICES_FOUND_ABB")
-#define BT_STR_PAIRED _("IDS_BT_BODY_PAIRED")
-#define BT_STR_SEARCHING_SERVICES _("IDS_BT_POP_SEARCHING_SERVICES_ING")
-#define BT_STR_RENAME_DEVICE_TITLE _("IDS_ST_HEADER_RENAME_DEVICE")
-#define BT_STR_RENAME_DEVICE_LABEL \
- _("IDS_BT_POP_DEVICE_NAMES_ARE_DISPLAYED_TO_DISTINGUISH_EACH_OF_THE_DEVICES_AVAILABLE_IN_THE_NEARBY_DEVICES_LIST_AND_VIA_BLUETOOTH_AND_OTHER_METHODS")
-#define BT_STR_BLUETOOTH_ERROR _("IDS_BT_HEADER_BLUETOOTH_ERROR_ABB")
-#define BT_STR_MAX_CHARACTER_REACHED _("IDS_CLOG_POP_MAXIMUM_NUMBER_OF_CHARACTERS_HPD_REACHED")
-#define BT_STR_NAME_IN_USE _("IDS_YSM_POP_THIS_NAME_IS_ALREADY_IN_USE_NENTER_ANOTHER_NAME")
-#define BT_STR_BLUETOOTH_TETHERING_CONNECTION_ERROR _("IDS_MOBILEAP_POP_UNABLE_TO_USE_BLUETOOTH_TETHERING_WHILE_CONNECTED_TO_WI_FI_NETWORK")
-
-/* We need to change this design ID */
-#define BT_STR_INTERNET_ACCESS _("IDS_BT_BODY_INTERNET_ACCESS_ABB2")
-
-/* System string */
-#define BT_STR_SEARCH _("IDS_BT_OPT_SEARCH")
-#define BT_STR_STOP _("IDS_BT_SK4_STOP")
-#define BT_STR_DONE _("IDS_BR_SK_DONE")
-#define BT_STR_OK _("IDS_BT_BUTTON_OK")
-#define BT_STR_CANCEL _("IDS_BR_SK_CANCEL")
-#define BT_STR_RENAME _("IDS_BT_OPT_RENAME")
-#define BT_STR_NO _("IDS_BR_SK_NO")
-#define BT_STR_BLUETOOTH _("IDS_BT_HEADER_BLUETOOTH")
-#define BT_STR_LOW_BATTERY _("IDS_ST_BODY_LEDOT_LOW_BATTERY")
-#define BT_STR_OFF _("IDS_BT_BUTTON_OFF")
-#define BT_STR_PHONE _("IDS_BT_OPT_PLAYVIAPHONE")
-
-#define BT_STR_RETRY _("IDS_ST_BUTTON_RETRY")
-#define BT_STR_INCORRECT_PIN_MESSAGE _("IDS_BT_POP_AN_INCORRECT_PIN_HAS_BEEN_ENTERED_TRY_AGAIN")
-#define BT_STR_UNABLE_TO_PAIR_WITH_PS _("IDS_BT_POP_UNABLE_TO_PAIR_WITH_PS")
-#define BT_STR_UNABLE_TO_CONNECT_TO_PS _("IDS_BT_POP_UNABLE_TO_CONNECT_TO_PS")
-
-#define BT_STR_CONNECTING _("IDS_BT_SBODY_CONNECTING_ING")
-#define BT_STR_BLUETOOTH_HELP _("IDS_BT_OPT_HELP")
-#define BT_STR_BLUETOOTH_CLOSE _("IDS_CAM_SK_CLOSE")
-#define BT_STR_MORE _("IDS_BT_BUTTON_MORE")
-
-/* Below needs to be added to PO files for use in bt-syspopup */
-#define BT_STR_RECEIVE_PS_FROM_PS_Q _("IDS_BT_POP_RECEIVE_PS_FROM_PS_Q?")
-#define BT_STR_OVERWRITE_FILE_Q _("IDS_BT_POP_PS_ALREADY_EXISTS_OVERWRITE_Q")
-#define BT_STR_PASSKEY_MATCH_Q _("IDS_BT_POP_MATCH_PASSKEYS_ON_PS_Q?")
-#define BT_STR_ENTER_PS_ON_PS_TO_PAIR \
- _("IDS_BT_BODY_ENTER_P1SS_ON_P2SS_TO_PAIR_THEN_TAP_RETURN_OR_ENTER")
-
-#define BT_STR_RECEIVE_FILE_FROM_PS_Q \
- _("IDS_BT_POP_RECEIVE_FILE_FROM_PS_Q")
-
-#define BT_STR_BLUETOOTH_PAIRING_REQUEST \
- _("IDS_BT_HEADER_BLUETOOTH_PAIRING_REQUEST")
-
-#define BT_STR_SHOW_PASSWORD \
- _("IDS_BT_BODY_SHOW_PASSWORD")
-
-/* Below needs to be added to PO files for use in bluetooth-share-ui */
-#define BT_STR_SHARING_FN _("IDS_BT_POP_SHARING_ING")
-
-/* Below needs to be added to PO files for use in bluetooth-share */
-#define BT_STR_FILE_EXSIST_MSG _("IDS_BT_POP_PS_ALREADY_EXISTS_OVERWRITE_Q")
-#define BT_STR_FILE_DELETE_AUTHORIZE_MSG _("Delete %s by %s ?")
-#define BT_STR_SENDING _("IDS_BT_POP_SENDING_ING")
-#define BT_STR_RECEIVING _("IDS_BT_POP_RECEIVING")
-#define BT_STR_MEMORY_FULL _("IDS_BT_POP_MEMORYFULL")
-
-/* Below needs to be added to PO files for use in beat-bluetooth */
-#define BT_STR_BLUETOOTH_ON _("IDS_BT_POP_ACTIVATED")
-#define BT_STR_BLUETOOTH_AVAILABLE _("IDS_BT_BODY_BLUETOOTH_AVAILABLE")
-
-/* String access info */
-#define BT_STR_DOUBLE_TAP_RENAME _("Double Tap to rename")
-#define BT_STR_DOUBLE_TAP_UNPAIR _("Double Tap to unpair device")
-#define BT_STR_RADIO_BUTTON _("IDS_TPLATFORM_BODY_RADIO_BUTTON_T_TTS")
-#define BT_STR_RADIO_SELECTED _("IDS_TPLATFORM_BODY_SELECTED_T_TTS")
-#define BT_STR_RADIO_UNSELECTED _("IDS_TPLATFORM_BODY_NOT_SELECTED_T_TTS")
-#define BT_STR_EXP_LIST _("Expandable list")
-#define BT_STR_EXP_LIST_OPEN _("IDS_ST_BODY_DOUBLE_TAP_TO_OPEN_THE_LIST_T_TTS")
-#define BT_STR_EXP_LIST_CLOSE _("IDS_ST_BODY_DOUBLE_TAP_TO_CLOSE_THE_LIST_T_TTS")
-#define BT_STR_ON_OFF_BUTTON _("IDS_TPLATFORM_BODY_ON_OFF_BUTTON_T_TTS")
-#define BT_STR_MORE_BUTTON _("More button")
-#define BT_STR_DOUBLE_TAP_CONNECT _("Double tap to connect")
-#define BT_STR_DOUBLE_TAP_CONNECT_D _("Double tap to connect device")
-#define BT_STR_DOUBLE_TAP_DISCONNECT_D _("Double tap to disconnect device")
-#define BT_STR_CAMERA _("IDS_TPLATFORM_BODY_CAMERA")
-#define BT_STR_DISPLAY _("Display device")
-#define BT_STR_KEYBOARD _("IDS_BT_OPT_KEYBOARD")
-#define BT_STR_MOUSE _("Mouse")
-#define BT_STR_GAMING_DEVICE _("IDS_ST_BODY_GAME_CONTROLLER")
-#define BT_STR_HEALTH_DEVICE _("Health device")
-#define BT_STR_COMPUTER _("IDS_BT_OPT_COMPUTER")
-#define BT_STR_LAN_ACCESS_POINT _("IDS_BT_OPT_MOBILE_AP")
-#define BT_STR_UNKNOWN _("IDS_BT_BODY_UNKNOWNDEVICE")
-#define BT_ACC_STR_GROUP_INDEX _("IDS_TPLATFORM_BODY_GROUP_INDEX")
-#define BT_STR_UNAVAILABLE _("IDS_ST_BODY_UNAVAILABLE")
-#define BT_STR_MINUTES _("IDS_BT_BODY_MINUTES")
-#define BT_STR_SECONDS _("IDS_ST_BODY_SECONDS")
-#define BT_STR_1_MINUTE _("IDS_BT_POP_1_MINUTE")
-#define BT_STR_1_SECOND _("IDS_ST_BODY_1_SECOND")
-
-/* Help */
-#define BT_STR_OPEN_PS_SETTINGS \
- _("IDS_HELP_BODY_OPEN_PS_SETTINGS")
-#define BT_STR_SET_UP_BLUETOOTH \
- _("IDS_HELP_MBODY_SET_UP_BLUETOOTH")
-#define BT_STR_SEND_PICTURES_VIA_BLUETOOTH \
- _("IDS_HELP_HEADER_SEND_PICTURES_VIA_BLUETOOTH")
-#define BT_STR_OPEN_PS_GALLERY \
- _("IDS_HELP_BODY_OPEN_PS_GALLERY")
-#define BT_STR_SELECT_THE_PICTURE_OR_ALBUM_YOU_WANT_TO_SEND \
- _("IDS_HELP_BODY_SELECT_THE_PICTURE_OR_ALBUM_YOU_WANT_TO_SEND")
-#define BT_STR_TAP_THE_SHARE_BUTTON_AND_SELECT_PS_BLUETOOTH \
- _("IDS_HELP_BODY_TAP_THE_SHARE_BUTTON_AND_SELECT_PS_BLUETOOTH")
-#define BT_STR_SELECT_THE_DEVICE_THAT_YOU_WANT_TO_SEND_THE_IMAGE_TO \
- _("IDS_HELP_BODY_SELECT_THE_DEVICE_THAT_YOU_WANT_TO_SEND_THE_IMAGE_TO")
-#define BT_STR_SEND_THE_PICTURE_YOU_CAN_TRACK_ITS_PROGRESS_IN_THE_NOTIFICATION_PANEL \
- _("IDS_HELP_BODY_SEND_THE_PICTURE_YOU_CAN_TRACK_ITS_PROGRESS_IN_THE_NOTIFICATION_PANEL")
-#define BT_STR_MAKE_THE_DEVICE_YOU_ARE_CONNECTING_TO_VISIBLE \
- _("IDS_HELP_BODY_MAKE_THE_DEVICE_YOU_ARE_CONNECTING_TO_VISIBLE")
-#define BT_STR_MAKE_THE_DEVICE_YOU_ARE_CONNECTING_TO_VISIBLE_THEN_TAP_SCAN \
- _("IDS_HELP_BODY_MAKE_THE_DEVICE_YOU_ARE_CONNECTING_TO_VISIBLE_THEN_TAP_SCAN")
-#define BT_STR_TOGGLE_THE_BUTTON_AND_TAP_SCAN_TO_TURN_ON_BLUETOOTH_AND_SCAN_FOR_DEVICES \
- _("IDS_HELP_BODY_TOGGLE_THE_BUTTON_AND_TAP_SCAN_TO_TURN_ON_BLUETOOTH_AND_SCAN_FOR_DEVICES")
-#define BT_STR_SELECT_PS_BLUETOOTH \
- _("IDS_HELP_BODY_SELECT_PS_BLUETOOTH")
-#define BT_STR_SELECT_THE_DEVICE_YOU_WANT_TO_CONNECT_TO_FROM_LIST \
- _("IDS_HELP_BODY_SELECT_THE_DEVICE_YOU_WANT_TO_CONNECT_TO_FROM_LIST")
-#define BT_STR_TAP_THE_DEVICE_YOU_WANT_TO_PAIR_WITH_OR_CONNECT_TO_IF_THE_DEVICE_IS_NOT_IN_THE_LIST_MAKE_SURE_IT_IS_VISIBLE_THEN_TAP_SCAN \
- _("IDS_HELP_BODY_TAP_THE_DEVICE_YOU_WANT_TO_PAIR_WITH_OR_CONNECT_TO_IF_THE_DEVICE_IS_NOT_IN_THE_LIST_MAKE_SURE_IT_IS_VISIBLE_THEN_TAP_SCAN")
-#define BT_STR_PAIRED_WITH_OR_CONNECTED_TO_SELECTED_DEVICE_SUCCESSFULLY_TAP_THE_CONFIGURATION_ICON_TO_CONFIGURE_THE_DEVICE_PROFILE \
- _("IDS_HELP_POP_PAIRED_WITH_OR_CONNECTED_TO_SELECTED_DEVICE_SUCCESSFULLY_TAP_THE_CONFIGURATION_ICON_TO_CONFIGURE_THE_DEVICE_PROFILE")
-#define BT_STR_YOUVE_COMPLETED_THE_STEP_BY_STEP_GUIDE_RETURN_TO_HELP \
- _("IDS_HELP_POP_YOUVE_COMPLETED_THE_STEP_BY_STEP_GUIDE_RETURN_TO_HELP")
-#define BT_STR_TUTORIAL_COMPLETED \
- _("IDS_HELP_POP_TUTORIAL_COMPLETE")
-#define BT_STR_SCANNING_DEVICES_ING \
- _("IDS_PB_MBODY_SCANNING_DEVICES_ING")
-#define BT_STR_INVALID_ACTION_TRY_AGAIN \
- _("IDS_HELP_POP_INVALID_ACTION_TRY_AGAIN")
-#define BT_STR_TURN_ON_BLUETOOTH_TO_SEE_A_LIST_OF_AVAILABLE_DEVICES \
- _("IDS_BT_BODY_TURN_ON_BLUETOOTH_TO_SEE_A_LIST_OF_DEVICES_YOU_CAN_PAIR_WITH_OR_HAVE_ALREADY_PAIRED_WITH")
-
-#define BT_STR_MY_DEVICE _("IDS_ST_HEADER_MY_DEVICE_NAME")
-
-#define BT_STR_TURNING_ON_BLUETOOTH _("IDS_BT_BODY_TURNING_ON_BLUETOOTH_ING")
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* __BT_STRING_DEFINE_H__ */
+++ /dev/null
-/*
-* ug-bluetooth-efl
-*
-* Copyright 2012 Samsung Electronics Co., Ltd
-*
-* Contact: Hocheol Seo <hocheol.seo@samsung.com>
-* GirishAshok Joshi <girish.joshi@samsung.com>
-* DoHyun Pyun <dh79.pyun@samsung.com>
-*
-* Licensed under the Flora License, Version 1.1 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.tizenopensource.org/license
-*
-* Unless required by applicable law or agreed to in writing,
-* software distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-#ifndef __BT_TYPE_DEFINE_H__
-#define __BT_TYPE_DEFINE_H__
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-
-#include <glib.h>
-#include <bluetooth.h>
-
-/**************************************************
-* Constant Value
-***************************************************/
-
-#define BT_GLOBALIZATION_STR_LENGTH 256
-#define BT_MAX_CHARS_IN_FTP_TITLE 12
-#define BT_MAX_MENU_NAME_LEN 64
-#define BT_MAX_SERVICE_LIST 9
-#define DEVICE_NAME_MAX_CHARACTER 32
-#define DEVICE_NAME_MAX_LEN 100
-#define BT_ADDRESS_LENGTH_MAX 6
-#define BT_ADDRESS_STR_LEN 18
-#define BT_FILE_NAME_LEN_MAX 255
-#define BT_IMG_PATH_MAX 256
-#define BT_HTML_EXTRA_TAG_LENGTH 20
-#define BT_SERVICE_NAME_LENGTH 30
-#define BT_SERVICE_CONTENT_LENGTH 256
-#define BT_PHONE_NUM_LEN 50
-#define BT_EXTRA_STR_LEN 10
-#define BT_BUFFER_LEN 256
-#define BT_TIMEOUT_MAX 3600
-#define BT_MAX_TIMEOUT_ITEMS 5
-#define BT_GLOBALIZATION_TEXT_LENGTH \
- (BT_GLOBALIZATION_STR_LENGTH+BT_EXTRA_STR_LEN)
-#define BT_DISCONNECT_TEXT_LENGTH \
- ((2*BT_GLOBALIZATION_STR_LENGTH)+DEVICE_NAME_MAX_LEN)
-#define BT_SERVICE_TEXT_LENGTH \
- (BT_SERVICE_CONTENT_LENGTH+BT_HTML_EXTRA_TAG_LENGTH)* \
- BT_MAX_SERVICE_LIST
-#define BT_UG_SYSPOPUP_TIMEOUT_FOR_MULTIPLE_POPUPS 200
-
-
-/* Timeout Value */
-#define BT_SEARCH_SERVICE_TIMEOUT 5
-#define BT_SELECTED_TIMEOUT 5
-#define BT_DELETED_TIMEOUT 2
-#define BT_VISIBILITY_TIMEOUT 1000
-#define BT_HELP_TIMEOUT 3000
-
-/* Define Error type */
-#define BT_UG_FAIL -1
-#define BT_UG_ERROR_NONE 0
-
-#define BT_TWO_MINUTES 120
-#define BT_FIVE_MINUTES 300
-#define BT_ONE_HOUR 3600
-#define BT_ZERO 0
-#define BT_ALWAYS_ON -1
-
-#define BT_RESULT_STR_MAX 256
-
-#define BT_GENLIST_FONT_32_INC 32
-
-/**************************************************
-* String define
-***************************************************/
-
-#define BT_SET_FONT_SIZE \
-"<font_size=%d>%s</font_size>"
-
-#define BT_SET_FONT_SIZE_COLOR \
-"<font_size=%d><color=%s>%s</color></font_size>"
-
-/* GENLIST_TEXT_COLOR_LIST_SUB_TEXT_SETTINGS 42 137 194 255 */
-#define BT_GENLIST_SUBTEXT_COLOR "#2A89C2FF"
-#define BT_GENLIST_WHITE_SUBTEXT_COLOR "#FFFFFFFF"
-
-#define BT_RESULT_SUCCESS "success"
-#define BT_RESULT_FAIL "fail"
-
-#define BT_ADAPTER_ON "on"
-#define BT_ADAPTER_OFF "off"
-
-#define BT_DEFAULT_PHONE_NAME "Kiran"
-
-#define BT_SYSPOPUP_REQUEST_NAME "app-confirm-request"
-#define BT_SYSPOPUP_TWO_BUTTON_TYPE "twobtn"
-#define BT_SYSPOPUP_ONE_BUTTON_TYPE "onebtn"
-
-#define BT_FILE_VISIBLE_TIME "file/private/libug-setting-bluetooth-efl/visibility_time"
-
-/* AppControl Operation */
-#define BT_APPCONTROL_PICK_OPERATION "http://tizen.org/appcontrol/operation/bluetooth/pick"
-
-#define BT_APPCONTROL_VISIBILITY_OPERATION "http://tizen.org/appcontrol/operation/configure/bluetooth/visibility"
-
-#define BT_APPCONTROL_ONOFF_OPERATION "http://tizen.org/appcontrol/operation/configure/bluetooth/onoff"
-
-#define APP_CONTROL_OPERATION_SETTING_BT_ENABLE "http://tizen.org/appcontrol/operation/setting/bt_enable"
-
-#define APP_CONTROL_OPERATION_SETTING_BT_VISIBILITY "http://tizen.org/appcontrol/operation/setting/bt_visibility"
-
-#define BT_APPCONTROL_EDIT_OPERATION "http://tizen.org/appcontrol/operation/edit"
-
-#define BT_APPCONTROL_ONOFF_MIME "application/x-bluetooth-on-off"
-
-#define BT_APPCONTROL_VISIBILITY_MIME "application/x-bluetooth-visibility"
-
-/* AppControl Output */
-#define BT_APPCONTROL_ADDRESS "http://tizen.org/appcontrol/data/bluetooth/address"
-#define BT_APPCONTROL_NAME "http://tizen.org/appcontrol/data/bluetooth/name"
-#define BT_APPCONTROL_RSSI "http://tizen.org/appcontrol/data/bluetooth/rssi"
-#define BT_APPCONTROL_IS_PAIRED "http://tizen.org/appcontrol/data/bluetooth/is_paired"
-#define BT_APPCONTROL_MAJOR_CLASS "http://tizen.org/appcontrol/data/bluetooth/major_class"
-#define BT_APPCONTROL_MINOR_CLASS "http://tizen.org/appcontrol/data/bluetooth/minor_class"
-#define BT_APPCONTROL_SERVICE_CLASS "http://tizen.org/appcontrol/data/bluetooth/service_class"
-#define BT_APPCONTROL_SERVICE_TYPE "http://tizen.org/appcontrol/data/bluetooth/service_type"
-#define BT_APPCONTROL_UUID_LIST "http://tizen.org/appcontrol/data/bluetooth/uuid_list"
-#define BT_APPCONTROL_VISIBILITY "http://tizen.org/appcontrol/data/bluetooth/visibility"
-
-/* Access information */
-#define BT_STR_ACCES_INFO_MAX_LEN 512
-#define BT_STR_ACC_ICON "Icon"
-
-/**************************************************
-* Enum type
-***************************************************/
-
-typedef enum {
- BT_CONNECTION_REQ,
- BT_PAIRING_REQ,
- BT_NONE_REQ,
-} bt_confirm_req_t;
-
-/* Visible timout value (sec)*/
-typedef enum {
- BT_2MIN = 120,
- BT_5MIN = 300,
- BT_1HOUR = 3600,
- BT_NO_TIMEOUT = 0,
-} bt_visible_time_t;
-
-typedef enum {
- BT_VISIBLE_OFF = 0,
- BT_VISIBLE_ALWAYS = 1,
- BT_VISIBLE_TIME_LIMITED = 2,
-} bt_visible_result_t;
-
-typedef enum {
- BT_SEARCH_ALL_DEVICE = 0,
- BT_SEARCH_PHONE,
- BT_SEARCH_HEADSET,
- BT_SEARCH_PC,
- BT_SEARCH_HID,
-} bt_search_option_t;
-
-typedef enum {
- BT_CONNECT_MENU = 1,
- BT_SEND_MENU,
- BT_RENAME_MENU,
- BT_DELETE_MENU,
- BT_SERVICE_LIST_MENU,
-} bt_menu_index_t;
-
-typedef enum {
- BT_PAIRED_DEVICE_DISABLE,
- BT_PAIRED_DEVICE_ENABLE,
-} bt_app_paired_device_status_t;
-
-typedef enum {
- BT_STATUS_OFF = 0x0000,
- BT_STATUS_ON = 0x0001,
- BT_STATUS_BT_VISIBLE = 0x0002,
- BT_STATUS_TRANSFER = 0x0004,
-} bt_status_t;
-
-typedef enum {
- BT_POPUP_PAIRING_ERROR = 0,
- BT_POPUP_GET_SERVICE_LIST_ERROR,
- BT_POPUP_GETTING_SERVICE_LIST,
- BT_POPUP_CONNECTION_ERROR,
- BT_POPUP_DISCONNECT,
- BT_POPUP_ENTER_DEVICE_NAME,
- BT_POPUP_LOW_BATTERY,
-} bt_popup_t;
-
-typedef enum {
- BT_LAUNCH_NORMAL = 0,
- BT_LAUNCH_SEND_FILE,
- BT_LAUNCH_PRINT_IMAGE,
- BT_LAUNCH_CONNECT_HEADSET,
- BT_LAUNCH_CONNECT_AUDIO_SOURCE,
- BT_LAUNCH_USE_NFC,
- BT_LAUNCH_PICK,
- BT_LAUNCH_VISIBILITY,
- BT_LAUNCH_SHARE_CONTACT,
- BT_LAUNCH_HELP,
- BT_LAUNCH_ONOFF,
-} bt_launch_mode_t;
-
-typedef enum {
- BT_HELP_VIEW_NONE = 0x00,
- BT_HELP_VIEW_1 = 0x01,
- BT_HELP_VIEW_2 = 0x02,
- BT_HELP_VIEW_3 = 0x03,
- BT_HELP_VIEW_4 = 0x04,
-} bt_help_view_t;
-
-typedef enum {
- BT_CONTROL_BAR_DISABLE,
- BT_CONTROL_BAR_ENABLE,
-} bt_control_bar_status_t;
-
-typedef enum {
- BT_NOCONTENT_HIDE,
- BT_NOCONTNET_SHOW,
-} bt_nocontent_mode_t;
-
-typedef enum {
- BT_STORE_BOOLEAN,
- BT_STORE_INT,
- BT_STORE_STRING,
-} bt_store_type_t;
-
-typedef enum {
- BT_ACTIVATED = 0,
- BT_ACTIVATING,
- BT_DEACTIVATED,
- BT_DEACTIVATING,
- BT_SEARCHING,
- BT_PAIRING,
-} bt_oper_t;
-
-typedef enum {
- BT_UG_CREATE = 0,
- BT_UG_START,
- BT_UG_PAUSE,
- BT_UG_RESUME,
- BT_UG_DESTORY
-} bt_ug_status_t;
-
-
-typedef enum {
- BT_IDLE = 0,
- BT_DEV_PAIRING,
- BT_DEV_UNPAIRING,
- BT_CONNECTING,
- BT_DISCONNECTING,
- BT_SERVICE_SEARCHING
-} bt_dev_status_t;
-
-typedef enum {
- BT_RUN_STATUS_NO_CHANGE = 0x00, /* No Change BT status*/
- BT_RUN_STATUS_ACTIVATE = 0x01, /* BT Activate*/
- BT_RUN_STATUS_DEACTIVATE = 0x02, /* BT Deactivate*/
- BT_RUN_STATUS_SEARCH_TEST = 0x03, /* BT Search Test*/
- BT_RUN_STATUS_TERMINATE = 0x04, /* BT Terminate*/
- BT_RUN_STATUS_MAX = 0x05, /* Max val*/
-} bt_run_status_t;
-
-typedef enum {
- BT_ON_CURRENTVIEW = 0x00, /* Run BT on current view*/
- BT_ON_FOREGROUND = 0x01, /* Run BT on foreground*/
- BT_ON_BACKGROUND = 0x02, /* Run BT on background*/
-} bt_on_t;
-
-typedef enum {
- BT_HEADSET_CONNECTED = 0x01,
- BT_STEREO_HEADSET_CONNECTED = 0x02,
- BT_HID_CONNECTED = 0x04,
- BT_NETWORK_CONNECTED = 0x08,
- BT_NETWORK_SERVER_CONNECTED = 0x10,
- BT_MUSIC_PLAYER_CONNECTED = 0x20,
-} bt_connected_mask_t;
-
-/**
- * This enum indicates Device states.
- */
-
-typedef enum {
- BT_DEVICE_NONE, /** < None*/
- BT_DEVICE_PAIRED, /** < Device Paired*/
- BT_DEVICE_CONNECTED/** <Device Connected*/
-} bt_device_state_t;
-
-typedef enum {
- BT_ITEM_NO_TYPE,
- BT_ITEM_TOP,
- BT_ITEM_CENTER,
- BT_ITEM_BOTTOM,
-} bt_item_type_t;
-
-typedef enum {
- BT_ITEM_NONE,
- BT_ITEM_NAME,
- BT_ITEM_UNPAIR,
- BT_ITEM_CALL,
- BT_ITEM_MEDIA,
- BT_ITEM_HID,
- BT_ITEM_NETWORK,
-} bt_profile_view_item_type_t;
-
-typedef enum {
- BT_DEVICE_MAJOR_MASK_MISC = 0x00,
- BT_DEVICE_MAJOR_MASK_COMPUTER = 0x0001,
- BT_DEVICE_MAJOR_MASK_PHONE = 0x0002,
- BT_DEVICE_MAJOR_MASK_LAN_ACCESS_POINT = 0x0004,
- BT_DEVICE_MAJOR_MASK_AUDIO = 0x0008,
- BT_DEVICE_MAJOR_MASK_PERIPHERAL = 0x0010,
- BT_DEVICE_MAJOR_MASK_IMAGING = 0x0020,
- BT_DEVICE_MAJOR_MASK_WEARABLE = 0x0040,
- BT_DEVICE_MAJOR_MASK_TOY = 0x0080,
- BT_DEVICE_MAJOR_MASK_HEALTH = 0x0100,
-} bt_device_major_mask_t;
-
-/*
- * Major device class (part of Class of Device)
- */
-typedef enum {
- BT_MAJOR_DEV_CLS_MISC = 0x00,/**<miscellaneous */
- BT_MAJOR_DEV_CLS_COMPUTER = 0x01, /**<Computer */
- BT_MAJOR_DEV_CLS_PHONE = 0x02, /**<Phone */
- BT_MAJOR_DEV_CLS_LAN_ACCESS_POINT = 0x03,/**<LAN access point */
- BT_MAJOR_DEV_CLS_AUDIO = 0x04,/**<AudioDevice */
- BT_MAJOR_DEV_CLS_PERIPHERAL = 0x05,/**<Peripheral Device */
- BT_MAJOR_DEV_CLS_IMAGING = 0x06,/**<Imaging Device */
- BT_MAJOR_DEV_CLS_WEARABLE = 0x07,/**<Wearable Device */
- BT_MAJOR_DEV_CLS_TOY = 0x08,/**<Toy Device */
- BT_MAJOR_DEV_CLS_HEALTH = 0x09,/**<Health Device */
- BT_MAJOR_DEV_CLS_UNCLASSIFIED = 0x1F/**<Unclassified device */
-} bt_major_class_t;
-
-/*
- * Minor device class (part of Class of Device)
- */
-typedef enum {
- BTAPP_MIN_DEV_CLS_UNCLASSIFIED = 0x00,
- BTAPP_MIN_DEV_CLS_DESKTOP_WORKSTATION = 0x04,
- BTAPP_MIN_DEV_CLS_SERVER_CLASS_COMPUTER = 0x08,
- BTAPP_MIN_DEV_CLS_LAPTOP = 0x0C,
- BTAPP_MIN_DEV_CLS_HANDHELD_PC_OR_PDA = 0x10,
- BTAPP_MIN_DEV_CLS_PALM_SIZED_PC_OR_PDA = 0x14,
- BTAPP_MIN_DEV_CLS_WEARABLE_COMPUTER = 0x18,
-
- BTAPP_MIN_DEV_CLS_CELLULAR = 0x04,
- BTAPP_MIN_DEV_CLS_CORDLESS = 0x08,
- BTAPP_MIN_DEV_CLS_SMART_PHONE = 0x0C,
- BTAPP_MIN_DEV_CLS_WIRED_MODEM_OR_VOICE_GATEWAY = 0x10,
- BTAPP_MIN_DEV_CLS_COMMON_ISDN_ACCESS = 0x14,
- BTAPP_MIN_DEV_CLS_SIM_CARD_READER = 0x18,
- BTAPP_MID_DEV_CLS_PRINTER = 0x80,
-
- BTAPP_MIN_DEV_CLS_FULLY_AVAILABLE = 0x04,
- BTAPP_MIN_DEV_CLS_1_TO_17_PERCENT_UTILIZED = 0x20,
- BTAPP_MIN_DEV_CLS_17_TO_33_PERCENT_UTILIZED = 0x40,
- BTAPP_MIN_DEV_CLS_33_TO_50_PERCENT_UTILIZED = 0x60,
- BTAPP_MIN_DEV_CLS_50_to_67_PERCENT_UTILIZED = 0x80,
- BTAPP_MIN_DEV_CLS_67_TO_83_PERCENT_UTILIZED = 0xA0,
- BTAPP_MIN_DEV_CLS_83_TO_99_PERCENT_UTILIZED = 0xC0,
- BTAPP_MIN_DEV_CLS_NO_SERVICE_AVAILABLE = 0xE0,
-
- BTAPP_MIN_DEV_CLS_HEADSET_PROFILE = 0x04,
- BTAPP_MIN_DEV_CLS_HANDSFREE = 0x08,
- BTAPP_MIN_DEV_CLS_MICROPHONE = 0x10,
- BTAPP_MIN_DEV_CLS_LOUD_SPEAKER = 0x14,
- BTAPP_MIN_DEV_CLS_HEADPHONES = 0x18,
- BTAPP_MIN_DEV_CLS_PORTABLE_AUDIO = 0x1C,
- BTAPP_MIN_DEV_CLS_CAR_AUDIO = 0x20,
- BTAPP_MIN_DEV_CLS_SET_TOP_BOX = 0x24,
- BTAPP_MIN_DEV_CLS_HIFI_AUDIO_DEVICE = 0x28,
- BTAPP_MIN_DEV_CLS_VCR = 0x2C,
- BTAPP_MIN_DEV_CLS_VIDEO_CAMERA = 0x30,
- BTAPP_MIN_DEV_CLS_CAM_CORDER = 0x34,
- BTAPP_MIN_DEV_CLS_VIDEO_MONITOR = 0x38,
- BTAPP_MIN_DEV_CLS_VIDEO_DISPLAY_AND_LOUD_SPEAKER = 0x3C,
- BTAPP_MIN_DEV_CLS_VIDEO_CONFERENCING = 0x40,
- BTAPP_MIN_DEV_CLS_GAMING_OR_TOY = 0x48,
-
- BTAPP_MIN_DEV_CLS_KEY_BOARD = 0x40,
- BTAPP_MIN_DEV_CLS_POINTING_DEVICE = 0x80,
- BTAPP_MIN_DEV_CLS_COMBO_KEYBOARD_OR_POINTING_DEVICE = 0xC0,
-
- BTAPP_MIN_DEV_CLS_JOYSTICK = 0x04,
- BTAPP_MIN_DEV_CLS_GAME_PAD = 0x08,
- BTAPP_MIN_DEV_CLS_REMOTE_CONTROL = 0x0C,
- BTAPP_MIN_DEV_CLS_SENSING_DEVICE = 0x10,
- BTAPP_MIN_DEV_CLS_DIGITIZER_TABLET = 0x14,
- BTAPP_MIN_DEV_CLS_CARD_READER = 0x18,
-
- BTAPP_MIN_DEV_CLS_DISPLAY = 0x10,
- BTAPP_MIN_DEV_CLS_CAMERA = 0x20,
- BTAPP_MIN_DEV_CLS_SCANNER = 0x40,
- BTAPP_MIN_DEV_CLS_PRINTER = 0x80,
-
- BTAPP_MIN_DEV_CLS_WRIST_WATCH = 0x04,
- BTAPP_MIN_DEV_CLS_PAGER = 0x08,
- BTAPP_MIN_DEV_CLS_JACKET = 0x0C,
- BTAPP_MIN_DEV_CLS_HELMET = 0x10,
- BTAPP_MIN_DEV_CLS_GLASSES = 0x14,
-
- BTAPP_MIN_DEV_CLS_ROBOT = 0x04,
- BTAPP_MIN_DEV_CLS_VEHICLE = 0x08,
- BTAPP_MIN_DEV_CLS_DOLL_OR_ACTION = 0x0C,
- BTAPP_MIN_DEV_CLS_CONTROLLER = 0x10,
- BTAPP_MIN_DEV_CLS_GAME = 0x14,
-
- BTAPP_MIN_DEV_CLS_BLOOD_PRESSURE_MONITOR = 0x04,
- BTAPP_MIN_DEV_CLS_THERMOMETER = 0x08,
- BTAPP_MIN_DEV_CLS_WEIGHING_SCALE = 0x0C,
- BTAPP_MIN_DEV_CLS_GLUCOSE_METER = 0x10,
- BTAPP_MIN_DEV_CLS_PULSE_OXIMETER = 0x14,
- BTAPP_MIN_DEV_CLS_HEART_OR_PULSE_RATE_MONITOR = 0x18,
- BTAPP_MIN_DEV_CLS_MEDICAL_DATA_DISPLAY = 0x1C,
-} bt_minor_class_t;
-
-
-/*
- * Service class part of class of device returned from device discovery
- */
-
-/**
- * This enum indicates Service calls part of device returned from device discovery.
- */
-typedef enum {
- BT_COD_SC_ALL = 0x000000, /**< ALL*/
- BT_COD_SC_LIMITED_DISCOVERABLE_MODE = 0x002000,
- BT_COD_SC_POSITIONING = 0x010000,/**< POSITIONING*/
- BT_COD_SC_NETWORKING = 0x020000,/**< NETWORKING*/
- BT_COD_SC_RENDERING = 0x040000,/**< RENDERING*/
- BT_COD_SC_CAPTURING = 0x080000,/**< CAPTURING*/
- BT_COD_SC_OBJECT_TRANSFER = 0x100000,/**< OBJECT_TRANSFER*/
- BT_COD_SC_AUDIO = 0x200000,/**< AUDIO*/
- BT_COD_SC_TELEPHONY = 0x400000,/**< TELEPHONY*/
- BT_COD_SC_INFORMATION = 0x800000,/**< INFORMATION*/
- BT_COD_SC_UNKNOWN = 0x1FF000/**< UNKNOWN */
-} bt_cod_service_class_t;
-
-typedef enum {
- BT_SPP_PROFILE_UUID = ((unsigned short)0x1101), /**<SPP*/
- BT_LAP_PROFILE_UUID = ((unsigned short)0x1102), /**<LAP*/
- BT_DUN_PROFILE_UUID = ((unsigned short)0x1103), /**<DUN*/
- BT_OBEX_IR_MC_SYNC_SERVICE_UUID = ((unsigned short)0x1104), /**<OBEX IR MC SYNC*/
- BT_OBEX_OBJECT_PUSH_SERVICE_UUID = ((unsigned short)0x1105), /**<OPP*/
- BT_OBEX_FILE_TRANSFER_UUID = ((unsigned short)0x1106), /**<FTP*/
- BT_IRMC_SYNC_COMMAND_UUID = ((unsigned short)0x1107), /**<IRMC SYNC COMMAND*/
- BT_HS_PROFILE_UUID = ((unsigned short)0x1108), /**<HS*/
- BT_CTP_PROFILE_UUID = ((unsigned short)0x1109), /**<CTP*/
- BT_AUDIO_SOURCE_UUID = ((unsigned short)0x110A), /**<AUDIO SOURCE*/
- BT_AUDIO_SINK_UUID = ((unsigned short)0x110B), /**<AUDIO SINK*/
- BT_AV_REMOTE_CONTROL_TARGET_UUID = ((unsigned short)0x110C), /**<AV REMOTE CONTROL
- TARGET*/
- BT_ADVANCED_AUDIO_PROFILE_UUID = ((unsigned short)0x110D), /**<A2DP*/
- BT_AV_REMOTE_CONTROL_UUID = ((unsigned short)0x110E), /**<AV REMOTE CONTROL UUID*/
- BT_AV_REMOTE_CONTROL_CONTROLLER_UUID = ((unsigned short)0x110F), /**<AV REMOTE CONTROLLER UUID*/
- BT_ICP_PROFILE_UUID = ((unsigned short)0x1110), /**<ICP*/
- BT_FAX_PROFILE_UUID = ((unsigned short)0x1111), /**<FAX*/
- BT_HEADSET_AG_SERVICE_UUID = ((unsigned short)0x1112), /**<HS AG */
- BT_PAN_PANU_PROFILE_UUID = ((unsigned short)0x1115), /**<PAN*/
- BT_PAN_NAP_PROFILE_UUID = ((unsigned short)0x1116), /**<PAN*/
- BT_PAN_GN_PROFILE_UUID = ((unsigned short)0x1117), /**<PAN*/
- BT_DIRECT_PRINTING = ((unsigned short)0x1118),
- BT_OBEX_BPPS_PROFILE_UUID = ((unsigned short)0x1118), /**<OBEX BPPS*/ /* Will be removed */
- BT_REFERENCE_PRINTING = ((unsigned short)0x1119),
- BT_OBEX_IMAGING_UUID = ((unsigned short)0x111A), /**<OBEX_IMAGING*/
- BT_OBEX_IMAGING_RESPONDER_UUID = ((unsigned short)0x111B), /**<OBEX_IMAGING
- RESPONDER*/
- BT_IMAGING_AUTOMATIC_ARCHIVE_UUID = ((unsigned short)0x111C), /**<IMAGING AUTOMATIC ARCHIVE*/
- BT_IMAGING_REFERENCED_OBJECTS_UUID = ((unsigned short)0x111D), /**<IMAGING REFERENCED OBJECTS*/
- BT_HF_PROFILE_UUID = ((unsigned short)0x111E), /**<HF*/
- BT_HFG_PROFILE_UUID = ((unsigned short)0x111F), /**<HFG*/
- BT_DIRECT_PRINTING_REFERENCE_OBJ_UUID = ((unsigned short)0x1120),
- /**<DIRECT PRINTING*/
- BT_REFLECTED_UI = ((unsigned short)0x1121), /**<REFLECTED UI*/
- BT_BASIC_PRINTING = ((unsigned short)0x1122), /**<BASIC PRINTING*/
- BT_PRINTING_STATUS = ((unsigned short)0x1123), /**<PRINTING STATUS*/
- BT_OBEX_PRINTING_STATUS_UUID = ((unsigned short)0x1123), /**<OBEX PRINTING STATUS*/ /* Will be removed */
- BT_HID_PROFILE_UUID = ((unsigned short)0x1124), /**<HID*/
- BT_HCR_PROFILE_UUID = ((unsigned short)0x1125), /**<HCRP*/
- BT_HCR_PRINT_UUID = ((unsigned short)0x1126), /**<HCR PRINT*/
- BT_HCR_SCAN_UUID = ((unsigned short)0x1127), /**<HCR SCAN*/
- BT_SIM_ACCESS_PROFILE_UUID = ((unsigned short)0x112D), /**<SIM ACCESS PROFILE*/
- BT_PBAP_PCE_UUID = ((unsigned short)0x112E), /**<PBAP - PCE*/
- BT_PBAP_PSE_UUID = ((unsigned short)0x112F), /**<OBEX PBA*/
- BT_OBEX_PBA_PROFILE_UUID = ((unsigned short)0x112F), /**<OBEX PBA*/ /* Will be removed */
- BT_OBEX_PBAP_UUID = ((unsigned short)0x1130), /**<OBEX PBA*/
- BT_HEADSET_HS_UUID = ((unsigned short)0x1131), /**<HEADSET HS*/
- BT_MESSAGE_ACCESS_SERVER_UUID = ((unsigned short)0x1132),/**<MESSAGE ACCESS SERVER*/
- BT_MESSAGE_NOTIFICATION_SERVER_UUID = ((unsigned short)0x1133),/**<MESSAGE NOTIFICATION SERVER*/
- BT_MESSAGE_ACCESS_PROFILE_UUID = ((unsigned short)0x1134),/**<MESSAGE ACCESS PROFILE*/
- BT_PNP_INFORMATION_UUID = ((unsigned short)0x1200), /**<PNP*/
- BT_GENERIC_NETWORKING_UUID = ((unsigned short)0x1201), /**<GENERIC NETWORKING*/
- BT_GENERIC_FILE_TRANSFER_UUID = ((unsigned short)0x1202),/**<GENERIC FILE TRANSFER*/
- BT_GENERIC_AUDIO_UUID = ((unsigned short)0x1203), /**<GENERIC AUDIO*/
- BT_GENERIC_TELEPHONY_UUID = ((unsigned short)0x1204), /**<GENERIC TELEPHONY*/
- BT_VIDEO_SOURCE_UUID = ((unsigned short)0x1303), /**<VEDIO SOURCE*/
- BT_VIDEO_SINK_UUID = ((unsigned short)0x1304), /**<VEDIO SINK*/
- BT_VIDEO_DISTRIBUTION_UUID = ((unsigned short)0x1305), /**<VEDIO DISTRIBUTION*/
- BT_HDP_UUID = ((unsigned short)0x1400), /**<HDP*/
- BT_HDP_SOURCE_UUID = ((unsigned short)0x1401), /**<HDP SOURCE*/
- BT_HDP_SINK_UUID = ((unsigned short)0x1402), /**<HDP SINK*/
- BT_OBEX_SYNCML_TRANSFER_UUID = ((unsigned short)0x0000) /**<OBEX_SYNC*/ /* Will be removed */
-} bluetooth_service_uuid_list_t;
-
-
-/**************************************************
-* Struct define
-***************************************************/
-
-typedef struct {
- unsigned char bd_addr[BT_ADDRESS_LENGTH_MAX];
- char addr_str[BT_ADDRESS_STR_LEN + 1];
- char name[DEVICE_NAME_MAX_LEN + 1];/**< Device Name */
- bt_service_class_t service_list; /**< type of service */
- bt_major_class_t major_class; /**< major class of the device */
- bt_minor_class_t minor_class; /**< minor class of the device */
- int authorized; /**< authorized ? */
- bt_cod_service_class_t service_class; /**< service class of device */
- int rssi; /**< Received signal strength indicator */
- int is_connected;
- int connected_mask;
- int status;
- int item_type;
- int uuid_count;
- char **uuids;
- void *layout;
- void *entry;
- void *genlist_item;
- void *icon;
- void *net_profile;
- gboolean is_bonded;
- gboolean call_checked;
- gboolean media_checked;
- gboolean hid_checked;
- gboolean network_checked;
- gboolean highlighted;
- void *ugd;
- int pan_connection_result;
-} bt_dev_t;
-
-typedef struct {
- bt_popup_t type;
- void *data;
-} bt_popup_data;
-
-typedef struct {
- unsigned char bd_addr[BT_ADDRESS_LENGTH_MAX];
-} bt_address_t;
-
-/**************************************************
-* Callback type
-***************************************************/
-
-typedef void (*bt_app_back_cb)(void *, void *, void *);
-
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* __BT_TYPE_DEFINE_H__ */
+++ /dev/null
-/*
-* ug-bluetooth-efl
-*
-* Copyright 2012 Samsung Electronics Co., Ltd
-*
-* Contact: Hocheol Seo <hocheol.seo@samsung.com>
-* GirishAshok Joshi <girish.joshi@samsung.com>
-* DoHyun Pyun <dh79.pyun@samsung.com>
-*
-* Licensed under the Flora License, Version 1.1 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.tizenopensource.org/license
-*
-* Unless required by applicable law or agreed to in writing,
-* software distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-#ifndef __BT_UTIL_H__
-#define __BT_UTIL_H__
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include <glib.h>
-#include <bundle.h>
-#include <Elementary.h>
-
-#include "bt-type-define.h"
-
-/* Major Device Mask */
-#define MISCELLANEOUS_MAJOR_DEVICE_MASK (0x000000)
-#define COMPUTER_MAJOR_DEVICE_MASK (0x000100)
-#define PHONE_MAJOR_DEVICE_MASK (0x000200)
-#define LAN_MAJOR_DEVICE_MASK (0x000300)
-#define AV_MAJOR_DEVICE_MASK (0x000400)
-#define PERIPHERAL_MAJOR_DEVICE_MASK (0x000500)
-#define IMAGING_MAJOR_DEVICE_MASK (0x000600)
-#define WEARABLE_MAJOR_DEVICE_MASK (0x000700)
-#define TOY_MAJOR_DEVICE_MASK (0x000800)
-#define UNCLASSIFIED_MAJOR_DEVICE_MASK (0x001F00)
-#define OBJECT_TRANSFER_MAJOR_SERVICE_MASK (0x100000)
-
-gboolean _bt_util_update_class_of_device_by_service_list(bt_service_class_t service_list,
- bt_major_class_t *major_class,
- bt_minor_class_t *minor_class);
-
-void _bt_util_set_value(const char *req, unsigned int *search_type,
- unsigned int *op_mode);
-
-gboolean _bt_util_store_get_value(const char *key,
- bt_store_type_t store_type,
- unsigned int size, void *value);
-
-void _bt_util_launch_no_event(void *data, void *obj, void *event);
-
-void _bt_util_set_list_disabled(Evas_Object *genlist, Eina_Bool disable);
-
-void _bt_util_set_phone_name(void);
-
-int _bt_util_get_phone_name(char *phone_name, int size);
-
-char * _bt_util_get_timeout_string(int timeout);
-
-int _bt_util_get_timeout_value(int index);
-
-int _bt_util_get_timeout_index(int timeout);
-
-void _bt_util_addr_type_to_addr_string(char *address,
- unsigned char *addr);
-
-void _bt_util_addr_type_to_addr_result_string(char *address,
- unsigned char *addr);
-
-void _bt_util_addr_type_to_addr_net_string(char *address,
- unsigned char *addr);
-
-void _bt_util_addr_string_to_addr_type(unsigned char *addr,
- const char *address);
-
-void _bt_util_convert_time_to_string(unsigned int remain_time,
- char *text_display, char *text_read,
- int size_display, int size_read);
-
-void _bt_util_free_device_uuids(bt_dev_t *item);
-
-void _bt_util_free_device_item(bt_dev_t *item);
-
-gboolean _bt_util_is_space_str(const char *name_str);
-
-void _bt_util_max_len_reached_cb(void *data, Evas_Object *obj,
- void *event_info);
-
-
-#ifdef __cplusplus
-}
-#endif
-#endif /* __BT_UTIL_H__ */
+++ /dev/null
-/*
-* ug-bluetooth-efl
-*
-* Copyright 2012 Samsung Electronics Co., Ltd
-*
-* Contact: Hocheol Seo <hocheol.seo@samsung.com>
-* GirishAshok Joshi <girish.joshi@samsung.com>
-* DoHyun Pyun <dh79.pyun@samsung.com>
-*
-* Licensed under the Flora License, Version 1.1 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.tizenopensource.org/license
-*
-* Unless required by applicable law or agreed to in writing,
-* software distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-#ifndef __BT_WIDGET_H__
-#define __BT_WIDGET_H__
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include "Elementary.h"
-#include <efl_extension.h>
-
-#define BT_GENLIST_1LINE_TEXT_STYLE "type1"
-#define BT_GENLIST_1LINE_TEXT_ICON_STYLE "type1"
-#define BT_GENLIST_2LINE_TOP_TEXT_STYLE "type1"
-#define BT_GENLIST_2LINE_TOP_TEXT_ICON_STYLE "type1"
-#define BT_GENLIST_2LINE_BOTTOM_TEXT_STYLE "type2"
-#define BT_GENLIST_2LINE_BOTTOM_TEXT_ICON_STYLE "type2"
-#define BT_GENLIST_MULTILINE_TEXT_STYLE "multiline"
-#define BT_GENLIST_GROUP_INDEX_STYLE "group_index"
-#define BT_GENLIST_FULL_CONTENT_STYLE "full"
-
-#define BT_POPUP_STR_MAX_LEN 512
-
-Evas_Object *_bt_create_naviframe(Evas_Object *parent);
-
-Evas_Object *_bt_create_icon(Evas_Object *parent, char *img);
-
-Evas_Object *_bt_create_progressbar(Evas_Object *parent,
- const char *style);
-
-void _bt_update_genlist_item(Elm_Object_Item *item);
-
-Evas_Object *_bt_main_base_layout_create(Evas_Object *parent, void *data);
-
-void _bt_set_popup_text(void *data, Evas_Object *popup);
-
-Evas_Object *_bt_create_popup(void *data, void *cb, void *cb_data,
- int timer_val);
-#ifdef __cplusplus
-}
-#endif
-#endif /* __BT_WIDGET_H__ */
--- /dev/null
+/*
+* ug-bluetooth-efl
+*
+* Copyright 2016 Samsung Electronics Co., Ltd
+*
+* Licensed under the Flora License, Version 1.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.tizenopensource.org/license
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*/
+
+#ifndef __BT_CONTACTS_WRAPPER_H__
+#define __BT_CONTACTS_WRAPPER_H__
+
+#ifndef BT_TV_PROFILE
+#include <contacts.h>
+#else //BT_TV_PROFILE
+/* It is a mock contatct-service2 becuase TV profile have No contacts-service2.
+ * Note that even if it includes contacts - service2, the behavior is not chanaged
+ * because the code determines profile at runtime.
+ */
+typedef int* contacts_record_h;
+static inline void dummy_void()
+{
+}
+static inline int dummy_int(int x)
+{
+ return x;
+}
+#define contacts_vcard_make_from_my_profile(a, b) dummy_void()
+#define contacts_vcard_make_from_person(a, b) dummy_void()
+#define contacts_db_get_record(x, y, z) dummy_int(0)
+#define contacts_record_destroy(a, b) dummy_void()
+#define contacts_connect() dummy_int(-1)
+static inline int contacts_disconnect()
+{
+ return -1;
+}
+#define contacts_record_get_str_p(x, y, z) dummy_void()
+#define CONTACTS_ERROR_NONE (0)
+#endif //BT_TV_PROFILE
+
+#endif /* __BT_CONTACTS_WRAPPER_H__ */
--- /dev/null
+/*
+* ug-bluetooth-efl
+*
+* Copyright 2012 Samsung Electronics Co., Ltd
+*
+* Contact: Hocheol Seo <hocheol.seo@samsung.com>
+* GirishAshok Joshi <girish.joshi@samsung.com>
+* DoHyun Pyun <dh79.pyun@samsung.com>
+*
+* Licensed under the Flora License, Version 1.1 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.tizenopensource.org/license
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*/
+
+#ifndef __BT_DEBUG_H
+#define __BT_DEBUG_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include <dlog.h>
+#include <stdio.h>
+#include <string.h>
+
+#undef LOG_TAG
+#define LOG_TAG "BLUETOOTH_SETTING_UG"
+
+#define BT_INFO(fmt, arg...) SLOGI(fmt, ##arg)
+
+#define BT_ERR(fmt, arg...) SLOGE(fmt, ##arg)
+
+#define BT_DBG(fmt, arg...) SLOGD(fmt, ##arg)
+
+
+#define DBG_SECURE(fmt, args...) SECURE_SLOGD(fmt, ##args)
+#define ERR_SECURE(fmt, args...) SECURE_SLOGE(fmt, ##args)
+#define INFO_SECURE(fmt, args...) SECURE_SLOGI(fmt, ##args)
+
+#define FUNCTION_TRACE
+#ifdef FUNCTION_TRACE
+#define FN_START BT_DBG("[ENTER FUNC]");
+#define FN_END BT_DBG("[EXIT FUNC]");
+#else
+#define FN_START
+#define FN_END
+#endif
+
+#define warn_if(expr, fmt, arg...) \
+ do { \
+ if (expr) { \
+ BT_ERR("(%s) -> "fmt, #expr, ##arg); \
+ } \
+ } while (0);
+
+#define ret_if(expr) \
+ do { \
+ if (expr) { \
+ BT_ERR("(%s) return", #expr); \
+ return; \
+ } \
+ } while (0);
+
+#define retv_if(expr, val) \
+ do { \
+ if (expr) { \
+ BT_ERR("(%s) return", #expr); \
+ return (val); \
+ } \
+ } while (0);
+
+#define retm_if(expr, fmt, arg...) \
+ do { \
+ if (expr) { \
+ BT_ERR(fmt, ##arg); \
+ BT_ERR("(%s) return", #expr); \
+ return; \
+ } \
+ } while (0);
+
+#define retvm_if(expr, val, fmt, arg...) \
+ do { \
+ if (expr) { \
+ BT_ERR(fmt, ##arg); \
+ BT_ERR("(%s) return", #expr); \
+ return (val); \
+ } \
+ } while (0);
+
+#ifdef __cplusplus
+}
+#endif
+#endif /* __BT_DEBUG_H */
--- /dev/null
+/*
+ * Copyright (c) 2020 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Flora License, Version 1.1 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://floralicense.org/license
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+#pragma once
+
+#ifndef UG_MODULE_API
+#define UG_MODULE_API __attribute__ ((visibility("default")))
+#endif
+
+#ifndef PKGNAME
+#define PKGNAME "ug-setting-bluetooth-efl"
+#warning "PKGNAME is redefined"
+#endif
+
+#ifndef PREFIX
+#define PREFIX "/usr/ug/"
+#warning "PREFIX is redefined"
+#endif
+
+#ifndef LOCALEDIR
+#define LOCALEDIR PREFIX"/res/locale"
+#warning "LOCALEDIR is redefined"
+#endif
+
+#ifndef EDJDIR
+#define EDJDIR PREFIX"/res/edje/" PKGNAME
+#warning "EDJDIR is redefined"
+#endif
+
+#define BT_ICON_EDJ EDJDIR"/bluetooth_images.edj"
+#define BT_GENLIST_EDJ EDJDIR"/bluetooth_genlist.edj"
+#define BT_COMMON_MAIN_LAYOUT_EDJ EDJDIR"/main_layout.edj"
--- /dev/null
+/*
+* ug-bluetooth-efl
+*
+* Copyright 2012 Samsung Electronics Co., Ltd
+*
+* Contact: Hocheol Seo <hocheol.seo@samsung.com>
+* GirishAshok Joshi <girish.joshi@samsung.com>
+* DoHyun Pyun <dh79.pyun@samsung.com>
+*
+* Licensed under the Flora License, Version 1.1 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.tizenopensource.org/license
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*/
+
+#ifndef __BT_RESOURCE_H
+#define __BT_RESOURCE_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* Define icons */
+#define BT_ICON_UNKNOWN "buluetooth_Device_type_icon_unknown.png"
+#define BT_ICON_PHONE "buluetooth_Device_type_icon_mobilephone.png"
+#define BT_ICON_HEADSET "buluetooth_Device_type_icon_headset.png"
+#define BT_ICON_HEADPHONE "buluetooth_Device_type_icon_headphone.png"
+#define BT_ICON_PC "buluetooth_Device_type_icon_computer.png"
+#define BT_ICON_KEYBOARD "buluetooth_Device_type_icon_keyboard.png"
+#define BT_ICON_MOUSE "buluetooth_Device_type_icon_mouse.png"
+#define BT_ICON_PRINTER "buluetooth_Device_type_icon_printer.png"
+#define BT_ICON_HEALTH "bt_device_Medical.png"
+#define BT_ICON_NETWORK "buluetooth_Device_type_icon_network_infrastructure.png"
+#define BT_ICON_GAMING "buluetooth_Device_type_icon_gaming.png"
+#define BT_ICON_DISPLAY "buluetooth_Device_type_icon_display.png"
+#define BT_ICON_CAMERA "buluetooth_Device_type_icon_camera.png"
+#define BT_ICON_WATCH "buluetooth_Device_type_icon_wrist.png"
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __BT_RESOURCE_H */
--- /dev/null
+/*
+* ug-bluetooth-efl
+*
+* Copyright 2012 Samsung Electronics Co., Ltd
+*
+* Contact: Hocheol Seo <hocheol.seo@samsung.com>
+* GirishAshok Joshi <girish.joshi@samsung.com>
+* DoHyun Pyun <dh79.pyun@samsung.com>
+*
+* Licensed under the Flora License, Version 1.1 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.tizenopensource.org/license
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*/
+
+#ifndef __BT_STRING_DEFINE_H__
+#define __BT_STRING_DEFINE_H__
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* Not included in excel file, but it exist in STMS */
+#define BT_STR_ALLOW_TO_DELETE_YOUR_FILE_Q \
+ _("IDS_BT_BODY_ALLOW_PS_TO_DELETE_YOUR_FILE_Q")
+#define BT_STR_ALLOW_TO_GET_YOUR_FILE_Q \
+ _("IDS_BT_BODY_ALLOW_PS_TO_GET_YOUR_FILE_Q")
+#define BT_STR_ALLOW_TO_PUT_A_FILE_IN_Q \
+ _("IDS_BT_BODY_ALLOW_PS_TO_PUT_A_FILE_IN_Q")
+#define BT_STR_ALWAYS_ON _("IDS_BT_BODY_ALWAYS_ON")
+#define BT_STR_CANCELLED _("IDS_BT_BODY_CANCELLED")
+#define BT_STR_CONTACT_ALREADY_EXISTS \
+ _("IDS_BT_BODY_CONTACT_ALREADY_EXISTS")
+#define BT_STR_FILE_SENT _("IDS_BT_BODY_FILE_SENT")
+#define BT_STR_HEADSET _("IDS_BT_BODY_HEADSET")
+#define BT_STR_INVALID_TIME_ENTER_NUMBER_BETWEEN_1_AND_60 \
+ _("IDS_BT_BODY_INVALID_TIME_ENTER_NUMBER_BETWEEN_1_AND_60")
+#define BT_STR_MINUTE _("IDS_BT_BODY_MINUTE_LC")
+#define BT_STR_MY_PHONES_NAME _("IDS_BT_BODY_MY_PHONES_NAME")
+#define BT_STR_MY_PHONES_VISIBILITY _("IDS_BT_BODY_MY_PHONES_VISIBILITY")
+#define BT_STR_NO_MORE_CONNECTIONS_POSSIBLE \
+ _("IDS_BT_BODY_NO_MORE_CONNECTIONS_POSSIBLE_VODA")
+#define BT_STR_PAIRED_DEVICES _("IDS_BT_BODY_PAIRED_DEVICES")
+#define BT_STR_PRINTER _("IDS_BT_BODY_PRINTER")
+#define BT_STR_RECEIVCED _("IDS_BT_BODY_RECEIVED")
+#define BT_STR_SERVICES _("IDS_BT_BODY_SERVICES")
+#define BT_STR_UPDATING _("IDS_BT_BODY_UPDATING_ING")
+#define BT_STR_BLUETOOTH_DEVICES _("IDS_BT_HEADER_BLUETOOTH_DEVICES")
+#define BT_STR_ENTER_PIN _("IDS_BT_HEADER_ENTERPIN")
+#define BT_STR_NEW_DEVICE _("IDS_BT_HEADER_NEW_DEVICE")
+#define BT_STR_PRINTING _("IDS_BT_HEADER_PRINTING")
+#define BT_STR_CONNECT_STEREO _("IDS_BT_OPT_CONNECT_STEREO")
+#define BT_STR_DOWNLOAD _("IDS_BT_OPT_DOWNLOAD")
+#define BT_STR_PC _("IDS_BT_OPT_PC")
+#define BT_STR_PRINT _("IDS_BT_OPT_PRINT")
+#define BT_STR_SEARCH_OPTIONS _("IDS_BT_OPT_SEARCH_OPTIONS")
+#define BT_STR_ALLOW_PS_TO_CONNECT_Q _("IDS_BT_POP_ALLOW_PS_TO_CONNECT_Q")
+#define BT_STR_BLUETOOTH_ERROR_TRY_AGAIN_Q \
+ _("IDS_BT_POP_BLUETOOTH_ERROR_TRY_AGAIN_Q")
+#define BT_STR_BLUETOOTH_TIMEOUT_TRY_AGAIN_Q \
+ _("IDS_BT_POP_BLUETOOTH_TIMEOUT_TRY_AGAIN_Q")
+#define BT_STR_CONFIRM_PASSKEY_IS_PS_TO_PAIR_WITH_PS \
+ _("IDS_BT_POP_CONFIRM_PASSKEY_IS_PS_TO_PAIR_WITH_PS")
+#define BT_STR_UNABLE_TO_CONNECT_TRY_Q _("IDS_BT_POP_CONNECTAGAIN")
+#define BT_STR_DELETE_QUESTION _("IDS_BT_POP_DELETE_Q")
+#define BT_STR_DELETING _("IDS_BT_POP_DELETING_ING")
+#define BT_STR_DEVICE_DELETED _("IDS_BT_POP_DEVICEDELETED")
+#define BT_STR_DOWNLOADED _("IDS_BT_POP_DOWNLOADED")
+#define BT_STR_DOWNLOADING_FAILED _("IDS_BT_POP_DOWNLOADING_FAILED")
+#define BT_STR_DOWNLOADING _("IDS_BT_POP_DOWNLOADING_ING")
+#define BT_STR_ENTER_DEVICE_NAME _("IDS_ST_POP_ENTER_DEVICE_NAME")
+#define BT_STR_ENTER_NUMBER_BETWEEN_PD_AND_PD \
+ _("IDS_BT_POP_ENTER_NUMBER_BETWEEN_PD_AND_PD")
+#define BT_STR_INCORRECT_PIN_TRY_AGAIN_Q \
+ _("IDS_BT_POP_INCORRECT_PIN_TRY_AGAIN_Q")
+#define BT_STR_PD_FILES_RECEIVED _("IDS_BT_POP_PD_FILES_RECEIVED")
+#define BT_STR_SENDING_CANCELLED _("IDS_BT_POP_SENDINGCANCEL")
+#define BT_STR_UNABLE_TO_SEND _("IDS_BT_POP_SENDINGFAIL")
+#define BT_STR_SERIAL_CONNECT_WITH_PS_Q _("IDS_BT_POP_SERIAL_CONNECT_WITH_PS_Q")
+#define BT_STR_FILE_RECEIVED _("IDS_BT_POP_SUBFILERECEIVED")
+#define BT_STR_UNABLE_TO_GET_SERVICE_LIST \
+ _("IDS_BT_POP_UNABLE_TO_GET_SERVICE_LIST")
+#define BT_STR_CONNECT _("IDS_BT_SK_CONNECT")
+#define BT_STR_DISCONNECT _("IDS_BT_SK_DISCONNECT")
+#define BT_STR_DISCONNECT_DEVICE _("IDS_BT_HEADER_DISCONNECT_DEVICE_ABB")
+#define BT_STR_DOWNLOAD_CANCELLED _("IDS_BR_POP_DOWNLOAD_CANCELLED")
+#define BT_STR_SEARCHING _("IDS_BT_BODY_SEARCHINGDEVICE")
+#define BT_STR_CONNECTED _("IDS_BT_SBODY_CONNECTED_M_STATUS")
+#define BT_STR_DEVICE_NAME _("IDS_BT_BODY_DEVICENAME")
+#define BT_STR_NO_DEVICE _("IDS_BT_BODY_NO_DEVICES")
+#define BT_STR_GETTING_SERVICE_LIST _("IDS_BT_POP_GETTINGSERVICELIST")
+#define BT_STR_HEADSET_INFO _("IDS_BT_BODY_INFOHEADSET")
+#define BT_STR_SELECT_DEVICES _("IDS_BT_HEADER_SELECT_DEVICE")
+
+#define BT_STR_CONNECT_TO_DEVICE \
+ _("IDS_BT_BODY_CONNECT_TO_BLUETOOTH_DEVICE")
+
+#define BT_STR_UNABLE_TO_GET_THE_SERVICE_LIST \
+ _("IDS_BT_POP_UNABLE_TO_GET_SERVICE_LIST")
+
+#define BT_STR_FLIGHT_MODE \
+ _("IDS_BT_POP_UNABLE_TO_ACTIVATE_BLUETOOTH_WHEN_FLIGHT_MODE_IS_ON")
+
+#define BT_STR_CONNECTED_PHONE_AND_MEDIO_AUDIO \
+ _("IDS_BT_BODY_CONNECTED_TO_PHONE_AND_MEDIA_AUDIO")
+
+#define BT_STR_CONNECTED_PHONE_AUDIO \
+ _("IDS_BT_BODY_CONNECTED_TO_PHONE_AUDIO")
+
+#define BT_STR_CONNECTED_MEDIA_AUDIO \
+ _("IDS_BT_BODY_CONNECTED_TO_MEDIA_AUDIO")
+
+#define BT_STR_CONNECTED_HID_DEVICE \
+ _("IDS_BT_POP_CONNECTED_TO_HID_DEVICE")
+
+#define BT_STR_SCANNING \
+ _("IDS_BT_BODY_SCANNING_FOR_DEVICES_ING")
+
+#define BT_STR_SCAN \
+ _("IDS_BT_SK_SCAN")
+
+
+#define BT_STR_SVC_HEADSET _("IDS_BT_BODY_HEADSET")
+#define BT_STR_SVC_HEADSET_D _("IDS_BT_BODY_INFOHEADSET")
+
+#define BT_STR_SVC_HF _("IDS_BT_BODY_HANDSFREE")
+#define BT_STR_SVC_HF_D _("IDS_BT_BODY_INFOHANDSFREE")
+
+#define BT_STR_SVC_STEREO _("IDS_BT_OPT_STEREO_HEADSET")
+#define BT_STR_SVC_STEREO_D _("IDS_BT_BODY_INFOAVHEADSET")
+
+#define BT_STR_SVC_FT _("IDS_ST_BODY_TRANSFER_FILES")
+#define BT_STR_SVC_FT_D _("IDS_BT_BODY_INFOFILETRANSFER")
+
+#define BT_STR_SVC_OP _("IDS_BT_BODY_OBJECT_PUSH")
+#define BT_STR_SVC_OP_D _("IDS_BT_BODY_INFOOBJECTPUSH")
+
+#define BT_STR_SVC_BPP _("IDS_BT_BODY_BASIC_PRINTING")
+#define BT_STR_SVC_BPP_D _("IDS_BT_BODY_PRINTER_SERVICEINFO")
+
+#define BT_STR_SVC_DUN _("IDS_BT_BODY_DIAL_UP_NETWORKING")
+#define BT_STR_SVC_DUN_D _("IDS_BT_BODY_INFODIALUP")
+
+#define BT_STR_SVC_HID _("IDS_BT_POP_HID_DEVICE")
+#define BT_STR_SVC_HID_D _("IDS_BT_BODY_HID_HKEYBOARD_MOUSE_ETC")
+
+#define BT_STR_SVC_SPP _("IDS_BT_BODY_SERIAL_PORT")
+
+#define BT_STR_SVC_SPP_D \
+ _("IDS_BT_BODY_THIS_IS_USED_TO_CONNECT_TO_OTHER_BLUETOOTH_DEVICES_VIA_A_VIRTUAL_SERIAL_PORT")
+
+#define BT_STR_CONNECTION_EXISTS \
+ _("IDS_BT_POP_FAILED_TO_CONNECT_HEADSET_OTHER_DEVICE_REFUSED_CONNECTION")
+
+#define BT_STR_VISIBLE_TO_ALL_NEARBY _("IDS_ST_BODY_VISIBLE_TO_ALL_NEARBY_BLUETOOTH_DEVICES")
+#define BT_STR_ONLY_VISIBLE_TO_PAIRED_DEVICES _("IDS_BT_SBODY_ONLY_VISIBLE_TO_PAIRED_BLUETOOTH_DEVICES_ABB")
+#define BT_STR_VISIBLE _("IDS_BT_POP_VISIBILITY_TIMEOUT")
+#define BT_STR_TWO_MINUTES _("IDS_BT_BODY_2_MINUTES")
+#define BT_STR_UNPAIR _("IDS_BT_OPT_UNPAIR")
+#define BT_STR_CONNECTION_OPTIONS _("IDS_BT_BODY_CONNECTION_OPTIONS")
+#define BT_STR_CALL_AUDIO _("IDS_BT_BODY_CALL_AUDIO")
+#define BT_STR_MEDIA_AUDIO _("IDS_BT_BODY_MEDIA_AUDIO")
+#define BT_STR_PS_REMAINING _("IDS_BT_BODY_PS_REMAINING")
+#define BT_STR_PSD_PSD_REMAINING _("IDS_BT_MBODY_P1SD_CP2SD_REMAINING")
+#define BT_STR_TAP_TO_CONNECT _("IDS_BT_BODY_TAP_TO_CONNECT")
+#define BT_STR_TAP_TO_DISCONNECT _("IDS_BT_BODY_TAP_TO_DISCONNECT")
+#define BT_STR_AVAILABLE_DEVICES _("IDS_BT_BODY_AVAILABLE_DEVICES")
+#define BT_STR_FIVE_MINUTES _("IDS_BT_BODY_5_MINUTES")
+#define BT_STR_ONE_HOUR _("IDS_BT_BODY_1_HOUR")
+#define BT_STR_DISCONNECTING _("IDS_BT_BODY_DISCONNECTING")
+#define BT_STR_END_CONNECTION _("IDS_WMGR_POP_THIS_WILL_END_YOUR_CONNECTION_WITH_PS")
+#define BT_STR_DISCONNECT_P_FROM_THE_P_CONNECTION \
+ _("IDS_BT_BODY_DISCONNECT_P2SS_FROM_THE_P1SS_CONNECTION_Q")
+#define BT_STR_DISCONNECT_Q _("IDS_BT_POP_DISCONNECT")
+#define BT_STR_DETAILS _("IDS_BT_BODY_DETAILS")
+#define BT_STR_INPUT_DEVICE _("IDS_BT_BODY_INPUT_DEVICE")
+#define BT_STR_NO_DEVICE_FOUND _("IDS_BT_BODY_NO_DEVICES_FOUND_ABB")
+#define BT_STR_PAIRED _("IDS_BT_BODY_PAIRED")
+#define BT_STR_SEARCHING_SERVICES _("IDS_BT_POP_SEARCHING_SERVICES_ING")
+#define BT_STR_RENAME_DEVICE_TITLE _("IDS_ST_HEADER_RENAME_DEVICE")
+#define BT_STR_RENAME_DEVICE_LABEL \
+ _("IDS_BT_POP_DEVICE_NAMES_ARE_DISPLAYED_TO_DISTINGUISH_EACH_OF_THE_DEVICES_AVAILABLE_IN_THE_NEARBY_DEVICES_LIST_AND_VIA_BLUETOOTH_AND_OTHER_METHODS")
+#define BT_STR_BLUETOOTH_ERROR _("IDS_BT_HEADER_BLUETOOTH_ERROR_ABB")
+#define BT_STR_MAX_CHARACTER_REACHED _("IDS_CLOG_POP_MAXIMUM_NUMBER_OF_CHARACTERS_HPD_REACHED")
+#define BT_STR_NAME_IN_USE _("IDS_YSM_POP_THIS_NAME_IS_ALREADY_IN_USE_NENTER_ANOTHER_NAME")
+#define BT_STR_BLUETOOTH_TETHERING_CONNECTION_ERROR _("IDS_MOBILEAP_POP_UNABLE_TO_USE_BLUETOOTH_TETHERING_WHILE_CONNECTED_TO_WI_FI_NETWORK")
+
+/* We need to change this design ID */
+#define BT_STR_INTERNET_ACCESS _("IDS_BT_BODY_INTERNET_ACCESS_ABB2")
+
+/* System string */
+#define BT_STR_SEARCH _("IDS_BT_OPT_SEARCH")
+#define BT_STR_STOP _("IDS_BT_SK4_STOP")
+#define BT_STR_DONE _("IDS_BR_SK_DONE")
+#define BT_STR_OK _("IDS_BT_BUTTON_OK")
+#define BT_STR_CANCEL _("IDS_BR_SK_CANCEL")
+#define BT_STR_RENAME _("IDS_BT_OPT_RENAME")
+#define BT_STR_NO _("IDS_BR_SK_NO")
+#define BT_STR_BLUETOOTH _("IDS_BT_HEADER_BLUETOOTH")
+#define BT_STR_LOW_BATTERY _("IDS_ST_BODY_LEDOT_LOW_BATTERY")
+#define BT_STR_OFF _("IDS_BT_BUTTON_OFF")
+#define BT_STR_PHONE _("IDS_BT_OPT_PLAYVIAPHONE")
+
+#define BT_STR_RETRY _("IDS_ST_BUTTON_RETRY")
+#define BT_STR_INCORRECT_PIN_MESSAGE _("IDS_BT_POP_AN_INCORRECT_PIN_HAS_BEEN_ENTERED_TRY_AGAIN")
+#define BT_STR_UNABLE_TO_PAIR_WITH_PS _("IDS_BT_POP_UNABLE_TO_PAIR_WITH_PS")
+#define BT_STR_UNABLE_TO_CONNECT_TO_PS _("IDS_BT_POP_UNABLE_TO_CONNECT_TO_PS")
+
+#define BT_STR_CONNECTING _("IDS_BT_SBODY_CONNECTING_ING")
+#define BT_STR_BLUETOOTH_HELP _("IDS_BT_OPT_HELP")
+#define BT_STR_BLUETOOTH_CLOSE _("IDS_CAM_SK_CLOSE")
+#define BT_STR_MORE _("IDS_BT_BUTTON_MORE")
+
+/* Below needs to be added to PO files for use in bt-syspopup */
+#define BT_STR_RECEIVE_PS_FROM_PS_Q _("IDS_BT_POP_RECEIVE_PS_FROM_PS_Q?")
+#define BT_STR_OVERWRITE_FILE_Q _("IDS_BT_POP_PS_ALREADY_EXISTS_OVERWRITE_Q")
+#define BT_STR_PASSKEY_MATCH_Q _("IDS_BT_POP_MATCH_PASSKEYS_ON_PS_Q?")
+#define BT_STR_ENTER_PS_ON_PS_TO_PAIR \
+ _("IDS_BT_BODY_ENTER_P1SS_ON_P2SS_TO_PAIR_THEN_TAP_RETURN_OR_ENTER")
+
+#define BT_STR_RECEIVE_FILE_FROM_PS_Q \
+ _("IDS_BT_POP_RECEIVE_FILE_FROM_PS_Q")
+
+#define BT_STR_BLUETOOTH_PAIRING_REQUEST \
+ _("IDS_BT_HEADER_BLUETOOTH_PAIRING_REQUEST")
+
+#define BT_STR_SHOW_PASSWORD \
+ _("IDS_BT_BODY_SHOW_PASSWORD")
+
+/* Below needs to be added to PO files for use in bluetooth-share-ui */
+#define BT_STR_SHARING_FN _("IDS_BT_POP_SHARING_ING")
+
+/* Below needs to be added to PO files for use in bluetooth-share */
+#define BT_STR_FILE_EXSIST_MSG _("IDS_BT_POP_PS_ALREADY_EXISTS_OVERWRITE_Q")
+#define BT_STR_FILE_DELETE_AUTHORIZE_MSG _("Delete %s by %s ?")
+#define BT_STR_SENDING _("IDS_BT_POP_SENDING_ING")
+#define BT_STR_RECEIVING _("IDS_BT_POP_RECEIVING")
+#define BT_STR_MEMORY_FULL _("IDS_BT_POP_MEMORYFULL")
+
+/* Below needs to be added to PO files for use in beat-bluetooth */
+#define BT_STR_BLUETOOTH_ON _("IDS_BT_POP_ACTIVATED")
+#define BT_STR_BLUETOOTH_AVAILABLE _("IDS_BT_BODY_BLUETOOTH_AVAILABLE")
+
+/* String access info */
+#define BT_STR_DOUBLE_TAP_RENAME _("Double Tap to rename")
+#define BT_STR_DOUBLE_TAP_UNPAIR _("Double Tap to unpair device")
+#define BT_STR_RADIO_BUTTON _("IDS_TPLATFORM_BODY_RADIO_BUTTON_T_TTS")
+#define BT_STR_RADIO_SELECTED _("IDS_TPLATFORM_BODY_SELECTED_T_TTS")
+#define BT_STR_RADIO_UNSELECTED _("IDS_TPLATFORM_BODY_NOT_SELECTED_T_TTS")
+#define BT_STR_EXP_LIST _("Expandable list")
+#define BT_STR_EXP_LIST_OPEN _("IDS_ST_BODY_DOUBLE_TAP_TO_OPEN_THE_LIST_T_TTS")
+#define BT_STR_EXP_LIST_CLOSE _("IDS_ST_BODY_DOUBLE_TAP_TO_CLOSE_THE_LIST_T_TTS")
+#define BT_STR_ON_OFF_BUTTON _("IDS_TPLATFORM_BODY_ON_OFF_BUTTON_T_TTS")
+#define BT_STR_MORE_BUTTON _("More button")
+#define BT_STR_DOUBLE_TAP_CONNECT _("Double tap to connect")
+#define BT_STR_DOUBLE_TAP_CONNECT_D _("Double tap to connect device")
+#define BT_STR_DOUBLE_TAP_DISCONNECT_D _("Double tap to disconnect device")
+#define BT_STR_CAMERA _("IDS_TPLATFORM_BODY_CAMERA")
+#define BT_STR_DISPLAY _("Display device")
+#define BT_STR_KEYBOARD _("IDS_BT_OPT_KEYBOARD")
+#define BT_STR_MOUSE _("Mouse")
+#define BT_STR_GAMING_DEVICE _("IDS_ST_BODY_GAME_CONTROLLER")
+#define BT_STR_HEALTH_DEVICE _("Health device")
+#define BT_STR_COMPUTER _("IDS_BT_OPT_COMPUTER")
+#define BT_STR_LAN_ACCESS_POINT _("IDS_BT_OPT_MOBILE_AP")
+#define BT_STR_UNKNOWN _("IDS_BT_BODY_UNKNOWNDEVICE")
+#define BT_ACC_STR_GROUP_INDEX _("IDS_TPLATFORM_BODY_GROUP_INDEX")
+#define BT_STR_UNAVAILABLE _("IDS_ST_BODY_UNAVAILABLE")
+#define BT_STR_MINUTES _("IDS_BT_BODY_MINUTES")
+#define BT_STR_SECONDS _("IDS_ST_BODY_SECONDS")
+#define BT_STR_1_MINUTE _("IDS_BT_POP_1_MINUTE")
+#define BT_STR_1_SECOND _("IDS_ST_BODY_1_SECOND")
+
+/* Help */
+#define BT_STR_OPEN_PS_SETTINGS \
+ _("IDS_HELP_BODY_OPEN_PS_SETTINGS")
+#define BT_STR_SET_UP_BLUETOOTH \
+ _("IDS_HELP_MBODY_SET_UP_BLUETOOTH")
+#define BT_STR_SEND_PICTURES_VIA_BLUETOOTH \
+ _("IDS_HELP_HEADER_SEND_PICTURES_VIA_BLUETOOTH")
+#define BT_STR_OPEN_PS_GALLERY \
+ _("IDS_HELP_BODY_OPEN_PS_GALLERY")
+#define BT_STR_SELECT_THE_PICTURE_OR_ALBUM_YOU_WANT_TO_SEND \
+ _("IDS_HELP_BODY_SELECT_THE_PICTURE_OR_ALBUM_YOU_WANT_TO_SEND")
+#define BT_STR_TAP_THE_SHARE_BUTTON_AND_SELECT_PS_BLUETOOTH \
+ _("IDS_HELP_BODY_TAP_THE_SHARE_BUTTON_AND_SELECT_PS_BLUETOOTH")
+#define BT_STR_SELECT_THE_DEVICE_THAT_YOU_WANT_TO_SEND_THE_IMAGE_TO \
+ _("IDS_HELP_BODY_SELECT_THE_DEVICE_THAT_YOU_WANT_TO_SEND_THE_IMAGE_TO")
+#define BT_STR_SEND_THE_PICTURE_YOU_CAN_TRACK_ITS_PROGRESS_IN_THE_NOTIFICATION_PANEL \
+ _("IDS_HELP_BODY_SEND_THE_PICTURE_YOU_CAN_TRACK_ITS_PROGRESS_IN_THE_NOTIFICATION_PANEL")
+#define BT_STR_MAKE_THE_DEVICE_YOU_ARE_CONNECTING_TO_VISIBLE \
+ _("IDS_HELP_BODY_MAKE_THE_DEVICE_YOU_ARE_CONNECTING_TO_VISIBLE")
+#define BT_STR_MAKE_THE_DEVICE_YOU_ARE_CONNECTING_TO_VISIBLE_THEN_TAP_SCAN \
+ _("IDS_HELP_BODY_MAKE_THE_DEVICE_YOU_ARE_CONNECTING_TO_VISIBLE_THEN_TAP_SCAN")
+#define BT_STR_TOGGLE_THE_BUTTON_AND_TAP_SCAN_TO_TURN_ON_BLUETOOTH_AND_SCAN_FOR_DEVICES \
+ _("IDS_HELP_BODY_TOGGLE_THE_BUTTON_AND_TAP_SCAN_TO_TURN_ON_BLUETOOTH_AND_SCAN_FOR_DEVICES")
+#define BT_STR_SELECT_PS_BLUETOOTH \
+ _("IDS_HELP_BODY_SELECT_PS_BLUETOOTH")
+#define BT_STR_SELECT_THE_DEVICE_YOU_WANT_TO_CONNECT_TO_FROM_LIST \
+ _("IDS_HELP_BODY_SELECT_THE_DEVICE_YOU_WANT_TO_CONNECT_TO_FROM_LIST")
+#define BT_STR_TAP_THE_DEVICE_YOU_WANT_TO_PAIR_WITH_OR_CONNECT_TO_IF_THE_DEVICE_IS_NOT_IN_THE_LIST_MAKE_SURE_IT_IS_VISIBLE_THEN_TAP_SCAN \
+ _("IDS_HELP_BODY_TAP_THE_DEVICE_YOU_WANT_TO_PAIR_WITH_OR_CONNECT_TO_IF_THE_DEVICE_IS_NOT_IN_THE_LIST_MAKE_SURE_IT_IS_VISIBLE_THEN_TAP_SCAN")
+#define BT_STR_PAIRED_WITH_OR_CONNECTED_TO_SELECTED_DEVICE_SUCCESSFULLY_TAP_THE_CONFIGURATION_ICON_TO_CONFIGURE_THE_DEVICE_PROFILE \
+ _("IDS_HELP_POP_PAIRED_WITH_OR_CONNECTED_TO_SELECTED_DEVICE_SUCCESSFULLY_TAP_THE_CONFIGURATION_ICON_TO_CONFIGURE_THE_DEVICE_PROFILE")
+#define BT_STR_YOUVE_COMPLETED_THE_STEP_BY_STEP_GUIDE_RETURN_TO_HELP \
+ _("IDS_HELP_POP_YOUVE_COMPLETED_THE_STEP_BY_STEP_GUIDE_RETURN_TO_HELP")
+#define BT_STR_TUTORIAL_COMPLETED \
+ _("IDS_HELP_POP_TUTORIAL_COMPLETE")
+#define BT_STR_SCANNING_DEVICES_ING \
+ _("IDS_PB_MBODY_SCANNING_DEVICES_ING")
+#define BT_STR_INVALID_ACTION_TRY_AGAIN \
+ _("IDS_HELP_POP_INVALID_ACTION_TRY_AGAIN")
+#define BT_STR_TURN_ON_BLUETOOTH_TO_SEE_A_LIST_OF_AVAILABLE_DEVICES \
+ _("IDS_BT_BODY_TURN_ON_BLUETOOTH_TO_SEE_A_LIST_OF_DEVICES_YOU_CAN_PAIR_WITH_OR_HAVE_ALREADY_PAIRED_WITH")
+
+#define BT_STR_MY_DEVICE _("IDS_ST_HEADER_MY_DEVICE_NAME")
+
+#define BT_STR_TURNING_ON_BLUETOOTH _("IDS_BT_BODY_TURNING_ON_BLUETOOTH_ING")
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __BT_STRING_DEFINE_H__ */
+++ /dev/null
-/*
-* ug-bluetooth-efl
-*
-* Copyright 2016 Samsung Electronics Co., Ltd
-*
-* Licensed under the Flora License, Version 1.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.tizenopensource.org/license
-*
-* Unless required by applicable law or agreed to in writing,
-* software distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-#ifndef __DUMMY_CONTACTS_FOR_TV_OPTIMIZATION__
-#define __DUMMY_CONTACTS_FOR_TV_OPTIMIZATION__
-
-typedef int* contacts_record_h;
-
-static inline void dummy_void()
-{ }
-static inline int dummy_int(int x)
-{ return x; }
-
-#define contacts_vcard_make_from_my_profile(a, b) dummy_void()
-#define contacts_vcard_make_from_person(a, b) dummy_void()
-#define contacts_db_get_record(x, y, z) dummy_int(0)
-#define contacts_record_destroy(a, b) dummy_void()
-#define contacts_connect() dummy_int(-1)
-static inline int contacts_disconnect()
-{ return -1; }
-#define contacts_record_get_str_p(x, y, z) dummy_void()
-#define CONTACTS_ERROR_NONE (0)
-
-#endif /* __DUMMY_CONTACTS_FOR_TV_OPTIMIZATION__ */
--- /dev/null
+<manifest>
+ <request>
+ <domain name="_"/>
+ </request>
+</manifest>
# should anchor any reverse-dependencies
%global __provides_exclude_from ^(.*\\.emulator)$
-%define _optdir /opt
-%define _usrdir /usr
-%define _ugdir %{_usrdir}/ug
-
Name: ug-bluetooth-efl
Summary: UI gadget about the bluetooth
-Version: 0.5.4
-Release: 1
-Group: App/Network
+Version: 0.5.5
+Release: 0
+Group: Applications/Network
License: Flora-1.1
Source0: %{name}-%{version}.tar.gz
-Requires(post): vconf
-Requires(post): coreutils
+Source1001: %{name}.manifest
+
BuildRequires: cmake
BuildRequires: edje-tools
-BuildRequires: pkgconfig(edje)
BuildRequires: gettext-tools
BuildRequires: pkgconfig(elementary)
BuildRequires: pkgconfig(efl-extension)
BuildRequires: pkgconfig(syspopup-caller)
BuildRequires: pkgconfig(capi-network-bluetooth)
BuildRequires: pkgconfig(capi-network-connection)
-BuildRequires: pkgconfig(capi-system-device)
BuildRequires: pkgconfig(capi-system-info)
+BuildRequires: pkgconfig(capi-system-device)
BuildRequires: pkgconfig(motion)
BuildRequires: pkgconfig(capi-appfw-application)
BuildRequires: pkgconfig(notification)
%if "%{?profile}" != "tv"
BuildRequires: pkgconfig(contacts-service2)
%else
-# Dummy contacts for TV product optimization.
-# Note that even if it includes contacts-service2, the behavior is not chanaged
-# because the code determines profile at runtime.
-Source1: contacts.h
+%define bt_TV on
%endif
%description
%ifarch %{ix86} x86_64
%package extension-emulator
Summary: UI gadget about the bluetooth for emulator
-Requires: %{name} = %{version}-%{release}
+Requires: %{name} = %{version}
+
%description extension-emulator
UI gadget about the bluetooth for emulator
-%endif // ifarch %{ix86} x86_64
+%define bt_emul on
+%endif
+
+%define _ugdir %{_prefix}/ug
+%define prj_name ug-setting-bluetooth-efl
%prep
%setup -q
+cp %{SOURCE1001} ./%{name}.manifest
%build
-# TV profile does not have contacts-service2.
-# Do not build for unified environment if it is TV.
-# ==> The usage of "profile" in this spec file is allowed only for excluding TV profile
-# from unified building.
-%if "%{?profile}" == "tv"
-cp %SOURCE1 standard/include/contacts.h
-%endif
-
-LDFLAGS="$LDFLAGS -Wl,-z -Wl,nodelete"
-
-export CFLAGS_BASE="${CFLAGS}"
-export CXXFLAGS_BASE="${CXXFLAGS}"
-export FFLAGS_BASE="${FFLAGS}"
+%cmake . -DCMAKE_VERBOSE_MAKEFILE=OFF \
+ -DCMAKE_INSTALL_PREFIX:PATH=%{_ugdir} \
+ -DLIB_INSTALL_DIR:PATH=%{_ugdir}/lib \
+ -DTV_PROFILE=%{?bt_TV:1}%{!?bt_TV:0} \
+ -DBUILD_EMUL=%{?bt_emul:1}%{!?bt_emul:0}
-# Uncomment to disable BT_HOG of mobile. (refer to the end of standard/include/bt-util.h)
-# Without TIZEN_FEATURE_DISBALE_BT_HOG, BT_HOG is enabled for mobile.
-#export CFLAGS+=" -DTIZEN_FEATURE_DISABLE_BT_HOG"
-
-# extension-emulator
-%ifarch %{ix86} x86_64
-export CFLAGS="${CFLAGS_BASE} -DTIZEN_TEST_EMUL"
-export CXXFLAGS="${CXXFLAGS_BASE} -DTIZEN_TEST_EMUL"
-export FFLAGS="${FFLAGS_BASE} -DTIZEN_TEST_EMUL"
-
-mkdir -p build_emulator
-pushd build_emulator
-# TV profile does not have contacts-service2.
-# Do not build for unified environment if it is TV.
-# ==> The usage of "profile" in this spec file is allowed only for excluding TV profile
-# from unified building.
-%if "%{?profile}" != "tv"
-%cmake .. -DCMAKE_INSTALL_PREFIX=%{_ugdir}/
-%else
-%cmake .. -DTIZEN_WITHOUT_CONTACTS="1" -DCMAKE_INSTALL_PREFIX=%{_ugdir}/
-%endif
-popd
-%endif // ifarch %{ix86} x86_64
-
-# non-emulator
-export CFLAGS="${CFLAGS_BASE} -DTIZEN_DEBUG_ENABLE -DTIZEN_FEATURE_DISABLE_BT_HOG"
-export CXXFLAGS="${CXXFLAGS_BASE} -DTIZEN_DEBUG_ENABLE -DTIZEN_FEATURE_DISABLE_BT_HOG"
-export FFLAGS="${FFLAGS_BASE} -DTIZEN_DEBUG_ENABLE -DTIZEN_FEATURE_DISABLE_BT_HOG"
-
-# TV profile does not have contacts-service2.
-# Do not build for unified environment if it is TV.
-# ==> The usage of "profile" in this spec file is allowed only for excluding TV profile
-# from unified building.
-%if "%{?profile}" != "tv"
-%cmake . -DCMAKE_INSTALL_PREFIX=%{_ugdir}/
-%else
-%cmake . -DTIZEN_WITHOUT_CONTACTS="1" -DCMAKE_INSTALL_PREFIX=%{_ugdir}/
-%endif
-
-make %{?jobs:-j%jobs}
+make %{?_smp_mflags}
%post
-mkdir -p /usr/ug/bin/
-ln -sf /usr/bin/ug-client /usr/ug/bin/setting-bluetooth-efl
-ln -sf /usr/bin/ug-client /usr/ug/bin/setting-bluetooth-efl-single
+mkdir -p %{_ugdir}/bin/
+ln -sf /usr/bin/ug-client %{_ugdir}/bin/setting-bluetooth-efl
+ln -sf /usr/bin/ug-client %{_ugdir}/bin/setting-bluetooth-efl-single
%install
rm -rf %{buildroot}
-
-# extension-emulator
-%ifarch %{ix86} x86_64
-pushd build_emulator
-%make_install
-popd
-pushd %{buildroot}%{_ugdir}/lib/
-for FILE in libug-setting-bluetooth-efl.so*; do mv "${FILE}" "${FILE}.emulator"; done
-popd
-%endif // ifarch %{ix86} x86_64
-
-# non-emulator
%make_install
+rm -f %{buildroot}%{_ugdir}/lib/libemul%{prj_name}.so
%files
-%manifest ug-bluetooth-efl.manifest
-%license LICENSE
-%defattr(-,root,root,-)
-%{_ugdir}/res/help/*
-%{_ugdir}/res/edje/ug-setting-bluetooth-efl/*.edj
+%manifest %{name}.manifest
+%{_ugdir}/lib/lib%{prj_name}.so
+%{_ugdir}/lib/lib%{prj_name}.so.*
+%{_ugdir}/res/help/%{prj_name}/*
+%{_ugdir}/res/images/%{prj_name}/*
+%{_ugdir}/res/edje/%{prj_name}/*.edj
%{_ugdir}/res/locale/*/LC_MESSAGES/*
-%{_ugdir}/res/images/ug-setting-bluetooth-efl/*
-%{_ugdir}/lib/libug-setting-bluetooth-efl.so
-%{_usrdir}/share/packages/ug-bluetooth-efl.xml
-%{_usrdir}/share/icons/default/small/ug-bluetooth-efl.png
-%exclude %{_ugdir}/res/tables/ug-setting-bluetooth-efl/ug-bluetooth-efl_ChangeableColorTable.xml
-%exclude %{_ugdir}/res/tables/ug-setting-bluetooth-efl/ug-bluetooth-efl_FontInfoTable.xml
-%{_ugdir}/lib/libug-setting-bluetooth-efl.so.*
-%exclude %{_ugdir}/lib/libug-setting-bluetooth-efl.so.emulator
-%exclude %{_ugdir}/lib/libug-setting-bluetooth-efl.so.*.emulator
+%{_datadir}/packages/%{name}.xml
+%{_datadir}/icons/default/small/%{name}.png
+#%%{_ugdir}/res/tables/%{prj_name}/%{name}*.xml
+%license LICENSE
%ifarch %{ix86} x86_64
+
%post extension-emulator
-pushd %{_ugdir}/lib/
-for FILE in libug-setting-bluetooth-efl.so*.emulator; do mv "${FILE}" "${FILE%.emulator}"; done
-popd
-/sbin/ldconfig
+pushd %{_ugdir}/lib
+rename libug originug %{_ugdir}/lib/lib%{prj_name}.so.*
+rename libemulug libug %{_ugdir}/lib/libemul%{prj_name}.so.*
+
%preun extension-emulator
-pushd %{_ugdir}/lib/
-for FILE in libug-setting-bluetooth-efl.so*; do mv "${FILE}" "${FILE}.emulator"; done
-popd
+rename libug libemulug %{_ugdir}/lib/lib%{prj_name}.so.*
+rename originug libug %{_ugdir}/lib/origin%{prj_name}.so.*
+
%postun extension-emulator -p /sbin/ldconfig
+
%files extension-emulator
-%manifest ug-bluetooth-efl.manifest
-%{_ugdir}/lib/libug-setting-bluetooth-efl.so.emulator
-%{_ugdir}/lib/libug-setting-bluetooth-efl.so.*.emulator
-%endif // ifarch %{ix86} x86_64
+%manifest %{name}.manifest
+%{_ugdir}/lib/libemul%{prj_name}.so.*
+%license LICENSE
+
+%endif //ifarch %{ix86} x86_64
-SET(TARGET "edje")
-
-ADD_CUSTOM_TARGET(bluetooth_images.edj
- COMMAND edje_cc -id ${CMAKE_CURRENT_SOURCE_DIR}/images/WVGA
- ${CMAKE_CURRENT_SOURCE_DIR}/${TARGET}/bluetooth_images.edc
- ${CMAKE_CURRENT_SOURCE_DIR}/${TARGET}/bluetooth_images.edj
- DEPENDS
- ${CMAKE_CURRENT_SOURCE_DIR}/${TARGET}/bluetooth_images.edc
- )
-ADD_CUSTOM_TARGET(bluetooth_genlist.edj
- COMMAND edje_cc -id ${CMAKE_CURRENT_SOURCE_DIR}/images/WVGA
- ${CMAKE_CURRENT_SOURCE_DIR}/${TARGET}/bluetooth_genlist.edc
- ${CMAKE_CURRENT_SOURCE_DIR}/${TARGET}/bluetooth_genlist.edj
- DEPENDS
- ${CMAKE_CURRENT_SOURCE_DIR}/${TARGET}/bluetooth_genlist.edc
- )
-
-ADD_CUSTOM_TARGET(main_layout.edj
- COMMAND edje_cc -id ${CMAKE_CURRENT_SOURCE_DIR}/images/WVGA
- ${CMAKE_CURRENT_SOURCE_DIR}/${TARGET}/main_layout.edc
- ${CMAKE_CURRENT_SOURCE_DIR}/${TARGET}/main_layout.edj
- DEPENDS
- ${CMAKE_CURRENT_SOURCE_DIR}/${TARGET}/main_layout.edc
- )
-
-ADD_DEPENDENCIES(${PROJECT_NAME} bluetooth_images.edj)
-ADD_DEPENDENCIES(${PROJECT_NAME} bluetooth_genlist.edj)
-ADD_DEPENDENCIES(${PROJECT_NAME} main_layout.edj)
-
-INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/${TARGET}/bluetooth_images.edj DESTINATION ${EDJDIR})
-INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/${TARGET}/bluetooth_genlist.edj DESTINATION ${EDJDIR})
-INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/${TARGET}/main_layout.edj DESTINATION ${EDJDIR})
+INSTALL(DIRECTORY images/ DESTINATION ${IMAGEDIR}
+ FILES_MATCHING PATTERN "*.png" PATTERN "*.jpg")
+INSTALL(DIRECTORY help/ DESTINATION ${HELPDIR} FILES_MATCHING PATTERN "*help_*")
+#INSTALL(DIRECTORY tables/ DESTINATION ${TABLEDIR} FILES_MATCHING PATTERN "*.xml")
+INSTALL(FILES ug-bluetooth-efl.xml DESTINATION ${SHARE_INSTALL_PREFIX}/packages/)
+INSTALL(FILES images/ug-bluetooth-efl.png
+ DESTINATION ${SHARE_INSTALL_PREFIX}/icons/default/small)
+
+ADD_SUBDIRECTORY(edje)
+ADD_SUBDIRECTORY(po)
--- /dev/null
+SET(EDC_DIR ${CMAKE_CURRENT_SOURCE_DIR})
+SET(IMAGE_DIR ${CMAKE_SOURCE_DIR}/res/images/WVGA)
+SET(EDC_FILES bluetooth_images.edc bluetooth_genlist.edc main_layout.edc)
+
+FOREACH(edc_file ${EDC_FILES})
+ GET_FILENAME_COMPONENT(FName ${edc_file} NAME_WE)
+ ADD_CUSTOM_TARGET(${FName}.edj
+ COMMAND edje_cc -id ${IMAGE_DIR}
+ ${EDC_DIR}/${edc_file} ${EDC_DIR}/${FName}.edj
+ DEPENDS ${EDC_DIR}/${edc_file}
+ )
+ ADD_DEPENDENCIES(${PROJECT_NAME} ${FName}.edj)
+ENDFOREACH()
+
+# install edc files
+INSTALL(DIRECTORY ${EDC_DIR}/ DESTINATION ${EDJDIR} FILES_MATCHING PATTERN "*.edj")
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<ChangeableColorTable num="1">
- <Theme style="Dark">
- <ChangeableColorInfo id="ATO001" inputColor="3" hue="0" saturation="0" value="0" alpha="100" />
- </Theme>
- <Theme style="Light">
- <ChangeableColorInfo id="ATO001" inputColor="3" hue="" saturation="" value="" alpha="" />
- </Theme>
-</ChangeableColorTable>
-<ChangeableColorTable num="2">
- <Theme style="Dark">
- <ChangeableColorInfo id="ATO001" inputColor="3" hue="0" saturation="0" value="0" alpha="100" />
- </Theme>
- <Theme style="Light">
- <ChangeableColorInfo id="ATO001" inputColor="3" hue="" saturation="" value="" alpha="" />
- </Theme>
-</ChangeableColorTable>
-<ChangeableColorTable num="3">
- <Theme style="Dark">
- <ChangeableColorInfo id="ATO001" inputColor="3" hue="0" saturation="0" value="0" alpha="100" />
- </Theme>
- <Theme style="Light">
- <ChangeableColorInfo id="ATO001" inputColor="3" hue="" saturation="" value="" alpha="" />
- </Theme>
-</ChangeableColorTable>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<FontInfoTable>
- <FontInfo id="ATO001" style="L" size="42" />
-</FontInfoTable>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<ChangeableColorTable num="1">
- <Theme style="Dark">
- <ChangeableColorInfo id="AO002" inputColor="1" hue="" saturation="" value="" alpha="" />
- <ChangeableColorInfo id="AO003" inputColor="-" hue="" saturation="" value="" alpha="" />
- <ChangeableColorInfo id="AO003P" inputColor="-" hue="" saturation="" value="" alpha="" />
- <ChangeableColorInfo id="AO003D" inputColor="-" hue="" saturation="" value="" alpha="" />
- <ChangeableColorInfo id="AO004" inputColor="1" hue="" saturation="" value="" alpha="" />
- <ChangeableColorInfo id="AO004P" inputColor="1" hue="" saturation="" value="" alpha="" />
- <ChangeableColorInfo id="AO004D" inputColor="1" hue="" saturation="" value="" alpha="" />
- <ChangeableColorInfo id="AO001" inputColor="-" hue="" saturation="" value="" alpha="" />
- <ChangeableColorInfo id="ATO001" inputColor="1" hue="" saturation="" value="" alpha="" />
- <ChangeableColorInfo id="ATO002" inputColor="-" hue="" saturation="" value="" alpha="" />
- </Theme>
- <Theme style="Light">
- <ChangeableColorInfo id="AO002" inputColor="1" hue="0" saturation="0" value="0" alpha="100" />
- <ChangeableColorInfo id="AO003" inputColor="-" hue="0" saturation="0" value="100" alpha="100" fixedHue="true" fixedSaturation="true" fixedValue="true" />
- <ChangeableColorInfo id="AO003P" inputColor="-" hue="0" saturation="0" value="100" alpha="100" fixedHue="true" fixedSaturation="true" fixedValue="true" />
- <ChangeableColorInfo id="AO003D" inputColor="-" hue="0" saturation="0" value="100" alpha="50" fixedHue="true" fixedSaturation="true" fixedValue="true" />
- <ChangeableColorInfo id="AO004" inputColor="1" hue="0" saturation="-18" value="23" alpha="100" />
- <ChangeableColorInfo id="AO004P" inputColor="1" hue="0" saturation="-18" value="8" alpha="100" />
- <ChangeableColorInfo id="AO004D" inputColor="1" hue="0" saturation="-38" value="23" alpha="100" />
- <ChangeableColorInfo id="AO001" inputColor="-" hue="0" saturation="0" value="30" alpha="100" fixedHue="true" fixedSaturation="true" fixedValue="true" />
- <ChangeableColorInfo id="ATO001" inputColor="1" hue="0" saturation="0" value="0" alpha="100" />
- <ChangeableColorInfo id="ATO002" inputColor="-" hue="0" saturation="0" value="30" alpha="100" fixedHue="true" fixedSaturation="true" fixedValue="true" />
- </Theme>
-</ChangeableColorTable>
-<ChangeableColorTable num="2">
- <Theme style="Dark">
- <ChangeableColorInfo id="AO002" inputColor="1" hue="" saturation="" value="" alpha="" />
- <ChangeableColorInfo id="AO003" inputColor="-" hue="" saturation="" value="" alpha="" />
- <ChangeableColorInfo id="AO003P" inputColor="-" hue="" saturation="" value="" alpha="" />
- <ChangeableColorInfo id="AO003D" inputColor="-" hue="" saturation="" value="" alpha="" />
- <ChangeableColorInfo id="AO004" inputColor="1" hue="" saturation="" value="" alpha="" />
- <ChangeableColorInfo id="AO004P" inputColor="1" hue="" saturation="" value="" alpha="" />
- <ChangeableColorInfo id="AO004D" inputColor="1" hue="" saturation="" value="" alpha="" />
- <ChangeableColorInfo id="AO001" inputColor="-" hue="" saturation="" value="" alpha="" />
- <ChangeableColorInfo id="ATO001" inputColor="1" hue="" saturation="" value="" alpha="" />
- <ChangeableColorInfo id="ATO002" inputColor="-" hue="" saturation="" value="" alpha="" />
- </Theme>
- <Theme style="Light">
- <ChangeableColorInfo id="AO002" inputColor="1" hue="0" saturation="0" value="0" alpha="100" />
- <ChangeableColorInfo id="AO003" inputColor="-" hue="0" saturation="0" value="0" alpha="100" fixedHue="true" fixedSaturation="true" fixedValue="true" />
- <ChangeableColorInfo id="AO003P" inputColor="-" hue="0" saturation="0" value="0" alpha="100" fixedHue="true" fixedSaturation="true" fixedValue="true" />
- <ChangeableColorInfo id="AO003D" inputColor="-" hue="0" saturation="0" value="0" alpha="50" fixedHue="true" fixedSaturation="true" fixedValue="true" />
- <ChangeableColorInfo id="AO004" inputColor="1" hue="0" saturation="-18" value="23" alpha="100" />
- <ChangeableColorInfo id="AO004P" inputColor="1" hue="0" saturation="-18" value="8" alpha="100" />
- <ChangeableColorInfo id="AO004D" inputColor="1" hue="0" saturation="-38" value="23" alpha="100" />
- <ChangeableColorInfo id="AO001" inputColor="-" hue="0" saturation="0" value="30" alpha="100" fixedHue="true" fixedSaturation="true" fixedValue="true" />
- <ChangeableColorInfo id="ATO001" inputColor="1" hue="0" saturation="0" value="0" alpha="100" />
- <ChangeableColorInfo id="ATO002" inputColor="-" hue="0" saturation="0" value="30" alpha="100" fixedHue="true" fixedSaturation="true" fixedValue="true" />
- </Theme>
-</ChangeableColorTable>
-<ChangeableColorTable num="3">
- <Theme style="Dark">
- <ChangeableColorInfo id="AO002" inputColor="1" hue="" saturation="" value="" alpha="" />
- <ChangeableColorInfo id="AO003" inputColor="-" hue="" saturation="" value="" alpha="" />
- <ChangeableColorInfo id="AO003P" inputColor="-" hue="" saturation="" value="" alpha="" />
- <ChangeableColorInfo id="AO003D" inputColor="-" hue="" saturation="" value="" alpha="" />
- <ChangeableColorInfo id="AO004" inputColor="1" hue="" saturation="" value="" alpha="" />
- <ChangeableColorInfo id="AO004P" inputColor="1" hue="" saturation="" value="" alpha="" />
- <ChangeableColorInfo id="AO004D" inputColor="1" hue="" saturation="" value="" alpha="" />
- <ChangeableColorInfo id="AO001" inputColor="-" hue="" saturation="" value="" alpha="" />
- <ChangeableColorInfo id="ATO001" inputColor="1" hue="" saturation="" value="" alpha="" />
- <ChangeableColorInfo id="ATO002" inputColor="-" hue="" saturation="" value="" alpha="" />
- </Theme>
- <Theme style="Light">
- <ChangeableColorInfo id="AO002" inputColor="1" hue="0" saturation="0" value="0" alpha="100" />
- <ChangeableColorInfo id="AO003" inputColor="-" hue="0" saturation="0" value="0" alpha="100" fixedHue="true" fixedSaturation="true" fixedValue="true" />
- <ChangeableColorInfo id="AO003P" inputColor="-" hue="0" saturation="0" value="0" alpha="100" fixedHue="true" fixedSaturation="true" fixedValue="true" />
- <ChangeableColorInfo id="AO003D" inputColor="-" hue="0" saturation="0" value="0" alpha="50" fixedHue="true" fixedSaturation="true" fixedValue="true" />
- <ChangeableColorInfo id="AO004" inputColor="1" hue="0" saturation="-18" value="23" alpha="100" />
- <ChangeableColorInfo id="AO004P" inputColor="1" hue="0" saturation="-18" value="8" alpha="100" />
- <ChangeableColorInfo id="AO004D" inputColor="1" hue="0" saturation="-38" value="23" alpha="100" />
- <ChangeableColorInfo id="AO001" inputColor="-" hue="0" saturation="0" value="30" alpha="100" fixedHue="true" fixedSaturation="true" fixedValue="true" />
- <ChangeableColorInfo id="ATO001" inputColor="1" hue="0" saturation="0" value="0" alpha="100" />
- <ChangeableColorInfo id="ATO002" inputColor="-" hue="0" saturation="0" value="30" alpha="100" fixedHue="true" fixedSaturation="true" fixedValue="true" />
- </Theme>
-</ChangeableColorTable>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<FontInfoTable>
- <FontInfo id="ATO001" style="R" size="30" />
- <FontInfo id="ATO002" style="R" size="24" />
-</FontInfoTable>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<ChangeableColorTable num="1">
+ <Theme style="Dark">
+ <ChangeableColorInfo id="AO002" inputColor="1" hue="" saturation="" value="" alpha="" />
+ <ChangeableColorInfo id="AO003" inputColor="-" hue="" saturation="" value="" alpha="" />
+ <ChangeableColorInfo id="AO003P" inputColor="-" hue="" saturation="" value="" alpha="" />
+ <ChangeableColorInfo id="AO003D" inputColor="-" hue="" saturation="" value="" alpha="" />
+ <ChangeableColorInfo id="AO004" inputColor="1" hue="" saturation="" value="" alpha="" />
+ <ChangeableColorInfo id="AO004P" inputColor="1" hue="" saturation="" value="" alpha="" />
+ <ChangeableColorInfo id="AO004D" inputColor="1" hue="" saturation="" value="" alpha="" />
+ <ChangeableColorInfo id="AO001" inputColor="-" hue="" saturation="" value="" alpha="" />
+ <ChangeableColorInfo id="ATO001" inputColor="1" hue="" saturation="" value="" alpha="" />
+ <ChangeableColorInfo id="ATO002" inputColor="-" hue="" saturation="" value="" alpha="" />
+ </Theme>
+ <Theme style="Light">
+ <ChangeableColorInfo id="AO002" inputColor="1" hue="0" saturation="0" value="0" alpha="100" />
+ <ChangeableColorInfo id="AO003" inputColor="-" hue="0" saturation="0" value="100" alpha="100" fixedHue="true" fixedSaturation="true" fixedValue="true" />
+ <ChangeableColorInfo id="AO003P" inputColor="-" hue="0" saturation="0" value="100" alpha="100" fixedHue="true" fixedSaturation="true" fixedValue="true" />
+ <ChangeableColorInfo id="AO003D" inputColor="-" hue="0" saturation="0" value="100" alpha="50" fixedHue="true" fixedSaturation="true" fixedValue="true" />
+ <ChangeableColorInfo id="AO004" inputColor="1" hue="0" saturation="-18" value="23" alpha="100" />
+ <ChangeableColorInfo id="AO004P" inputColor="1" hue="0" saturation="-18" value="8" alpha="100" />
+ <ChangeableColorInfo id="AO004D" inputColor="1" hue="0" saturation="-38" value="23" alpha="100" />
+ <ChangeableColorInfo id="AO001" inputColor="-" hue="0" saturation="0" value="30" alpha="100" fixedHue="true" fixedSaturation="true" fixedValue="true" />
+ <ChangeableColorInfo id="ATO001" inputColor="1" hue="0" saturation="0" value="0" alpha="100" />
+ <ChangeableColorInfo id="ATO002" inputColor="-" hue="0" saturation="0" value="30" alpha="100" fixedHue="true" fixedSaturation="true" fixedValue="true" />
+ </Theme>
+</ChangeableColorTable>
+<ChangeableColorTable num="2">
+ <Theme style="Dark">
+ <ChangeableColorInfo id="AO002" inputColor="1" hue="" saturation="" value="" alpha="" />
+ <ChangeableColorInfo id="AO003" inputColor="-" hue="" saturation="" value="" alpha="" />
+ <ChangeableColorInfo id="AO003P" inputColor="-" hue="" saturation="" value="" alpha="" />
+ <ChangeableColorInfo id="AO003D" inputColor="-" hue="" saturation="" value="" alpha="" />
+ <ChangeableColorInfo id="AO004" inputColor="1" hue="" saturation="" value="" alpha="" />
+ <ChangeableColorInfo id="AO004P" inputColor="1" hue="" saturation="" value="" alpha="" />
+ <ChangeableColorInfo id="AO004D" inputColor="1" hue="" saturation="" value="" alpha="" />
+ <ChangeableColorInfo id="AO001" inputColor="-" hue="" saturation="" value="" alpha="" />
+ <ChangeableColorInfo id="ATO001" inputColor="1" hue="" saturation="" value="" alpha="" />
+ <ChangeableColorInfo id="ATO002" inputColor="-" hue="" saturation="" value="" alpha="" />
+ </Theme>
+ <Theme style="Light">
+ <ChangeableColorInfo id="AO002" inputColor="1" hue="0" saturation="0" value="0" alpha="100" />
+ <ChangeableColorInfo id="AO003" inputColor="-" hue="0" saturation="0" value="0" alpha="100" fixedHue="true" fixedSaturation="true" fixedValue="true" />
+ <ChangeableColorInfo id="AO003P" inputColor="-" hue="0" saturation="0" value="0" alpha="100" fixedHue="true" fixedSaturation="true" fixedValue="true" />
+ <ChangeableColorInfo id="AO003D" inputColor="-" hue="0" saturation="0" value="0" alpha="50" fixedHue="true" fixedSaturation="true" fixedValue="true" />
+ <ChangeableColorInfo id="AO004" inputColor="1" hue="0" saturation="-18" value="23" alpha="100" />
+ <ChangeableColorInfo id="AO004P" inputColor="1" hue="0" saturation="-18" value="8" alpha="100" />
+ <ChangeableColorInfo id="AO004D" inputColor="1" hue="0" saturation="-38" value="23" alpha="100" />
+ <ChangeableColorInfo id="AO001" inputColor="-" hue="0" saturation="0" value="30" alpha="100" fixedHue="true" fixedSaturation="true" fixedValue="true" />
+ <ChangeableColorInfo id="ATO001" inputColor="1" hue="0" saturation="0" value="0" alpha="100" />
+ <ChangeableColorInfo id="ATO002" inputColor="-" hue="0" saturation="0" value="30" alpha="100" fixedHue="true" fixedSaturation="true" fixedValue="true" />
+ </Theme>
+</ChangeableColorTable>
+<ChangeableColorTable num="3">
+ <Theme style="Dark">
+ <ChangeableColorInfo id="AO002" inputColor="1" hue="" saturation="" value="" alpha="" />
+ <ChangeableColorInfo id="AO003" inputColor="-" hue="" saturation="" value="" alpha="" />
+ <ChangeableColorInfo id="AO003P" inputColor="-" hue="" saturation="" value="" alpha="" />
+ <ChangeableColorInfo id="AO003D" inputColor="-" hue="" saturation="" value="" alpha="" />
+ <ChangeableColorInfo id="AO004" inputColor="1" hue="" saturation="" value="" alpha="" />
+ <ChangeableColorInfo id="AO004P" inputColor="1" hue="" saturation="" value="" alpha="" />
+ <ChangeableColorInfo id="AO004D" inputColor="1" hue="" saturation="" value="" alpha="" />
+ <ChangeableColorInfo id="AO001" inputColor="-" hue="" saturation="" value="" alpha="" />
+ <ChangeableColorInfo id="ATO001" inputColor="1" hue="" saturation="" value="" alpha="" />
+ <ChangeableColorInfo id="ATO002" inputColor="-" hue="" saturation="" value="" alpha="" />
+ </Theme>
+ <Theme style="Light">
+ <ChangeableColorInfo id="AO002" inputColor="1" hue="0" saturation="0" value="0" alpha="100" />
+ <ChangeableColorInfo id="AO003" inputColor="-" hue="0" saturation="0" value="0" alpha="100" fixedHue="true" fixedSaturation="true" fixedValue="true" />
+ <ChangeableColorInfo id="AO003P" inputColor="-" hue="0" saturation="0" value="0" alpha="100" fixedHue="true" fixedSaturation="true" fixedValue="true" />
+ <ChangeableColorInfo id="AO003D" inputColor="-" hue="0" saturation="0" value="0" alpha="50" fixedHue="true" fixedSaturation="true" fixedValue="true" />
+ <ChangeableColorInfo id="AO004" inputColor="1" hue="0" saturation="-18" value="23" alpha="100" />
+ <ChangeableColorInfo id="AO004P" inputColor="1" hue="0" saturation="-18" value="8" alpha="100" />
+ <ChangeableColorInfo id="AO004D" inputColor="1" hue="0" saturation="-38" value="23" alpha="100" />
+ <ChangeableColorInfo id="AO001" inputColor="-" hue="0" saturation="0" value="30" alpha="100" fixedHue="true" fixedSaturation="true" fixedValue="true" />
+ <ChangeableColorInfo id="ATO001" inputColor="1" hue="0" saturation="0" value="0" alpha="100" />
+ <ChangeableColorInfo id="ATO002" inputColor="-" hue="0" saturation="0" value="30" alpha="100" fixedHue="true" fixedSaturation="true" fixedValue="true" />
+ </Theme>
+</ChangeableColorTable>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<FontInfoTable>
+ <FontInfo id="ATO001" style="R" size="30" />
+ <FontInfo id="ATO002" style="R" size="24" />
+</FontInfoTable>
-CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
+FILE(GLOB SRCS *.c)
-SET(SRCS
-bt-main-ug.c
-bt-widget.c
-bt-main-view.c
-bt-profile-view.c
-bt-util.c
-bt-callback.c
-bt-ipc-handler.c
-bt-net-connection.c
-)
+SET(PKG_MODULES elementary appcore-efl ui-gadget-1 dlog vconf evas edje ecore eina aul
+ syspopup-caller capi-network-bluetooth capi-appfw-application capi-system-info
+ capi-system-device notification efl-extension glib-2.0 gio-2.0 dpm motion
+ capi-network-connection)
-INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/include)
+IF(NOT TV_PROFILE)
+ SET(PKG_MODULES ${PKG_MODULES} contacts-service2)
+ENDIF()
-IF(TIZEN_WITHOUT_CONTACTS)
-SET(PKG_MODULES
- elementary
- appcore-efl
- ui-gadget-1
- dlog
- vconf
- evas
- edje
- ecore
- eina
- aul
- syspopup-caller
- gobject-2.0
- motion
- capi-network-bluetooth
- capi-network-connection
- capi-system-device
- capi-appfw-application
- capi-system-info
- notification
- efl-extension
- glib-2.0
- gio-2.0
- dpm
-)
-ELSE(TIZEN_WITHOUT_CONTACTS)
-SET(PKG_MODULES
- elementary
- appcore-efl
- ui-gadget-1
- dlog
- vconf
- evas
- edje
- ecore
- eina
- aul
- syspopup-caller
- gobject-2.0
- motion
- capi-network-bluetooth
- capi-network-connection
- capi-system-device
- capi-appfw-application
- capi-system-info
- notification
- efl-extension
- glib-2.0
- gio-2.0
- dpm
- contacts-service2
-)
-ENDIF(TIZEN_WITHOUT_CONTACTS)
-
-INCLUDE(FindPkgConfig)
pkg_check_modules(pkgs REQUIRED ${PKG_MODULES})
-
-FOREACH(flag ${pkgs_CFLAGS})
- SET(EXTRA_CXXFLAGS "${EXTRA_CXXFLAGS} ${flag}")
-ENDFOREACH(flag)
-
-SET(GC_SECTIONS_FLAGS "-fdata-sections -ffunction-sections -Wl,--gc-sections")
-SET(EXTRA_CXXFLAGS "${EXTRA_CXXFLAGS} -fvisibility=hidden -Wall")
-SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${EXTRA_CXXFLAGS} ${GC_SECTIONS_FLAGS}")
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${CMAKE_CXX_FLAGS} ${GC_SECTIONS_FLAGS} -fPIC -Werror")
-
-ADD_DEFINITIONS("-DPREFIX=\"${CMAKE_INSTALL_PREFIX}\"")
-ADD_DEFINITIONS("-DEDJDIR=\"${EDJDIR}\"")
-ADD_DEFINITIONS("-DRESDIR=\"${RESDIR}\"")
-ADD_DEFINITIONS("-DIMAGEDIR=\"${IMAGEDIR}\"")
-ADD_DEFINITIONS("-DBT_USE_PLATFORM_DBG")
-#ADD_DEFINITIONS("-D__TIZEN_OPEN__")
-
-INSTALL(FILES ${CMAKE_SOURCE_DIR}/res/ug-bluetooth-efl.xml DESTINATION /usr/share/packages/)
-INSTALL(FILES ${CMAKE_SOURCE_DIR}/res/images/ug-bluetooth-efl.png DESTINATION /usr/share/icons/default/small)
+INCLUDE_DIRECTORIES(${pkgs_INCLUDE_DIRS})
+LINK_DIRECTORIES(${pkgs_LIBRARY_DIRS})
ADD_LIBRARY(${PROJECT_NAME} SHARED ${SRCS})
-SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES SOVERSION 0.1.0)
-TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${pkgs_LDFLAGS})
-
-INSTALL(TARGETS ${PROJECT_NAME} DESTINATION /usr/ug/lib)
+SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES SOVERSION ${VERSION})
+TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${pkgs_LIBRARIES})
-INSTALL(FILES ${CMAKE_SOURCE_DIR}/res/images/ug-bluetooth-efl.png DESTINATION ${IMAGEDIR})
-INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/res/images/ DESTINATION ${IMAGEDIR} FILES_MATCHING PATTERN "*.png")
-INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/res/images/ DESTINATION ${IMAGEDIR} FILES_MATCHING PATTERN "*.jpg")
-INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/res/help/ DESTINATION ${HELPDIR} FILES_MATCHING PATTERN "*help_*")
-INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/res/tables/WVGA/ DESTINATION ${TABLEDIR} FILES_MATCHING PATTERN "*.xml")
+INSTALL(TARGETS ${PROJECT_NAME} DESTINATION ${LIB_INSTALL_DIR})
--- /dev/null
+/*
+* ug-bluetooth-efl
+*
+* Copyright 2012 Samsung Electronics Co., Ltd
+*
+* Contact: Hocheol Seo <hocheol.seo@samsung.com>
+* GirishAshok Joshi <girish.joshi@samsung.com>
+* DoHyun Pyun <dh79.pyun@samsung.com>
+*
+* Licensed under the Flora License, Version 1.1 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.tizenopensource.org/license
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*/
+
+#ifndef __BT_CALLBACK_H
+#define __BT_CALLBACK_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include <bluetooth.h>
+
+void _bt_cb_state_changed(int result,
+ bt_adapter_state_e adapter_state,
+ void *user_data);
+
+void _bt_cb_discovery_state_changed(int result,
+ bt_adapter_device_discovery_state_e discovery_state,
+ bt_adapter_device_discovery_info_s *discovery_info,
+ void *user_data);
+void _bt_cb_visibility_mode_changed
+ (int result, bt_adapter_visibility_mode_e visibility_mode, void *user_data);
+
+void _bt_cb_gatt_connection_state_changed(int result, bool connected, char *remote_address, void *user_data);
+
+void _bt_cb_new_le_device_found(int result, bt_adapter_le_device_scan_result_info_s *info, void *data);
+
+void _bt_cb_bonding_created(int result, bt_device_info_s *device_info,
+ void *user_data);
+
+void _bt_cb_bonding_destroyed(int result, char *remote_address,
+ void *user_data);
+
+void _bt_cb_service_searched(int result, bt_device_sdp_info_s *sdp_info,
+ void *user_data);
+
+void _bt_cb_hid_state_changed(int result, bool connected,
+ const char *remote_address,
+ void *user_data);
+
+void _bt_cb_audio_state_changed(int result, bool connected,
+ const char *remote_address,
+ bt_audio_profile_type_e type,
+ void *user_data);
+#ifdef TIZEN_BT_A2DP_SINK_ENABLE
+void _bt_cb_a2dp_source_state_changed(int result, bool connected,
+ const char *remote_address,
+ bt_audio_profile_type_e type,
+ void *user_data);
+#endif
+void _bt_cb_adapter_name_changed(char *device_name, void *user_data);
+
+void _bt_cb_nap_state_changed(bool connected, const char *remote_address,
+ const char *interface_name, void *user_data);
+
+void _bt_cb_device_connection_state_changed(bool connected,
+ bt_device_connection_info_s *conn_info,
+ void *user_data);
+
+void _bt_retry_connection_cb(void *data,
+ Evas_Object *obj, void *event_info);
+
+#ifdef __cplusplus
+}
+#endif
+#endif /* __BT_CALLBACK_H */
--- /dev/null
+/*
+* ug-bluetooth-efl
+*
+* Copyright 2012 Samsung Electronics Co., Ltd
+*
+* Contact: Hocheol Seo <hocheol.seo@samsung.com>
+* GirishAshok Joshi <girish.joshi@samsung.com>
+* DoHyun Pyun <dh79.pyun@samsung.com>
+*
+* Licensed under the Flora License, Version 1.1 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.tizenopensource.org/license
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*/
+
+#ifndef __BT_IPC_HANDLER_H__
+#define __BT_IPC_HANDLER_H__
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include "bt-type-define.h"
+
+/* ================= IPC interface define ================= */
+
+#define BT_UG_IPC_INTERFACE "User.Bluetooth.UG"
+#define BT_UG_IPC_RECIEVER "org.projectx.bluetooth"
+#define BT_UG_IPC_REQUEST_OBJECT "/org/projectx/connect_device"
+#define BT_UG_IPC_RESPONSE_OBJECT "/org/projectx/response_event"
+#define BT_UG_IPC_METHOD_CONNECT "Connect"
+#define BT_UG_IPC_METHOD_DISCONNECT "Disconnect"
+#define BT_UG_IPC_METHOD_RESPONSE "Response"
+#define BT_UG_IPC_METHOD_SEND "Send"
+#define BT_UG_IPC_EVENT_CONNECTED "Connected"
+#define BT_UG_IPC_EVENT_DISCONNECTED "Disconnected"
+
+#define BT_SYSPOPUP_IPC_RESPONSE_OBJECT "/org/projectx/bt_syspopup_res"
+#define BT_SYSPOPUP_INTERFACE "User.Bluetooth.syspopup"
+#define BT_SYSPOPUP_METHOD_RESPONSE "Response"
+
+#define BT_UG_IPC_MSG_LEN 256
+
+typedef enum {
+ BT_AUDIO_DEVICE,
+ BT_HEADSET_DEVICE,
+ BT_STEREO_HEADSET_DEVICE,
+ BT_MUSIC_PLAYER_DEVICE,
+ BT_HID_DEVICE,
+ BT_NETWORK_DEVICE,
+ BT_DEVICE_MAX,
+} bt_device_type;
+
+typedef enum {
+ BT_IPC_AG_CONNECT_RESPONSE,
+ BT_IPC_AG_DISCONNECT_RESPONSE,
+ BT_IPC_AV_CONNECT_RESPONSE,
+ BT_IPC_AV_DISCONNECT_RESPONSE,
+ BT_IPC_HID_CONNECT_RESPONSE,
+ BT_IPC_HID_DISCONNECT_RESPONSE,
+ BT_IPC_SENDING_RESPONSE,
+ BT_IPC_BROWSING_RESPONSE,
+ BT_IPC_PRINTING_RESPONSE,
+ BT_IPC_PAIRING_RESPONSE,
+} bt_ipc_response_t;
+
+typedef enum {
+ BT_IPC_SUCCESS,
+ BT_IPC_FAIL,
+} bt_ipc_result_t;
+
+typedef struct {
+ int param1; /* Connect type: Headset / Stereo Headset / HID device */
+ unsigned char param2[BT_ADDRESS_LENGTH_MAX]; /* Device address */
+} __attribute__ ((packed)) bt_ug_ipc_param_t;
+
+typedef struct {
+ unsigned char addr[BT_ADDRESS_LENGTH_MAX]; /* Device address */
+ int file_cnt; /* file count */
+ char *dev_name; /* Device name */
+ char *type; /* sending type */
+ char **filepath;
+} __attribute__ ((packed)) obex_ipc_param_t;
+
+/**
+ * Structure to pass notification from BT application
+ */
+typedef struct {
+ int param1;
+ int param2;
+} bt_ug_param_info_t;
+
+int _bt_ipc_register_popup_event_signal(bt_ug_data *ugd);
+
+int _bt_ipc_unregister_popup_event_signal(bt_ug_data *ugd);
+
+int _bt_ipc_send_message(char *method_type, bt_ug_ipc_param_t *param,
+ void *data);
+
+int _bt_ipc_send_obex_message(obex_ipc_param_t *param, void *data);
+
+void _bt_ipc_update_connected_status(void *data, int connected_type,
+ bool connected, int result,
+ bt_address_t *addr);
+
+
+#ifdef __cplusplus
+}
+#endif
+#endif /* __BT_IPC_HANDLER_H__ */
--- /dev/null
+/*
+* ug-bluetooth-efl
+*
+* Copyright 2012 Samsung Electronics Co., Ltd
+*
+* Contact: Hocheol Seo <hocheol.seo@samsung.com>
+* GirishAshok Joshi <girish.joshi@samsung.com>
+* DoHyun Pyun <dh79.pyun@samsung.com>
+*
+* Licensed under the Flora License, Version 1.1 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.tizenopensource.org/license
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*/
+
+#ifndef __BT_MAIN_UG_H__
+#define __BT_MAIN_UG_H__
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include <stdbool.h>
+#include <libintl.h>
+#include <appcore-efl.h>
+#include <Elementary.h>
+#include <efl_extension.h>
+#include <ui-gadget-module.h>
+#include <dlog.h>
+#include <bundle.h>
+#include <gio/gio.h>
+
+#include "bt-define.h"
+#include "bt-type-define.h"
+#include "bt-profile-view.h"
+
+#define _EDJ(o) elm_layout_edje_get(o)
+
+#ifdef _
+#undef _
+#endif
+#define _(s) dgettext(PKGNAME, s)
+
+#define dgettext_noop(s) (s)
+
+#ifdef N_
+#undef N_
+#endif
+#define N_(s) dgettext_noop(s)
+
+#define BT_UG_VCONF_PRINTSETTING "memory/bluetooth/printsetting"
+
+typedef struct {
+ /* UI gadget data */
+ ui_gadget_h ug;
+ Evas_Object *base;
+ Evas_Object *win_main;
+ Elm_Theme *theme;
+
+ bt_launch_mode_t bt_launch_mode;
+
+ /* Request timer */
+ Ecore_Timer *request_timer;
+
+ /*************************
+ * Main View objects
+ ************************ */
+ Evas_Object *navi_bar;
+ Evas_Object *main_layout;
+ Elm_Object_Item *navi_it;
+ Elm_Object_Item *service_navi_it;
+ /* Genlist */
+ Evas_Object *main_genlist;
+
+
+ /* Paired / Searched devices */
+ Evas_Object *paired_dlggrp;
+ Evas_Object *searched_dlggrp;
+
+ /* Selected device's genlist items */
+ Elm_Object_Item *paired_item;
+ Elm_Object_Item *searched_item;
+
+ /* Help object */
+ Evas_Object *help_more_popup;
+ Evas_Object *help_popup;
+
+ /* Rename Device object*/
+ Evas_Object *rename_popup;
+ Evas_Object *rename_entry;
+ Evas_Object *rename_button;
+
+ /* Paired / Searched device list */
+ Eina_List *paired_device;
+ Eina_List *searched_device;
+
+ /* Network profile list */
+ Eina_List *net_profile_list;
+
+ /* Button */
+ Evas_Object *onoff_btn;
+ Evas_Object *scan_btn;
+
+ /* Genlist Item class */
+ Elm_Genlist_Item_Class *device_name_itc;
+ Elm_Genlist_Item_Class *rename_entry_itc;
+ Elm_Genlist_Item_Class *rename_desc_itc;
+ Elm_Genlist_Item_Class *paired_title_itc;
+ Elm_Genlist_Item_Class *searched_title_itc;
+ Elm_Genlist_Item_Class *searched_device_itc;
+ Elm_Genlist_Item_Class *no_device_itc;
+ Elm_Genlist_Item_Class *paired_device_itc;
+ Elm_Genlist_Item_Class *on_itc;
+ Elm_Genlist_Item_Class *off_itc;
+
+ /* Genlist Items */
+ Elm_Object_Item *onoff_item;
+ Elm_Object_Item *device_name_item;
+ Elm_Object_Item *paired_title;
+ Elm_Object_Item *searched_title;
+ Elm_Object_Item *no_device_item;
+ Elm_Object_Item *visible_exp_item[BT_MAX_TIMEOUT_ITEMS + 1];
+ Elm_Object_Item *empty_status_item;
+ Elm_Object_Item *rename_entry_item;
+
+ /*************************
+ * Popup objects
+ ************************ */
+ Evas_Object *popup;
+ bt_popup_data popup_data;
+ Evas_Object *popup_menu;
+
+ /*************************
+ * Status Variables
+ ************************ */
+ bool waiting_service_response;
+ bool disconn_req;
+ bool connect_req;
+ bool aul_launching_req;
+ bool aul_pairing_req;
+ bool is_discovery_started;
+ bool is_le_discovery_started;
+ unsigned int op_status;
+ unsigned int ug_status;
+ unsigned int help_status;
+ unsigned int search_type;
+
+ /*************************
+ * Grobal variables
+ ************************ */
+ app_control_h service;
+ bundle *popup_bundle;
+ void *handle;
+ char phone_name[BT_GLOBALIZATION_STR_LENGTH];
+ int timeout_id;
+ int popup_timer;
+ bt_dev_t *pick_device;
+ void *connection;
+ bool is_popup_exist;
+
+ GDBusConnection *g_conn;
+ guint gdbus_owner_id;
+
+ /* End key callback */
+ bt_app_back_cb back_cb;
+
+ Ecore_Timer *timer;
+ Ecore_Timer *network_timer;
+ /*************************
+ * Profile View Data
+ ************************ */
+ bt_profile_view_data *profile_vd;
+ bt_confirm_req_t confirm_req;
+
+ void *dpm_handle;
+ int dpm_callback_id;
+} bt_ug_data;
+
+
+typedef enum _bt_cfg_item_reset_type {
+ BT_CFG_ITEM_UNRESETABLE = 0,
+ BT_CFG_ITEM_RESETABLE = 1,
+} bt_cfg_item_reset_type;
+
+typedef enum _bt_cfg_item_type {
+ BT_CFG_ITEM_NODE_ERROR = 0, /** Error */
+ BT_CFG_ITEM_UG_NODE = 1, /** general UG */
+ BT_CFG_ITEM_UI_NODE = 2, /** no UG, no app launching, just menu name */
+ BT_CFG_ITEM_TITLE_NODE = 3, /** view name */
+ BT_CFG_ITEM_APP_NODE = 4, /** app type - by launcher - read doc '4' */
+ BT_CFG_ITEM_VIEW_NODE = 5, /** view name - 2depth search */
+} bt_cfg_item_type;
+
+typedef struct {
+ char *key_name; /** key name */
+ char *icon_path; /** icon path */
+ char *ug_args; /** UG path or hyperlink */
+ int pos; /** position : 1st, 2st -- deprecated */
+ bt_cfg_item_reset_type reset_type; /** if ug supports Reset function */
+ int click_times; /** UG menu need to check */
+ bt_cfg_item_type item_type; /** 0:item 1:header title */
+ void *data;
+} bt_setting_cfg_node_t;
+
+void _bt_ug_destroy(void *data, void *result);
+
+#ifdef __cplusplus
+}
+#endif
+#endif /* __BT_MAIN_UG_H__ */
--- /dev/null
+/*
+* ug-bluetooth-efl
+*
+* Copyright 2012 Samsung Electronics Co., Ltd
+*
+* Contact: Hocheol Seo <hocheol.seo@samsung.com>
+* GirishAshok Joshi <girish.joshi@samsung.com>
+* DoHyun Pyun <dh79.pyun@samsung.com>
+*
+* Licensed under the Flora License, Version 1.1 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.tizenopensource.org/license
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*/
+
+#ifndef __BT_MAIN_VIEW_H__
+#define __BT_MAIN_VIEW_H__
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include <glib.h>
+
+#include "bt-type-define.h"
+#include "bt-main-ug.h"
+
+typedef struct _bt_radio_item bt_radio_item;
+
+struct _bt_radio_item {
+ Elm_Object_Item *it; /* Genlist Item pointer */
+ int index; /* Index*/
+ void *ugd;
+};
+
+int _bt_main_enable_bt(void *data);
+
+int _bt_main_disable_bt(void *data);
+
+void _bt_main_phone_name_changing_btn_cb(void *data, Evas_Object *obj,
+ void *event_info);
+
+void _bt_main_popup_del_cb(void *data, Evas_Object *obj, void *event_info);
+
+void _bt_back_btn_popup_del_cb(void *data, Evas_Object *obj, void *event_info);
+
+void _bt_main_create_information_popup(void *data, char *msg);
+
+int _bt_main_draw_list_view(bt_ug_data *ugd);
+
+int _bt_main_draw_onoff_view(bt_ug_data *ugd);
+
+int _bt_main_draw_visibility_view(bt_ug_data *ugd);
+
+void _bt_main_draw_paired_devices(bt_ug_data *ugd);
+
+Elm_Object_Item *_bt_main_add_paired_device_on_bond(bt_ug_data *ugd,
+ bt_dev_t *dev);
+
+Elm_Object_Item *_bt_main_add_paired_device(bt_ug_data *ugd,
+ bt_dev_t *dev);
+
+Elm_Object_Item *_bt_main_add_searched_device(bt_ug_data *ugd,
+ bt_dev_t *dev);
+
+Elm_Object_Item *_bt_main_add_no_device_found(bt_ug_data *ugd);
+
+void _bt_main_remove_paired_device(bt_ug_data *ugd, bt_dev_t *dev);
+
+void _bt_sort_paired_device_list(bt_ug_data *ugd, bt_dev_t *dev, int connected);
+
+void _bt_main_remove_searched_device(bt_ug_data *ugd, bt_dev_t *dev);
+
+void _bt_main_remove_all_paired_devices(bt_ug_data *ugd);
+
+void _bt_main_remove_all_searched_devices(bt_ug_data *ugd);
+
+bt_dev_t *_bt_main_get_dev_info(Eina_List *list,
+ Elm_Object_Item *genlist_item);
+
+bt_dev_t *_bt_main_get_dev_info_by_address(Eina_List *list,
+ char *address);
+
+gboolean _bt_main_is_connectable_device(bt_dev_t *dev);
+
+void _bt_main_connect_device(bt_ug_data *ugd, bt_dev_t *dev);
+
+void _bt_main_disconnect_device(bt_ug_data *ugd, bt_dev_t *dev);
+
+int _bt_main_request_connect_with_effect(bt_ug_data *ugd, Elm_Object_Item *seleted_item);
+
+bt_dev_t *_bt_main_create_searched_le_device_item(void *data);
+
+int _bt_main_request_pairing_with_effect(bt_ug_data *ugd,
+ Elm_Object_Item *seleted_item);
+
+void _bt_main_init_status(bt_ug_data *ugd, void *data);
+
+bt_dev_t *_bt_main_create_paired_device_item(void *data);
+
+bt_dev_t *_bt_main_create_searched_device_item(void *data);
+
+void _bt_main_get_paired_device(bt_ug_data *ugd);
+
+void _bt_main_scan_device(bt_ug_data *ugd);
+
+int _bt_main_service_request_cb(void *data);
+
+char *_bt_main_get_device_icon(int major_class, int minor_class,
+ int connected, gboolean highlighted);
+
+int _bt_main_check_and_update_device(Eina_List *list,
+ char *addr, char *name);
+
+void _bt_main_launch_syspopup(void *data, char *event_type,
+ char *title, char *type);
+
+gboolean _bt_main_is_matched_profile(unsigned int search_type,
+ unsigned int major_class,
+ unsigned int service_class,
+ app_control_h service,
+ unsigned int minor_class);
+
+void _bt_main_add_searched_title(bt_ug_data *ugd);
+
+void _bt_main_add_device_name_item(bt_ug_data *ugd, Evas_Object *genlist);
+
+void _bt_update_device_list(bt_ug_data *ugd);
+
+Evas_Object * _bt_main_create_scan_button(bt_ug_data *ugd);
+
+int _bt_idle_destroy_ug(void *data);
+
+#ifdef __cplusplus
+}
+#endif
+#endif /* __BT_MAIN_VIEW_H__ */
--- /dev/null
+/*
+* ug-bluetooth-efl
+*
+* Copyright 2012 Samsung Electronics Co., Ltd
+*
+* Contact: Hocheol Seo <hocheol.seo@samsung.com>
+* GirishAshok Joshi <girish.joshi@samsung.com>
+* DoHyun Pyun <dh79.pyun@samsung.com>
+*
+* Licensed under the Flora License, Version 1.1 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.tizenopensource.org/license
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*/
+
+#ifndef __BT_NET_CONNECTION_H
+#define __BT_NET_CONNECTION_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include <net_connection.h>
+#include <notification.h>
+#include "bt-type-define.h"
+
+typedef struct {
+ connection_profile_h profile_h;
+ unsigned char *address;
+} bt_net_profile_t;
+
+int _bt_create_net_connection(void **net_connection);
+
+int _bt_destroy_net_connection(void *net_connection);
+
+void _bt_set_profile_state_changed_cb(void *profile, void *user_data);
+
+void _bt_unset_profile_state_changed_cb(void *profile);
+
+void *_bt_get_registered_net_profile(void *connection, unsigned char *address);
+
+void *_bt_get_registered_net_profile_list(void *connection);
+
+void *_bt_get_connected_net_profile(void *connection, unsigned char *address);
+
+void _bt_free_net_profile_list(void *list);
+
+int _bt_connect_net_profile(void *connection, void *profile, void *user_data);
+
+int _bt_disconnect_net_profile(void *connection, void *profile, void *user_data);
+
+#ifdef __cplusplus
+}
+#endif
+#endif /* __BT_NET_CONNECTION_H */
--- /dev/null
+/*
+* ug-bluetooth-efl
+*
+* Copyright 2012 Samsung Electronics Co., Ltd
+*
+* Contact: Hocheol Seo <hocheol.seo@samsung.com>
+* GirishAshok Joshi <girish.joshi@samsung.com>
+* DoHyun Pyun <dh79.pyun@samsung.com>
+*
+* Licensed under the Flora License, Version 1.1 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.tizenopensource.org/license
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*/
+
+#ifndef __BT_PROFILE_VIEW_H__
+#define __BT_PROFILE_VIEW_H__
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include <Elementary.h>
+#include <Ecore_IMF.h>
+
+#include "bt-type-define.h"
+
+typedef struct _bt_profile_view_data bt_profile_view_data;
+
+struct _bt_profile_view_data {
+ Evas_Object *win_main;
+ Evas_Object *navi_bar;
+ Evas_Object *layout;
+ Evas_Object *genlist;
+ Evas_Object *save_btn;
+ Elm_Object_Item *navi_it;
+ Elm_Object_Item *name_item;
+ Elm_Object_Item *unpair_item;
+ Elm_Object_Item *title_item;
+ Elm_Object_Item *call_item;
+ Elm_Object_Item *media_item;
+ Elm_Object_Item *hid_item;
+ Elm_Object_Item *network_item;
+ Elm_Object_Item *rename_entry_item;
+ Elm_Genlist_Item_Class *name_itc;
+ Elm_Genlist_Item_Class *unpair_itc;
+ Elm_Genlist_Item_Class *title_itc;
+ Elm_Genlist_Item_Class *call_itc;
+ Elm_Genlist_Item_Class *media_itc;
+ Elm_Genlist_Item_Class *hid_itc;
+#ifndef TIZEN_BT_A2DP_SINK_ENABLE
+ Elm_Genlist_Item_Class *network_itc;
+#endif
+ Elm_Genlist_Item_Class *rename_entry_itc;
+ Ecore_IMF_Context *imf_context;
+};
+
+void _bt_profile_create_view(bt_dev_t *dev_info);
+
+void _bt_profile_delete_view(void *data);
+
+void _bt_profile_destroy_profile_view(void *data);
+
+#ifdef __cplusplus
+}
+#endif
+#endif /* __BT_PROFILE_VIEW_H__ */
--- /dev/null
+/*
+* ug-bluetooth-efl
+*
+* Copyright 2012 Samsung Electronics Co., Ltd
+*
+* Contact: Hocheol Seo <hocheol.seo@samsung.com>
+* GirishAshok Joshi <girish.joshi@samsung.com>
+* DoHyun Pyun <dh79.pyun@samsung.com>
+*
+* Licensed under the Flora License, Version 1.1 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.tizenopensource.org/license
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*/
+
+#ifndef __BT_TYPE_DEFINE_H__
+#define __BT_TYPE_DEFINE_H__
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+#include <glib.h>
+#include <bluetooth.h>
+
+/**************************************************
+* Constant Value
+***************************************************/
+
+#define BT_GLOBALIZATION_STR_LENGTH 256
+#define BT_MAX_CHARS_IN_FTP_TITLE 12
+#define BT_MAX_MENU_NAME_LEN 64
+#define BT_MAX_SERVICE_LIST 9
+#define DEVICE_NAME_MAX_CHARACTER 32
+#define DEVICE_NAME_MAX_LEN 100
+#define BT_ADDRESS_LENGTH_MAX 6
+#define BT_ADDRESS_STR_LEN 18
+#define BT_FILE_NAME_LEN_MAX 255
+#define BT_IMG_PATH_MAX 256
+#define BT_HTML_EXTRA_TAG_LENGTH 20
+#define BT_SERVICE_NAME_LENGTH 30
+#define BT_SERVICE_CONTENT_LENGTH 256
+#define BT_PHONE_NUM_LEN 50
+#define BT_EXTRA_STR_LEN 10
+#define BT_BUFFER_LEN 256
+#define BT_TIMEOUT_MAX 3600
+#define BT_MAX_TIMEOUT_ITEMS 5
+#define BT_GLOBALIZATION_TEXT_LENGTH \
+ (BT_GLOBALIZATION_STR_LENGTH+BT_EXTRA_STR_LEN)
+#define BT_DISCONNECT_TEXT_LENGTH \
+ ((2*BT_GLOBALIZATION_STR_LENGTH)+DEVICE_NAME_MAX_LEN)
+#define BT_SERVICE_TEXT_LENGTH \
+ (BT_SERVICE_CONTENT_LENGTH+BT_HTML_EXTRA_TAG_LENGTH)* \
+ BT_MAX_SERVICE_LIST
+#define BT_UG_SYSPOPUP_TIMEOUT_FOR_MULTIPLE_POPUPS 200
+
+
+/* Timeout Value */
+#define BT_SEARCH_SERVICE_TIMEOUT 5
+#define BT_SELECTED_TIMEOUT 5
+#define BT_DELETED_TIMEOUT 2
+#define BT_VISIBILITY_TIMEOUT 1000
+#define BT_HELP_TIMEOUT 3000
+
+/* Define Error type */
+#define BT_UG_FAIL -1
+#define BT_UG_ERROR_NONE 0
+
+#define BT_TWO_MINUTES 120
+#define BT_FIVE_MINUTES 300
+#define BT_ONE_HOUR 3600
+#define BT_ZERO 0
+#define BT_ALWAYS_ON -1
+
+#define BT_RESULT_STR_MAX 256
+
+#define BT_GENLIST_FONT_32_INC 32
+
+/**************************************************
+* String define
+***************************************************/
+
+#define BT_SET_FONT_SIZE \
+"<font_size=%d>%s</font_size>"
+
+#define BT_SET_FONT_SIZE_COLOR \
+"<font_size=%d><color=%s>%s</color></font_size>"
+
+/* GENLIST_TEXT_COLOR_LIST_SUB_TEXT_SETTINGS 42 137 194 255 */
+#define BT_GENLIST_SUBTEXT_COLOR "#2A89C2FF"
+#define BT_GENLIST_WHITE_SUBTEXT_COLOR "#FFFFFFFF"
+
+#define BT_RESULT_SUCCESS "success"
+#define BT_RESULT_FAIL "fail"
+
+#define BT_ADAPTER_ON "on"
+#define BT_ADAPTER_OFF "off"
+
+#define BT_DEFAULT_PHONE_NAME "Kiran"
+
+#define BT_SYSPOPUP_REQUEST_NAME "app-confirm-request"
+#define BT_SYSPOPUP_TWO_BUTTON_TYPE "twobtn"
+#define BT_SYSPOPUP_ONE_BUTTON_TYPE "onebtn"
+
+#define BT_FILE_VISIBLE_TIME "file/private/libug-setting-bluetooth-efl/visibility_time"
+
+/* AppControl Operation */
+#define BT_APPCONTROL_PICK_OPERATION "http://tizen.org/appcontrol/operation/bluetooth/pick"
+
+#define BT_APPCONTROL_VISIBILITY_OPERATION "http://tizen.org/appcontrol/operation/configure/bluetooth/visibility"
+
+#define BT_APPCONTROL_ONOFF_OPERATION "http://tizen.org/appcontrol/operation/configure/bluetooth/onoff"
+
+#define APP_CONTROL_OPERATION_SETTING_BT_ENABLE "http://tizen.org/appcontrol/operation/setting/bt_enable"
+
+#define APP_CONTROL_OPERATION_SETTING_BT_VISIBILITY "http://tizen.org/appcontrol/operation/setting/bt_visibility"
+
+#define BT_APPCONTROL_EDIT_OPERATION "http://tizen.org/appcontrol/operation/edit"
+
+#define BT_APPCONTROL_ONOFF_MIME "application/x-bluetooth-on-off"
+
+#define BT_APPCONTROL_VISIBILITY_MIME "application/x-bluetooth-visibility"
+
+#define BT_VCF_FOLDER_PATH "/tmp/"
+
+/* AppControl Output */
+#define BT_APPCONTROL_ADDRESS "http://tizen.org/appcontrol/data/bluetooth/address"
+#define BT_APPCONTROL_NAME "http://tizen.org/appcontrol/data/bluetooth/name"
+#define BT_APPCONTROL_RSSI "http://tizen.org/appcontrol/data/bluetooth/rssi"
+#define BT_APPCONTROL_IS_PAIRED "http://tizen.org/appcontrol/data/bluetooth/is_paired"
+#define BT_APPCONTROL_MAJOR_CLASS "http://tizen.org/appcontrol/data/bluetooth/major_class"
+#define BT_APPCONTROL_MINOR_CLASS "http://tizen.org/appcontrol/data/bluetooth/minor_class"
+#define BT_APPCONTROL_SERVICE_CLASS "http://tizen.org/appcontrol/data/bluetooth/service_class"
+#define BT_APPCONTROL_SERVICE_TYPE "http://tizen.org/appcontrol/data/bluetooth/service_type"
+#define BT_APPCONTROL_UUID_LIST "http://tizen.org/appcontrol/data/bluetooth/uuid_list"
+#define BT_APPCONTROL_VISIBILITY "http://tizen.org/appcontrol/data/bluetooth/visibility"
+
+/* Access information */
+#define BT_STR_ACCES_INFO_MAX_LEN 512
+#define BT_STR_ACC_ICON "Icon"
+
+/**************************************************
+* Enum type
+***************************************************/
+
+typedef enum {
+ BT_CONNECTION_REQ,
+ BT_PAIRING_REQ,
+ BT_NONE_REQ,
+} bt_confirm_req_t;
+
+/* Visible timout value (sec)*/
+typedef enum {
+ BT_2MIN = 120,
+ BT_5MIN = 300,
+ BT_1HOUR = 3600,
+ BT_NO_TIMEOUT = 0,
+} bt_visible_time_t;
+
+typedef enum {
+ BT_VISIBLE_OFF = 0,
+ BT_VISIBLE_ALWAYS = 1,
+ BT_VISIBLE_TIME_LIMITED = 2,
+} bt_visible_result_t;
+
+typedef enum {
+ BT_SEARCH_ALL_DEVICE = 0,
+ BT_SEARCH_PHONE,
+ BT_SEARCH_HEADSET,
+ BT_SEARCH_PC,
+ BT_SEARCH_HID,
+} bt_search_option_t;
+
+typedef enum {
+ BT_CONNECT_MENU = 1,
+ BT_SEND_MENU,
+ BT_RENAME_MENU,
+ BT_DELETE_MENU,
+ BT_SERVICE_LIST_MENU,
+} bt_menu_index_t;
+
+typedef enum {
+ BT_PAIRED_DEVICE_DISABLE,
+ BT_PAIRED_DEVICE_ENABLE,
+} bt_app_paired_device_status_t;
+
+typedef enum {
+ BT_STATUS_OFF = 0x0000,
+ BT_STATUS_ON = 0x0001,
+ BT_STATUS_BT_VISIBLE = 0x0002,
+ BT_STATUS_TRANSFER = 0x0004,
+} bt_status_t;
+
+typedef enum {
+ BT_POPUP_PAIRING_ERROR = 0,
+ BT_POPUP_GET_SERVICE_LIST_ERROR,
+ BT_POPUP_GETTING_SERVICE_LIST,
+ BT_POPUP_CONNECTION_ERROR,
+ BT_POPUP_DISCONNECT,
+ BT_POPUP_ENTER_DEVICE_NAME,
+ BT_POPUP_LOW_BATTERY,
+} bt_popup_t;
+
+typedef enum {
+ BT_LAUNCH_NORMAL = 0,
+ BT_LAUNCH_SEND_FILE,
+ BT_LAUNCH_PRINT_IMAGE,
+ BT_LAUNCH_CONNECT_HEADSET,
+ BT_LAUNCH_CONNECT_AUDIO_SOURCE,
+ BT_LAUNCH_USE_NFC,
+ BT_LAUNCH_PICK,
+ BT_LAUNCH_VISIBILITY,
+ BT_LAUNCH_SHARE_CONTACT,
+ BT_LAUNCH_HELP,
+ BT_LAUNCH_ONOFF,
+} bt_launch_mode_t;
+
+typedef enum {
+ BT_HELP_VIEW_NONE = 0x00,
+ BT_HELP_VIEW_1 = 0x01,
+ BT_HELP_VIEW_2 = 0x02,
+ BT_HELP_VIEW_3 = 0x03,
+ BT_HELP_VIEW_4 = 0x04,
+} bt_help_view_t;
+
+typedef enum {
+ BT_CONTROL_BAR_DISABLE,
+ BT_CONTROL_BAR_ENABLE,
+} bt_control_bar_status_t;
+
+typedef enum {
+ BT_NOCONTENT_HIDE,
+ BT_NOCONTNET_SHOW,
+} bt_nocontent_mode_t;
+
+typedef enum {
+ BT_STORE_BOOLEAN,
+ BT_STORE_INT,
+ BT_STORE_STRING,
+} bt_store_type_t;
+
+typedef enum {
+ BT_ACTIVATED = 0,
+ BT_ACTIVATING,
+ BT_DEACTIVATED,
+ BT_DEACTIVATING,
+ BT_SEARCHING,
+ BT_PAIRING,
+} bt_oper_t;
+
+typedef enum {
+ BT_UG_CREATE = 0,
+ BT_UG_START,
+ BT_UG_PAUSE,
+ BT_UG_RESUME,
+ BT_UG_DESTORY
+} bt_ug_status_t;
+
+
+typedef enum {
+ BT_IDLE = 0,
+ BT_DEV_PAIRING,
+ BT_DEV_UNPAIRING,
+ BT_CONNECTING,
+ BT_DISCONNECTING,
+ BT_SERVICE_SEARCHING
+} bt_dev_status_t;
+
+typedef enum {
+ BT_RUN_STATUS_NO_CHANGE = 0x00, /* No Change BT status*/
+ BT_RUN_STATUS_ACTIVATE = 0x01, /* BT Activate*/
+ BT_RUN_STATUS_DEACTIVATE = 0x02, /* BT Deactivate*/
+ BT_RUN_STATUS_SEARCH_TEST = 0x03, /* BT Search Test*/
+ BT_RUN_STATUS_TERMINATE = 0x04, /* BT Terminate*/
+ BT_RUN_STATUS_MAX = 0x05, /* Max val*/
+} bt_run_status_t;
+
+typedef enum {
+ BT_ON_CURRENTVIEW = 0x00, /* Run BT on current view*/
+ BT_ON_FOREGROUND = 0x01, /* Run BT on foreground*/
+ BT_ON_BACKGROUND = 0x02, /* Run BT on background*/
+} bt_on_t;
+
+typedef enum {
+ BT_HEADSET_CONNECTED = 0x01,
+ BT_STEREO_HEADSET_CONNECTED = 0x02,
+ BT_HID_CONNECTED = 0x04,
+ BT_NETWORK_CONNECTED = 0x08,
+ BT_NETWORK_SERVER_CONNECTED = 0x10,
+ BT_MUSIC_PLAYER_CONNECTED = 0x20,
+ BT_LE_HID_CONNECTED = 0x40,
+} bt_connected_mask_t;
+
+/**
+ * This enum indicates Device states.
+ */
+
+typedef enum {
+ BT_DEVICE_NONE, /** < None*/
+ BT_DEVICE_PAIRED, /** < Device Paired*/
+ BT_DEVICE_CONNECTED/** <Device Connected*/
+} bt_device_state_t;
+
+typedef enum {
+ BT_ITEM_NO_TYPE,
+ BT_ITEM_TOP,
+ BT_ITEM_CENTER,
+ BT_ITEM_BOTTOM,
+} bt_item_type_t;
+
+typedef enum {
+ BT_ITEM_NONE,
+ BT_ITEM_NAME,
+ BT_ITEM_UNPAIR,
+ BT_ITEM_CALL,
+ BT_ITEM_MEDIA,
+ BT_ITEM_HID,
+ BT_ITEM_NETWORK,
+} bt_profile_view_item_type_t;
+
+typedef enum {
+ BT_DEVICE_MAJOR_MASK_MISC = 0x00,
+ BT_DEVICE_MAJOR_MASK_COMPUTER = 0x0001,
+ BT_DEVICE_MAJOR_MASK_PHONE = 0x0002,
+ BT_DEVICE_MAJOR_MASK_LAN_ACCESS_POINT = 0x0004,
+ BT_DEVICE_MAJOR_MASK_AUDIO = 0x0008,
+ BT_DEVICE_MAJOR_MASK_PERIPHERAL = 0x0010,
+ BT_DEVICE_MAJOR_MASK_IMAGING = 0x0020,
+ BT_DEVICE_MAJOR_MASK_WEARABLE = 0x0040,
+ BT_DEVICE_MAJOR_MASK_TOY = 0x0080,
+ BT_DEVICE_MAJOR_MASK_HEALTH = 0x0100,
+} bt_device_major_mask_t;
+
+/*
+ * Major device class (part of Class of Device)
+ */
+typedef enum {
+ BT_MAJOR_DEV_CLS_MISC = 0x00,/**<miscellaneous */
+ BT_MAJOR_DEV_CLS_COMPUTER = 0x01, /**<Computer */
+ BT_MAJOR_DEV_CLS_PHONE = 0x02, /**<Phone */
+ BT_MAJOR_DEV_CLS_LAN_ACCESS_POINT = 0x03,/**<LAN access point */
+ BT_MAJOR_DEV_CLS_AUDIO = 0x04,/**<AudioDevice */
+ BT_MAJOR_DEV_CLS_PERIPHERAL = 0x05,/**<Peripheral Device */
+ BT_MAJOR_DEV_CLS_IMAGING = 0x06,/**<Imaging Device */
+ BT_MAJOR_DEV_CLS_WEARABLE = 0x07,/**<Wearable Device */
+ BT_MAJOR_DEV_CLS_TOY = 0x08,/**<Toy Device */
+ BT_MAJOR_DEV_CLS_HEALTH = 0x09,/**<Health Device */
+ BT_MAJOR_DEV_CLS_UNCLASSIFIED = 0x1F/**<Unclassified device */
+} bt_major_class_t;
+
+/*
+ * Minor device class (part of Class of Device)
+ */
+typedef enum {
+ BTAPP_MIN_DEV_CLS_UNCLASSIFIED = 0x00,
+ BTAPP_MIN_DEV_CLS_DESKTOP_WORKSTATION = 0x04,
+ BTAPP_MIN_DEV_CLS_SERVER_CLASS_COMPUTER = 0x08,
+ BTAPP_MIN_DEV_CLS_LAPTOP = 0x0C,
+ BTAPP_MIN_DEV_CLS_HANDHELD_PC_OR_PDA = 0x10,
+ BTAPP_MIN_DEV_CLS_PALM_SIZED_PC_OR_PDA = 0x14,
+ BTAPP_MIN_DEV_CLS_WEARABLE_COMPUTER = 0x18,
+
+ BTAPP_MIN_DEV_CLS_CELLULAR = 0x04,
+ BTAPP_MIN_DEV_CLS_CORDLESS = 0x08,
+ BTAPP_MIN_DEV_CLS_SMART_PHONE = 0x0C,
+ BTAPP_MIN_DEV_CLS_WIRED_MODEM_OR_VOICE_GATEWAY = 0x10,
+ BTAPP_MIN_DEV_CLS_COMMON_ISDN_ACCESS = 0x14,
+ BTAPP_MIN_DEV_CLS_SIM_CARD_READER = 0x18,
+ BTAPP_MID_DEV_CLS_PRINTER = 0x80,
+
+ BTAPP_MIN_DEV_CLS_FULLY_AVAILABLE = 0x04,
+ BTAPP_MIN_DEV_CLS_1_TO_17_PERCENT_UTILIZED = 0x20,
+ BTAPP_MIN_DEV_CLS_17_TO_33_PERCENT_UTILIZED = 0x40,
+ BTAPP_MIN_DEV_CLS_33_TO_50_PERCENT_UTILIZED = 0x60,
+ BTAPP_MIN_DEV_CLS_50_to_67_PERCENT_UTILIZED = 0x80,
+ BTAPP_MIN_DEV_CLS_67_TO_83_PERCENT_UTILIZED = 0xA0,
+ BTAPP_MIN_DEV_CLS_83_TO_99_PERCENT_UTILIZED = 0xC0,
+ BTAPP_MIN_DEV_CLS_NO_SERVICE_AVAILABLE = 0xE0,
+
+ BTAPP_MIN_DEV_CLS_HEADSET_PROFILE = 0x04,
+ BTAPP_MIN_DEV_CLS_HANDSFREE = 0x08,
+ BTAPP_MIN_DEV_CLS_MICROPHONE = 0x10,
+ BTAPP_MIN_DEV_CLS_LOUD_SPEAKER = 0x14,
+ BTAPP_MIN_DEV_CLS_HEADPHONES = 0x18,
+ BTAPP_MIN_DEV_CLS_PORTABLE_AUDIO = 0x1C,
+ BTAPP_MIN_DEV_CLS_CAR_AUDIO = 0x20,
+ BTAPP_MIN_DEV_CLS_SET_TOP_BOX = 0x24,
+ BTAPP_MIN_DEV_CLS_HIFI_AUDIO_DEVICE = 0x28,
+ BTAPP_MIN_DEV_CLS_VCR = 0x2C,
+ BTAPP_MIN_DEV_CLS_VIDEO_CAMERA = 0x30,
+ BTAPP_MIN_DEV_CLS_CAM_CORDER = 0x34,
+ BTAPP_MIN_DEV_CLS_VIDEO_MONITOR = 0x38,
+ BTAPP_MIN_DEV_CLS_VIDEO_DISPLAY_AND_LOUD_SPEAKER = 0x3C,
+ BTAPP_MIN_DEV_CLS_VIDEO_CONFERENCING = 0x40,
+ BTAPP_MIN_DEV_CLS_GAMING_OR_TOY = 0x48,
+
+ BTAPP_MIN_DEV_CLS_KEY_BOARD = 0x40,
+ BTAPP_MIN_DEV_CLS_POINTING_DEVICE = 0x80,
+ BTAPP_MIN_DEV_CLS_COMBO_KEYBOARD_OR_POINTING_DEVICE = 0xC0,
+
+ BTAPP_MIN_DEV_CLS_JOYSTICK = 0x04,
+ BTAPP_MIN_DEV_CLS_GAME_PAD = 0x08,
+ BTAPP_MIN_DEV_CLS_REMOTE_CONTROL = 0x0C,
+ BTAPP_MIN_DEV_CLS_SENSING_DEVICE = 0x10,
+ BTAPP_MIN_DEV_CLS_DIGITIZER_TABLET = 0x14,
+ BTAPP_MIN_DEV_CLS_CARD_READER = 0x18,
+
+ BTAPP_MIN_DEV_CLS_DISPLAY = 0x10,
+ BTAPP_MIN_DEV_CLS_CAMERA = 0x20,
+ BTAPP_MIN_DEV_CLS_SCANNER = 0x40,
+ BTAPP_MIN_DEV_CLS_PRINTER = 0x80,
+
+ BTAPP_MIN_DEV_CLS_WRIST_WATCH = 0x04,
+ BTAPP_MIN_DEV_CLS_PAGER = 0x08,
+ BTAPP_MIN_DEV_CLS_JACKET = 0x0C,
+ BTAPP_MIN_DEV_CLS_HELMET = 0x10,
+ BTAPP_MIN_DEV_CLS_GLASSES = 0x14,
+
+ BTAPP_MIN_DEV_CLS_ROBOT = 0x04,
+ BTAPP_MIN_DEV_CLS_VEHICLE = 0x08,
+ BTAPP_MIN_DEV_CLS_DOLL_OR_ACTION = 0x0C,
+ BTAPP_MIN_DEV_CLS_CONTROLLER = 0x10,
+ BTAPP_MIN_DEV_CLS_GAME = 0x14,
+
+ BTAPP_MIN_DEV_CLS_BLOOD_PRESSURE_MONITOR = 0x04,
+ BTAPP_MIN_DEV_CLS_THERMOMETER = 0x08,
+ BTAPP_MIN_DEV_CLS_WEIGHING_SCALE = 0x0C,
+ BTAPP_MIN_DEV_CLS_GLUCOSE_METER = 0x10,
+ BTAPP_MIN_DEV_CLS_PULSE_OXIMETER = 0x14,
+ BTAPP_MIN_DEV_CLS_HEART_OR_PULSE_RATE_MONITOR = 0x18,
+ BTAPP_MIN_DEV_CLS_MEDICAL_DATA_DISPLAY = 0x1C,
+} bt_minor_class_t;
+
+
+/*
+ * Service class part of class of device returned from device discovery
+ */
+
+/**
+ * This enum indicates Service calls part of device returned from device discovery.
+ */
+typedef enum {
+ BT_COD_SC_ALL = 0x000000, /**< ALL*/
+ BT_COD_SC_LIMITED_DISCOVERABLE_MODE = 0x002000,
+ BT_COD_SC_POSITIONING = 0x010000,/**< POSITIONING*/
+ BT_COD_SC_NETWORKING = 0x020000,/**< NETWORKING*/
+ BT_COD_SC_RENDERING = 0x040000,/**< RENDERING*/
+ BT_COD_SC_CAPTURING = 0x080000,/**< CAPTURING*/
+ BT_COD_SC_OBJECT_TRANSFER = 0x100000,/**< OBJECT_TRANSFER*/
+ BT_COD_SC_AUDIO = 0x200000,/**< AUDIO*/
+ BT_COD_SC_TELEPHONY = 0x400000,/**< TELEPHONY*/
+ BT_COD_SC_INFORMATION = 0x800000,/**< INFORMATION*/
+ BT_COD_SC_UNKNOWN = 0x1FF000/**< UNKNOWN */
+} bt_cod_service_class_t;
+
+typedef enum {
+ BT_SPP_PROFILE_UUID = ((unsigned short)0x1101), /**<SPP*/
+ BT_LAP_PROFILE_UUID = ((unsigned short)0x1102), /**<LAP*/
+ BT_DUN_PROFILE_UUID = ((unsigned short)0x1103), /**<DUN*/
+ BT_OBEX_IR_MC_SYNC_SERVICE_UUID = ((unsigned short)0x1104), /**<OBEX IR MC SYNC*/
+ BT_OBEX_OBJECT_PUSH_SERVICE_UUID = ((unsigned short)0x1105), /**<OPP*/
+ BT_OBEX_FILE_TRANSFER_UUID = ((unsigned short)0x1106), /**<FTP*/
+ BT_IRMC_SYNC_COMMAND_UUID = ((unsigned short)0x1107), /**<IRMC SYNC COMMAND*/
+ BT_HS_PROFILE_UUID = ((unsigned short)0x1108), /**<HS*/
+ BT_CTP_PROFILE_UUID = ((unsigned short)0x1109), /**<CTP*/
+ BT_AUDIO_SOURCE_UUID = ((unsigned short)0x110A), /**<AUDIO SOURCE*/
+ BT_AUDIO_SINK_UUID = ((unsigned short)0x110B), /**<AUDIO SINK*/
+ BT_AV_REMOTE_CONTROL_TARGET_UUID = ((unsigned short)0x110C), /**<AV REMOTE CONTROL
+ TARGET*/
+ BT_ADVANCED_AUDIO_PROFILE_UUID = ((unsigned short)0x110D), /**<A2DP*/
+ BT_AV_REMOTE_CONTROL_UUID = ((unsigned short)0x110E), /**<AV REMOTE CONTROL UUID*/
+ BT_AV_REMOTE_CONTROL_CONTROLLER_UUID = ((unsigned short)0x110F), /**<AV REMOTE CONTROLLER UUID*/
+ BT_ICP_PROFILE_UUID = ((unsigned short)0x1110), /**<ICP*/
+ BT_FAX_PROFILE_UUID = ((unsigned short)0x1111), /**<FAX*/
+ BT_HEADSET_AG_SERVICE_UUID = ((unsigned short)0x1112), /**<HS AG */
+ BT_PAN_PANU_PROFILE_UUID = ((unsigned short)0x1115), /**<PAN*/
+ BT_PAN_NAP_PROFILE_UUID = ((unsigned short)0x1116), /**<PAN*/
+ BT_PAN_GN_PROFILE_UUID = ((unsigned short)0x1117), /**<PAN*/
+ BT_DIRECT_PRINTING = ((unsigned short)0x1118),
+ BT_OBEX_BPPS_PROFILE_UUID = ((unsigned short)0x1118), /**<OBEX BPPS*/ /* Will be removed */
+ BT_REFERENCE_PRINTING = ((unsigned short)0x1119),
+ BT_OBEX_IMAGING_UUID = ((unsigned short)0x111A), /**<OBEX_IMAGING*/
+ BT_OBEX_IMAGING_RESPONDER_UUID = ((unsigned short)0x111B), /**<OBEX_IMAGING
+ RESPONDER*/
+ BT_IMAGING_AUTOMATIC_ARCHIVE_UUID = ((unsigned short)0x111C), /**<IMAGING AUTOMATIC ARCHIVE*/
+ BT_IMAGING_REFERENCED_OBJECTS_UUID = ((unsigned short)0x111D), /**<IMAGING REFERENCED OBJECTS*/
+ BT_HF_PROFILE_UUID = ((unsigned short)0x111E), /**<HF*/
+ BT_HFG_PROFILE_UUID = ((unsigned short)0x111F), /**<HFG*/
+ BT_DIRECT_PRINTING_REFERENCE_OBJ_UUID = ((unsigned short)0x1120),
+ /**<DIRECT PRINTING*/
+ BT_REFLECTED_UI = ((unsigned short)0x1121), /**<REFLECTED UI*/
+ BT_BASIC_PRINTING = ((unsigned short)0x1122), /**<BASIC PRINTING*/
+ BT_PRINTING_STATUS = ((unsigned short)0x1123), /**<PRINTING STATUS*/
+ BT_OBEX_PRINTING_STATUS_UUID = ((unsigned short)0x1123), /**<OBEX PRINTING STATUS*/ /* Will be removed */
+ BT_HID_PROFILE_UUID = ((unsigned short)0x1124), /**<HID*/
+ BT_HCR_PROFILE_UUID = ((unsigned short)0x1125), /**<HCRP*/
+ BT_HCR_PRINT_UUID = ((unsigned short)0x1126), /**<HCR PRINT*/
+ BT_HCR_SCAN_UUID = ((unsigned short)0x1127), /**<HCR SCAN*/
+ BT_SIM_ACCESS_PROFILE_UUID = ((unsigned short)0x112D), /**<SIM ACCESS PROFILE*/
+ BT_PBAP_PCE_UUID = ((unsigned short)0x112E), /**<PBAP - PCE*/
+ BT_PBAP_PSE_UUID = ((unsigned short)0x112F), /**<OBEX PBA*/
+ BT_OBEX_PBA_PROFILE_UUID = ((unsigned short)0x112F), /**<OBEX PBA*/ /* Will be removed */
+ BT_OBEX_PBAP_UUID = ((unsigned short)0x1130), /**<OBEX PBA*/
+ BT_HEADSET_HS_UUID = ((unsigned short)0x1131), /**<HEADSET HS*/
+ BT_MESSAGE_ACCESS_SERVER_UUID = ((unsigned short)0x1132),/**<MESSAGE ACCESS SERVER*/
+ BT_MESSAGE_NOTIFICATION_SERVER_UUID = ((unsigned short)0x1133),/**<MESSAGE NOTIFICATION SERVER*/
+ BT_MESSAGE_ACCESS_PROFILE_UUID = ((unsigned short)0x1134),/**<MESSAGE ACCESS PROFILE*/
+ BT_PNP_INFORMATION_UUID = ((unsigned short)0x1200), /**<PNP*/
+ BT_GENERIC_NETWORKING_UUID = ((unsigned short)0x1201), /**<GENERIC NETWORKING*/
+ BT_GENERIC_FILE_TRANSFER_UUID = ((unsigned short)0x1202),/**<GENERIC FILE TRANSFER*/
+ BT_GENERIC_AUDIO_UUID = ((unsigned short)0x1203), /**<GENERIC AUDIO*/
+ BT_GENERIC_TELEPHONY_UUID = ((unsigned short)0x1204), /**<GENERIC TELEPHONY*/
+ BT_VIDEO_SOURCE_UUID = ((unsigned short)0x1303), /**<VEDIO SOURCE*/
+ BT_VIDEO_SINK_UUID = ((unsigned short)0x1304), /**<VEDIO SINK*/
+ BT_VIDEO_DISTRIBUTION_UUID = ((unsigned short)0x1305), /**<VEDIO DISTRIBUTION*/
+ BT_HDP_UUID = ((unsigned short)0x1400), /**<HDP*/
+ BT_HDP_SOURCE_UUID = ((unsigned short)0x1401), /**<HDP SOURCE*/
+ BT_HDP_SINK_UUID = ((unsigned short)0x1402), /**<HDP SINK*/
+ BT_OBEX_SYNCML_TRANSFER_UUID = ((unsigned short)0x0000) /**<OBEX_SYNC*/ /* Will be removed */
+} bluetooth_service_uuid_list_t;
+
+
+/**************************************************
+* Struct define
+***************************************************/
+
+typedef struct {
+ unsigned char bd_addr[BT_ADDRESS_LENGTH_MAX];
+ char addr_str[BT_ADDRESS_STR_LEN + 1];
+ char name[DEVICE_NAME_MAX_LEN + 1];/**< Device Name */
+ bt_service_class_t service_list; /**< type of service */
+ bt_major_class_t major_class; /**< major class of the device */
+ bt_minor_class_t minor_class; /**< minor class of the device */
+ int authorized; /**< authorized ? */
+ bt_cod_service_class_t service_class; /**< service class of device */
+ int rssi; /**< Received signal strength indicator */
+ int is_connected;
+ int connected_mask;
+ int status;
+ int item_type;
+ int uuid_count;
+ char **uuids;
+ void *layout;
+ void *entry;
+ void *genlist_item;
+ void *icon;
+ void *net_profile;
+ gboolean is_bonded;
+ gboolean call_checked;
+ gboolean media_checked;
+ gboolean hid_checked;
+ gboolean network_checked;
+ gboolean highlighted;
+ gboolean is_le_device;
+ void *ugd;
+ int pan_connection_result;
+} bt_dev_t;
+
+typedef struct {
+ bt_popup_t type;
+ void *data;
+} bt_popup_data;
+
+typedef struct {
+ unsigned char bd_addr[BT_ADDRESS_LENGTH_MAX];
+} bt_address_t;
+
+/**************************************************
+* Callback type
+***************************************************/
+
+typedef void (*bt_app_back_cb)(void *, void *, void *);
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __BT_TYPE_DEFINE_H__ */
#include <aul.h>
#include <notification.h>
#include <dpm/restriction.h>
-
-// #ifndef TIZEN_PROFILE_TV
-#include <contacts.h>
#include <dirent.h>
#include <fcntl.h>
-// #endif
#include <stdlib.h>
#include <system_info.h>
+#include "bt-contacts.h"
#include "bt-main-ug.h"
#include "bt-util.h"
#include "bt-debug.h"
--- /dev/null
+/*
+* ug-bluetooth-efl
+*
+* Copyright 2012 Samsung Electronics Co., Ltd
+*
+* Contact: Hocheol Seo <hocheol.seo@samsung.com>
+* GirishAshok Joshi <girish.joshi@samsung.com>
+* DoHyun Pyun <dh79.pyun@samsung.com>
+*
+* Licensed under the Flora License, Version 1.1 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.tizenopensource.org/license
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*/
+
+#ifndef __BT_UTIL_H__
+#define __BT_UTIL_H__
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include <glib.h>
+#include <bundle.h>
+#include <Elementary.h>
+
+#include "bt-type-define.h"
+#include "bt-main-ug.h"
+
+/* Major Device Mask */
+#define MISCELLANEOUS_MAJOR_DEVICE_MASK (0x000000)
+#define COMPUTER_MAJOR_DEVICE_MASK (0x000100)
+#define PHONE_MAJOR_DEVICE_MASK (0x000200)
+#define LAN_MAJOR_DEVICE_MASK (0x000300)
+#define AV_MAJOR_DEVICE_MASK (0x000400)
+#define PERIPHERAL_MAJOR_DEVICE_MASK (0x000500)
+#define IMAGING_MAJOR_DEVICE_MASK (0x000600)
+#define WEARABLE_MAJOR_DEVICE_MASK (0x000700)
+#define TOY_MAJOR_DEVICE_MASK (0x000800)
+#define UNCLASSIFIED_MAJOR_DEVICE_MASK (0x001F00)
+#define OBJECT_TRANSFER_MAJOR_SERVICE_MASK (0x100000)
+
+gboolean _bt_util_update_class_of_device_by_service_list(bt_service_class_t service_list,
+ bt_major_class_t *major_class,
+ bt_minor_class_t *minor_class);
+
+void _bt_util_set_value(const char *req, unsigned int *search_type,
+ unsigned int *op_mode);
+
+gboolean _bt_util_store_get_value(const char *key,
+ bt_store_type_t store_type,
+ unsigned int size, void *value);
+
+void _bt_util_launch_no_event(void *data, void *obj, void *event);
+
+void _bt_util_set_list_disabled(Evas_Object *genlist, Eina_Bool disable);
+
+void _bt_util_change_discoverable_mode(bt_ug_data *ugd, gboolean discoverable);
+
+gboolean _bt_util_is_profile_connected(int connected_type, unsigned char *addr);
+
+int _bt_util_check_any_profile_connected(bt_dev_t *dev);
+
+void _bt_util_set_phone_name(void);
+
+int _bt_util_get_phone_name(char *phone_name, int size);
+
+char * _bt_util_get_timeout_string(int timeout);
+
+int _bt_util_get_timeout_value(int index);
+
+int _bt_util_get_timeout_index(int timeout);
+
+gboolean _bt_util_is_battery_low(void);
+
+void _bt_util_addr_type_to_addr_string(char *address,
+ unsigned char *addr);
+
+void _bt_util_addr_type_to_addr_result_string(char *address,
+ unsigned char *addr);
+
+void _bt_util_addr_type_to_addr_net_string(char *address,
+ unsigned char *addr);
+
+void _bt_util_addr_string_to_addr_type(unsigned char *addr,
+ const char *address);
+
+void _bt_util_convert_time_to_string(unsigned int remain_time,
+ char *text_display, char *text_read,
+ int size_display, int size_read);
+
+void _bt_util_free_device_uuids(bt_dev_t *item);
+
+void _bt_util_free_device_item(bt_dev_t *item);
+
+gboolean _bt_util_is_space_str(const char *name_str);
+
+void _bt_util_max_len_reached_cb(void *data, Evas_Object *obj,
+ void *event_info);
+
+Eina_Bool _bt_timer_change_discoverable_mode(void *data);
+
+char *_bt_util_vcard_create_from_id(int id, bool my_profile, const char *working_dir);
+
+char *_bt_util_vcard_create_from_id_list(const int *id_list, int count, const char *working_dir, volatile bool *cancel);
+
+int _bt_util_create_dpm_context(void *ug_data);
+
+void _bt_util_destroy_dpm_context(void *ug_data);
+
+gboolean _bt_util_is_dpm_restricted(void *handle);
+
+typedef enum {
+ _PROFILE_UNKNOWN = 0,
+ _PROFILE_MOBILE = 0x1,
+ _PROFILE_WEARABLE = 0x2,
+ _PROFILE_TV = 0x4,
+ _PROFILE_IVI = 0x8,
+ _PROFILE_IOT = 0x10,
+ _PROFILE_COMMON = 0x20,
+} tizen_profile_t;
+extern tizen_profile_t _get_tizen_profile();
+#define TIZEN_PROFILE_TV ((_get_tizen_profile()) == _PROFILE_TV)
+#define TIZEN_HID ((_get_tizen_profile()) & (_PROFILE_MOBILE | _PROFILE_COMMON))
+#define TIZEN_COMMON ((_get_tizen_profile()) == _PROFILE_COMMON)
+//#define TIZEN_FEATURE_BT_HOG ((_get_tizen_profile() == _PROFILE_MOBILE))
+#define TIZEN_FEATURE_BT_HOG (0)
+
+#ifdef __cplusplus
+}
+#endif
+#endif /* __BT_UTIL_H__ */
--- /dev/null
+/*
+* ug-bluetooth-efl
+*
+* Copyright 2012 Samsung Electronics Co., Ltd
+*
+* Contact: Hocheol Seo <hocheol.seo@samsung.com>
+* GirishAshok Joshi <girish.joshi@samsung.com>
+* DoHyun Pyun <dh79.pyun@samsung.com>
+*
+* Licensed under the Flora License, Version 1.1 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.tizenopensource.org/license
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*/
+
+#ifndef __BT_WEARABLE_H
+#define __BT_WEARABLE_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include "bt-type-define.h"
+
+#ifdef TIZEN_REDWOOD
+
+gboolean _bt_handle_wearable_device(bt_ug_data *ugd, bt_dev_t *dev);
+
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+#endif /* __BT_WEARABLE_H */
--- /dev/null
+/*
+* ug-bluetooth-efl
+*
+* Copyright 2012 Samsung Electronics Co., Ltd
+*
+* Contact: Hocheol Seo <hocheol.seo@samsung.com>
+* GirishAshok Joshi <girish.joshi@samsung.com>
+* DoHyun Pyun <dh79.pyun@samsung.com>
+*
+* Licensed under the Flora License, Version 1.1 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.tizenopensource.org/license
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*/
+
+#ifndef __BT_WIDGET_H__
+#define __BT_WIDGET_H__
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include "Elementary.h"
+#include <efl_extension.h>
+
+#include "bt-util.h"
+
+typedef enum {
+ BT_GENLIST_GROUP_SINGLE = 0,
+ BT_GENLIST_GROUP_TOP,
+ BT_GENLIST_GROUP_MIDDLE,
+ BT_GENLIST_GROUP_BOTTOM,
+} bt_genlist_group_style_t;
+
+typedef enum {
+ BT_GENLIST_1LINE = 0,
+ BT_GENLIST_2LINE_TOP,
+ BT_GENLIST_2LINE_BOTTOM,
+} bt_genlist_type_t;
+
+static inline char* get_genlist_style(bt_genlist_type_t type)
+{
+ if (type == BT_GENLIST_2LINE_BOTTOM)
+ return TIZEN_COMMON ? "2line" : "type2";
+ else if (type == BT_GENLIST_2LINE_TOP)
+ return TIZEN_COMMON ? "2line" : "type1";
+ else
+ return TIZEN_COMMON ? "1line" : "type1";
+}
+
+#define BT_GENLIST_1LINE_TEXT_STYLE get_genlist_style(BT_GENLIST_1LINE)
+#define BT_GENLIST_1LINE_TEXT_ICON_STYLE get_genlist_style(BT_GENLIST_1LINE)
+#define BT_GENLIST_2LINE_TOP_TEXT_STYLE get_genlist_style(BT_GENLIST_2LINE_TOP)
+#define BT_GENLIST_2LINE_TOP_TEXT_ICON_STYLE get_genlist_style(BT_GENLIST_2LINE_TOP)
+#define BT_GENLIST_2LINE_BOTTOM_TEXT_STYLE get_genlist_style(BT_GENLIST_2LINE_BOTTOM)
+#define BT_GENLIST_2LINE_BOTTOM_TEXT_ICON_STYLE get_genlist_style(BT_GENLIST_2LINE_BOTTOM)
+#define BT_GENLIST_MULTILINE_TEXT_STYLE "multiline"
+#define BT_GENLIST_GROUP_INDEX_STYLE "group_index"
+#define BT_GENLIST_FULL_CONTENT_STYLE "full"
+
+#define BT_POPUP_STR_MAX_LEN 512
+
+Evas_Object *_bt_create_naviframe(Evas_Object *parent);
+
+Evas_Object *_bt_create_icon(Evas_Object *parent, char *img);
+
+Evas_Object *_bt_create_progressbar(Evas_Object *parent,
+ const char *style);
+
+void _bt_update_genlist_item(Elm_Object_Item *item);
+
+Evas_Object *_bt_main_base_layout_create(Evas_Object *parent, void *data);
+
+void _bt_set_popup_text(void *data, Evas_Object *popup);
+
+Evas_Object *_bt_create_popup(void *data, void *cb, void *cb_data,
+ int timer_val);
+#ifdef __cplusplus
+}
+#endif
+#endif /* __BT_WIDGET_H__ */
+++ /dev/null
-/*
-* ug-bluetooth-efl
-*
-* Copyright 2012 Samsung Electronics Co., Ltd
-*
-* Contact: Hocheol Seo <hocheol.seo@samsung.com>
-* GirishAshok Joshi <girish.joshi@samsung.com>
-* DoHyun Pyun <dh79.pyun@samsung.com>
-*
-* Licensed under the Flora License, Version 1.1 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.tizenopensource.org/license
-*
-* Unless required by applicable law or agreed to in writing,
-* software distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-#ifndef __BT_CALLBACK_H
-#define __BT_CALLBACK_H
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include <bluetooth.h>
-
-void _bt_cb_state_changed(int result,
- bt_adapter_state_e adapter_state,
- void *user_data);
-
-void _bt_cb_discovery_state_changed(int result,
- bt_adapter_device_discovery_state_e discovery_state,
- bt_adapter_device_discovery_info_s *discovery_info,
- void *user_data);
-void _bt_cb_visibility_mode_changed
- (int result, bt_adapter_visibility_mode_e visibility_mode, void *user_data);
-
-void _bt_cb_gatt_connection_state_changed(int result, bool connected, char *remote_address, void *user_data);
-
-void _bt_cb_new_le_device_found(int result, bt_adapter_le_device_scan_result_info_s *info, void *data);
-
-void _bt_cb_bonding_created(int result, bt_device_info_s *device_info,
- void *user_data);
-
-void _bt_cb_bonding_destroyed(int result, char *remote_address,
- void *user_data);
-
-void _bt_cb_service_searched(int result, bt_device_sdp_info_s *sdp_info,
- void *user_data);
-
-void _bt_cb_hid_state_changed(int result, bool connected,
- const char *remote_address,
- void *user_data);
-
-void _bt_cb_audio_state_changed(int result, bool connected,
- const char *remote_address,
- bt_audio_profile_type_e type,
- void *user_data);
-#ifdef TIZEN_BT_A2DP_SINK_ENABLE
-void _bt_cb_a2dp_source_state_changed(int result, bool connected,
- const char *remote_address,
- bt_audio_profile_type_e type,
- void *user_data);
-#endif
-void _bt_cb_adapter_name_changed(char *device_name, void *user_data);
-
-void _bt_cb_nap_state_changed(bool connected, const char *remote_address,
- const char *interface_name, void *user_data);
-
-void _bt_cb_device_connection_state_changed(bool connected,
- bt_device_connection_info_s *conn_info,
- void *user_data);
-
-void _bt_retry_connection_cb(void *data,
- Evas_Object *obj, void *event_info);
-
-#ifdef __cplusplus
-}
-#endif
-#endif /* __BT_CALLBACK_H */
+++ /dev/null
-/*
-* ug-bluetooth-efl
-*
-* Copyright 2012 Samsung Electronics Co., Ltd
-*
-* Contact: Hocheol Seo <hocheol.seo@samsung.com>
-* GirishAshok Joshi <girish.joshi@samsung.com>
-* DoHyun Pyun <dh79.pyun@samsung.com>
-*
-* Licensed under the Flora License, Version 1.1 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.tizenopensource.org/license
-*
-* Unless required by applicable law or agreed to in writing,
-* software distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-#ifndef __BT_DEBUG_H
-#define __BT_DEBUG_H
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include <dlog.h>
-#include <stdio.h>
-#include <string.h>
-
-#undef LOG_TAG
-#define LOG_TAG "BLUETOOTH_SETTING_UG"
-
-#define BT_INFO(fmt, arg...) SLOGI(fmt, ##arg)
-
-#define BT_ERR(fmt, arg...) SLOGE(fmt, ##arg)
-
-#define BT_DBG(fmt, arg...) SLOGD(fmt, ##arg)
-
-
-#define DBG_SECURE(fmt, args...) SECURE_SLOGD(fmt, ##args)
-#define ERR_SECURE(fmt, args...) SECURE_SLOGE(fmt, ##args)
-#define INFO_SECURE(fmt, args...) SECURE_SLOGI(fmt, ##args)
-
-#define FUNCTION_TRACE
-#ifdef FUNCTION_TRACE
-#define FN_START BT_DBG("[ENTER FUNC]");
-#define FN_END BT_DBG("[EXIT FUNC]");
-#else
-#define FN_START
-#define FN_END
-#endif
-
-#define warn_if(expr, fmt, arg...) \
- do { \
- if (expr) { \
- BT_ERR("(%s) -> "fmt, #expr, ##arg); \
- } \
- } while (0);
-
-#define ret_if(expr) \
- do { \
- if (expr) { \
- BT_ERR("(%s) return", #expr); \
- return; \
- } \
- } while (0);
-
-#define retv_if(expr, val) \
- do { \
- if (expr) { \
- BT_ERR("(%s) return", #expr); \
- return (val); \
- } \
- } while (0);
-
-#define retm_if(expr, fmt, arg...) \
- do { \
- if (expr) { \
- BT_ERR(fmt, ##arg); \
- BT_ERR("(%s) return", #expr); \
- return; \
- } \
- } while (0);
-
-#define retvm_if(expr, val, fmt, arg...) \
- do { \
- if (expr) { \
- BT_ERR(fmt, ##arg); \
- BT_ERR("(%s) return", #expr); \
- return (val); \
- } \
- } while (0);
-
-#ifdef __cplusplus
-}
-#endif
-#endif /* __BT_DEBUG_H */
+++ /dev/null
-/*
-* ug-bluetooth-efl
-*
-* Copyright 2012 Samsung Electronics Co., Ltd
-*
-* Contact: Hocheol Seo <hocheol.seo@samsung.com>
-* GirishAshok Joshi <girish.joshi@samsung.com>
-* DoHyun Pyun <dh79.pyun@samsung.com>
-*
-* Licensed under the Flora License, Version 1.1 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.tizenopensource.org/license
-*
-* Unless required by applicable law or agreed to in writing,
-* software distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-#ifndef __BT_IPC_HANDLER_H__
-#define __BT_IPC_HANDLER_H__
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include "bt-type-define.h"
-
-/* ================= IPC interface define ================= */
-
-#define BT_UG_IPC_INTERFACE "User.Bluetooth.UG"
-#define BT_UG_IPC_RECIEVER "org.projectx.bluetooth"
-#define BT_UG_IPC_REQUEST_OBJECT "/org/projectx/connect_device"
-#define BT_UG_IPC_RESPONSE_OBJECT "/org/projectx/response_event"
-#define BT_UG_IPC_METHOD_CONNECT "Connect"
-#define BT_UG_IPC_METHOD_DISCONNECT "Disconnect"
-#define BT_UG_IPC_METHOD_RESPONSE "Response"
-#define BT_UG_IPC_METHOD_SEND "Send"
-#define BT_UG_IPC_EVENT_CONNECTED "Connected"
-#define BT_UG_IPC_EVENT_DISCONNECTED "Disconnected"
-
-#define BT_SYSPOPUP_IPC_RESPONSE_OBJECT "/org/projectx/bt_syspopup_res"
-#define BT_SYSPOPUP_INTERFACE "User.Bluetooth.syspopup"
-#define BT_SYSPOPUP_METHOD_RESPONSE "Response"
-
-#define BT_UG_IPC_MSG_LEN 256
-
-typedef enum {
- BT_AUDIO_DEVICE,
- BT_HEADSET_DEVICE,
- BT_STEREO_HEADSET_DEVICE,
- BT_MUSIC_PLAYER_DEVICE,
- BT_HID_DEVICE,
- BT_NETWORK_DEVICE,
- BT_DEVICE_MAX,
-} bt_device_type;
-
-typedef enum {
- BT_IPC_AG_CONNECT_RESPONSE,
- BT_IPC_AG_DISCONNECT_RESPONSE,
- BT_IPC_AV_CONNECT_RESPONSE,
- BT_IPC_AV_DISCONNECT_RESPONSE,
- BT_IPC_HID_CONNECT_RESPONSE,
- BT_IPC_HID_DISCONNECT_RESPONSE,
- BT_IPC_SENDING_RESPONSE,
- BT_IPC_BROWSING_RESPONSE,
- BT_IPC_PRINTING_RESPONSE,
- BT_IPC_PAIRING_RESPONSE,
-} bt_ipc_response_t;
-
-typedef enum {
- BT_IPC_SUCCESS,
- BT_IPC_FAIL,
-} bt_ipc_result_t;
-
-typedef struct {
- int param1; /* Connect type: Headset / Stereo Headset / HID device */
- unsigned char param2[BT_ADDRESS_LENGTH_MAX]; /* Device address */
-} __attribute__ ((packed)) bt_ug_ipc_param_t;
-
-typedef struct {
- unsigned char addr[BT_ADDRESS_LENGTH_MAX]; /* Device address */
- int file_cnt; /* file count */
- char *dev_name; /* Device name */
- char *type; /* sending type */
- char **filepath;
-} __attribute__ ((packed)) obex_ipc_param_t;
-
-/**
- * Structure to pass notification from BT application
- */
-typedef struct {
- int param1;
- int param2;
-} bt_ug_param_info_t;
-
-int _bt_ipc_register_popup_event_signal(bt_ug_data *ugd);
-
-int _bt_ipc_unregister_popup_event_signal(bt_ug_data *ugd);
-
-int _bt_ipc_send_message(char *method_type, bt_ug_ipc_param_t *param,
- void *data);
-
-int _bt_ipc_send_obex_message(obex_ipc_param_t *param, void *data);
-
-void _bt_ipc_update_connected_status(void *data, int connected_type,
- bool connected, int result,
- bt_address_t *addr);
-
-
-#ifdef __cplusplus
-}
-#endif
-#endif /* __BT_IPC_HANDLER_H__ */
+++ /dev/null
-/*
-* ug-bluetooth-efl
-*
-* Copyright 2012 Samsung Electronics Co., Ltd
-*
-* Contact: Hocheol Seo <hocheol.seo@samsung.com>
-* GirishAshok Joshi <girish.joshi@samsung.com>
-* DoHyun Pyun <dh79.pyun@samsung.com>
-*
-* Licensed under the Flora License, Version 1.1 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.tizenopensource.org/license
-*
-* Unless required by applicable law or agreed to in writing,
-* software distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-#ifndef __BT_MAIN_UG_H__
-#define __BT_MAIN_UG_H__
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include <stdbool.h>
-#include <libintl.h>
-#include <appcore-efl.h>
-#include <Elementary.h>
-#include <efl_extension.h>
-#include <ui-gadget-module.h>
-#include <dlog.h>
-#include <bundle.h>
-#include <gio/gio.h>
-
-#include "bt-type-define.h"
-#include "bt-profile-view.h"
-
-#ifndef UG_MODULE_API
-#define UG_MODULE_API __attribute__ ((visibility("default")))
-#endif
-
-#define PKGNAME "ug-setting-bluetooth-efl"
-
-#ifdef PREFIX
-#undef PREFIX
-#endif
-#define PREFIX "/usr/ug/"
-
-#define LOCALEDIR PREFIX"/res/locale"
-
-#define BT_EDJ_PATH PREFIX"/res/edje/ug-setting-bluetooth-efl"
-
-#define _EDJ(o) elm_layout_edje_get(o)
-#define BT_ICON_EDJ BT_EDJ_PATH"/bluetooth_images.edj"
-#define BT_GENLIST_EDJ BT_EDJ_PATH"/bluetooth_genlist.edj"
-#define BT_COMMON_MAIN_LAYOUT_EDJ BT_EDJ_PATH"/main_layout.edj"
-
-#ifdef _
-#undef _
-#endif
-#define _(s) dgettext(PKGNAME, s)
-
-#define dgettext_noop(s) (s)
-
-#ifdef N_
-#undef N_
-#endif
-#define N_(s) dgettext_noop(s)
-
-#define BT_UG_VCONF_PRINTSETTING "memory/bluetooth/printsetting"
-
-typedef struct {
- /* UI gadget data */
- ui_gadget_h ug;
- Evas_Object *base;
- Evas_Object *win_main;
- Elm_Theme *theme;
-
- bt_launch_mode_t bt_launch_mode;
-
- /* Request timer */
- Ecore_Timer *request_timer;
-
- /*************************
- * Main View objects
- ************************ */
- Evas_Object *navi_bar;
- Evas_Object *main_layout;
- Elm_Object_Item *navi_it;
- Elm_Object_Item *service_navi_it;
- /* Genlist */
- Evas_Object *main_genlist;
-
-
- /* Paired / Searched devices */
- Evas_Object *paired_dlggrp;
- Evas_Object *searched_dlggrp;
-
- /* Selected device's genlist items */
- Elm_Object_Item *paired_item;
- Elm_Object_Item *searched_item;
-
- /* Help object */
- Evas_Object *help_more_popup;
- Evas_Object *help_popup;
-
- /* Rename Device object*/
- Evas_Object *rename_popup;
- Evas_Object *rename_entry;
- Evas_Object *rename_button;
-
- /* Paired / Searched device list */
- Eina_List *paired_device;
- Eina_List *searched_device;
-
- /* Network profile list */
- Eina_List *net_profile_list;
-
- /* Button */
- Evas_Object *onoff_btn;
- Evas_Object *scan_btn;
-
- /* Genlist Item class */
- Elm_Genlist_Item_Class *device_name_itc;
- Elm_Genlist_Item_Class *rename_entry_itc;
- Elm_Genlist_Item_Class *rename_desc_itc;
- Elm_Genlist_Item_Class *paired_title_itc;
- Elm_Genlist_Item_Class *searched_title_itc;
- Elm_Genlist_Item_Class *searched_device_itc;
- Elm_Genlist_Item_Class *no_device_itc;
- Elm_Genlist_Item_Class *paired_device_itc;
- Elm_Genlist_Item_Class *on_itc;
- Elm_Genlist_Item_Class *off_itc;
-
- /* Genlist Items */
- Elm_Object_Item *onoff_item;
- Elm_Object_Item *device_name_item;
- Elm_Object_Item *paired_title;
- Elm_Object_Item *searched_title;
- Elm_Object_Item *no_device_item;
- Elm_Object_Item *visible_exp_item[BT_MAX_TIMEOUT_ITEMS + 1];
- Elm_Object_Item *empty_status_item;
- Elm_Object_Item *rename_entry_item;
-
- /*************************
- * Popup objects
- ************************ */
- Evas_Object *popup;
- bt_popup_data popup_data;
- Evas_Object *popup_menu;
-
- /*************************
- * Status Variables
- ************************ */
- bool waiting_service_response;
- bool disconn_req;
- bool connect_req;
- bool aul_launching_req;
- bool aul_pairing_req;
- bool is_discovery_started;
- bool is_le_discovery_started;
- unsigned int op_status;
- unsigned int ug_status;
- unsigned int help_status;
- unsigned int search_type;
-
- /*************************
- * Grobal variables
- ************************ */
- app_control_h service;
- bundle *popup_bundle;
- void *handle;
- char phone_name[BT_GLOBALIZATION_STR_LENGTH];
- int timeout_id;
- int popup_timer;
- bt_dev_t *pick_device;
- void *connection;
- bool is_popup_exist;
-
- GDBusConnection *g_conn;
- guint gdbus_owner_id;
-
- /* End key callback */
- bt_app_back_cb back_cb;
-
- Ecore_Timer *timer;
- Ecore_Timer *network_timer;
- /*************************
- * Profile View Data
- ************************ */
- bt_profile_view_data *profile_vd;
- bt_confirm_req_t confirm_req;
-
- void *dpm_handle;
- int dpm_callback_id;
-} bt_ug_data;
-
-
-typedef enum _bt_cfg_item_reset_type {
- BT_CFG_ITEM_UNRESETABLE = 0,
- BT_CFG_ITEM_RESETABLE = 1,
-} bt_cfg_item_reset_type;
-
-typedef enum _bt_cfg_item_type {
- BT_CFG_ITEM_NODE_ERROR = 0, /** Error */
- BT_CFG_ITEM_UG_NODE = 1, /** general UG */
- BT_CFG_ITEM_UI_NODE = 2, /** no UG, no app launching, just menu name */
- BT_CFG_ITEM_TITLE_NODE = 3, /** view name */
- BT_CFG_ITEM_APP_NODE = 4, /** app type - by launcher - read doc '4' */
- BT_CFG_ITEM_VIEW_NODE = 5, /** view name - 2depth search */
-} bt_cfg_item_type;
-
-typedef struct {
- char *key_name; /** key name */
- char *icon_path; /** icon path */
- char *ug_args; /** UG path or hyperlink */
- int pos; /** position : 1st, 2st -- deprecated */
- bt_cfg_item_reset_type reset_type; /** if ug supports Reset function */
- int click_times; /** UG menu need to check */
- bt_cfg_item_type item_type; /** 0:item 1:header title */
- void *data;
-} bt_setting_cfg_node_t;
-
-void _bt_ug_destroy(void *data, void *result);
-
-#ifdef __cplusplus
-}
-#endif
-#endif /* __BT_MAIN_UG_H__ */
+++ /dev/null
-/*
-* ug-bluetooth-efl
-*
-* Copyright 2012 Samsung Electronics Co., Ltd
-*
-* Contact: Hocheol Seo <hocheol.seo@samsung.com>
-* GirishAshok Joshi <girish.joshi@samsung.com>
-* DoHyun Pyun <dh79.pyun@samsung.com>
-*
-* Licensed under the Flora License, Version 1.1 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.tizenopensource.org/license
-*
-* Unless required by applicable law or agreed to in writing,
-* software distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-#ifndef __BT_MAIN_VIEW_H__
-#define __BT_MAIN_VIEW_H__
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include <glib.h>
-
-#include "bt-type-define.h"
-#include "bt-main-ug.h"
-
-typedef struct _bt_radio_item bt_radio_item;
-
-struct _bt_radio_item {
- Elm_Object_Item *it; /* Genlist Item pointer */
- int index; /* Index*/
- void *ugd;
-};
-
-int _bt_main_enable_bt(void *data);
-
-int _bt_main_disable_bt(void *data);
-
-void _bt_main_phone_name_changing_btn_cb(void *data, Evas_Object *obj,
- void *event_info);
-
-void _bt_main_popup_del_cb(void *data, Evas_Object *obj, void *event_info);
-
-void _bt_back_btn_popup_del_cb(void *data, Evas_Object *obj, void *event_info);
-
-void _bt_main_create_information_popup(void *data, char *msg);
-
-int _bt_main_draw_list_view(bt_ug_data *ugd);
-
-int _bt_main_draw_onoff_view(bt_ug_data *ugd);
-
-int _bt_main_draw_visibility_view(bt_ug_data *ugd);
-
-void _bt_main_draw_paired_devices(bt_ug_data *ugd);
-
-Elm_Object_Item *_bt_main_add_paired_device_on_bond(bt_ug_data *ugd,
- bt_dev_t *dev);
-
-Elm_Object_Item *_bt_main_add_paired_device(bt_ug_data *ugd,
- bt_dev_t *dev);
-
-Elm_Object_Item *_bt_main_add_searched_device(bt_ug_data *ugd,
- bt_dev_t *dev);
-
-Elm_Object_Item *_bt_main_add_no_device_found(bt_ug_data *ugd);
-
-void _bt_main_remove_paired_device(bt_ug_data *ugd, bt_dev_t *dev);
-
-void _bt_sort_paired_device_list(bt_ug_data *ugd, bt_dev_t *dev, int connected);
-
-void _bt_main_remove_searched_device(bt_ug_data *ugd, bt_dev_t *dev);
-
-void _bt_main_remove_all_paired_devices(bt_ug_data *ugd);
-
-void _bt_main_remove_all_searched_devices(bt_ug_data *ugd);
-
-bt_dev_t *_bt_main_get_dev_info(Eina_List *list,
- Elm_Object_Item *genlist_item);
-
-bt_dev_t *_bt_main_get_dev_info_by_address(Eina_List *list,
- char *address);
-
-gboolean _bt_main_is_connectable_device(bt_dev_t *dev);
-
-void _bt_main_connect_device(bt_ug_data *ugd, bt_dev_t *dev);
-
-void _bt_main_disconnect_device(bt_ug_data *ugd, bt_dev_t *dev);
-
-int _bt_main_request_connect_with_effect(bt_ug_data *ugd, Elm_Object_Item *seleted_item);
-
-bt_dev_t *_bt_main_create_searched_le_device_item(void *data);
-
-int _bt_main_request_pairing_with_effect(bt_ug_data *ugd,
- Elm_Object_Item *seleted_item);
-
-void _bt_main_init_status(bt_ug_data *ugd, void *data);
-
-bt_dev_t *_bt_main_create_paired_device_item(void *data);
-
-bt_dev_t *_bt_main_create_searched_device_item(void *data);
-
-void _bt_main_get_paired_device(bt_ug_data *ugd);
-
-void _bt_main_scan_device(bt_ug_data *ugd);
-
-int _bt_main_service_request_cb(void *data);
-
-char *_bt_main_get_device_icon(int major_class, int minor_class,
- int connected, gboolean highlighted);
-
-int _bt_main_check_and_update_device(Eina_List *list,
- char *addr, char *name);
-
-void _bt_main_launch_syspopup(void *data, char *event_type,
- char *title, char *type);
-
-gboolean _bt_main_is_matched_profile(unsigned int search_type,
- unsigned int major_class,
- unsigned int service_class,
- app_control_h service,
- unsigned int minor_class);
-
-void _bt_main_add_searched_title(bt_ug_data *ugd);
-
-void _bt_main_add_device_name_item(bt_ug_data *ugd, Evas_Object *genlist);
-
-void _bt_update_device_list(bt_ug_data *ugd);
-
-Evas_Object * _bt_main_create_scan_button(bt_ug_data *ugd);
-
-int _bt_idle_destroy_ug(void *data);
-
-#ifdef __cplusplus
-}
-#endif
-#endif /* __BT_MAIN_VIEW_H__ */
+++ /dev/null
-/*
-* ug-bluetooth-efl
-*
-* Copyright 2012 Samsung Electronics Co., Ltd
-*
-* Contact: Hocheol Seo <hocheol.seo@samsung.com>
-* GirishAshok Joshi <girish.joshi@samsung.com>
-* DoHyun Pyun <dh79.pyun@samsung.com>
-*
-* Licensed under the Flora License, Version 1.1 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.tizenopensource.org/license
-*
-* Unless required by applicable law or agreed to in writing,
-* software distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-#ifndef __BT_NET_CONNECTION_H
-#define __BT_NET_CONNECTION_H
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include <net_connection.h>
-#include <notification.h>
-#include "bt-type-define.h"
-
-typedef struct {
- connection_profile_h profile_h;
- unsigned char *address;
-} bt_net_profile_t;
-
-int _bt_create_net_connection(void **net_connection);
-
-int _bt_destroy_net_connection(void *net_connection);
-
-void _bt_set_profile_state_changed_cb(void *profile, void *user_data);
-
-void _bt_unset_profile_state_changed_cb(void *profile);
-
-void *_bt_get_registered_net_profile(void *connection, unsigned char *address);
-
-void *_bt_get_registered_net_profile_list(void *connection);
-
-void *_bt_get_connected_net_profile(void *connection, unsigned char *address);
-
-void _bt_free_net_profile_list(void *list);
-
-int _bt_connect_net_profile(void *connection, void *profile, void *user_data);
-
-int _bt_disconnect_net_profile(void *connection, void *profile, void *user_data);
-
-#ifdef __cplusplus
-}
-#endif
-#endif /* __BT_NET_CONNECTION_H */
+++ /dev/null
-/*
-* ug-bluetooth-efl
-*
-* Copyright 2012 Samsung Electronics Co., Ltd
-*
-* Contact: Hocheol Seo <hocheol.seo@samsung.com>
-* GirishAshok Joshi <girish.joshi@samsung.com>
-* DoHyun Pyun <dh79.pyun@samsung.com>
-*
-* Licensed under the Flora License, Version 1.1 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.tizenopensource.org/license
-*
-* Unless required by applicable law or agreed to in writing,
-* software distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-#ifndef __BT_PROFILE_VIEW_H__
-#define __BT_PROFILE_VIEW_H__
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include <Elementary.h>
-#include <Ecore_IMF.h>
-
-#include "bt-type-define.h"
-
-typedef struct _bt_profile_view_data bt_profile_view_data;
-
-struct _bt_profile_view_data {
- Evas_Object *win_main;
- Evas_Object *navi_bar;
- Evas_Object *layout;
- Evas_Object *genlist;
- Evas_Object *save_btn;
- Elm_Object_Item *navi_it;
- Elm_Object_Item *name_item;
- Elm_Object_Item *unpair_item;
- Elm_Object_Item *title_item;
- Elm_Object_Item *call_item;
- Elm_Object_Item *media_item;
- Elm_Object_Item *hid_item;
- Elm_Object_Item *network_item;
- Elm_Object_Item *rename_entry_item;
- Elm_Genlist_Item_Class *name_itc;
- Elm_Genlist_Item_Class *unpair_itc;
- Elm_Genlist_Item_Class *title_itc;
- Elm_Genlist_Item_Class *call_itc;
- Elm_Genlist_Item_Class *media_itc;
- Elm_Genlist_Item_Class *hid_itc;
-#ifndef TIZEN_BT_A2DP_SINK_ENABLE
- Elm_Genlist_Item_Class *network_itc;
-#endif
- Elm_Genlist_Item_Class *rename_entry_itc;
- Ecore_IMF_Context *imf_context;
-};
-
-void _bt_profile_create_view(bt_dev_t *dev_info);
-
-void _bt_profile_delete_view(void *data);
-
-void _bt_profile_destroy_profile_view(void *data);
-
-#ifdef __cplusplus
-}
-#endif
-#endif /* __BT_PROFILE_VIEW_H__ */
+++ /dev/null
-/*
-* ug-bluetooth-efl
-*
-* Copyright 2012 Samsung Electronics Co., Ltd
-*
-* Contact: Hocheol Seo <hocheol.seo@samsung.com>
-* GirishAshok Joshi <girish.joshi@samsung.com>
-* DoHyun Pyun <dh79.pyun@samsung.com>
-*
-* Licensed under the Flora License, Version 1.1 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.tizenopensource.org/license
-*
-* Unless required by applicable law or agreed to in writing,
-* software distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-#ifndef __BT_RESOURCE_H
-#define __BT_RESOURCE_H
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include "bt-main-ug.h"
-
-/* Define icons */
-#define BT_ICON_UNKNOWN "buluetooth_Device_type_icon_unknown.png"
-#define BT_ICON_PHONE "buluetooth_Device_type_icon_mobilephone.png"
-#define BT_ICON_HEADSET "buluetooth_Device_type_icon_headset.png"
-#define BT_ICON_HEADPHONE "buluetooth_Device_type_icon_headphone.png"
-#define BT_ICON_PC "buluetooth_Device_type_icon_computer.png"
-#define BT_ICON_KEYBOARD "buluetooth_Device_type_icon_keyboard.png"
-#define BT_ICON_MOUSE "buluetooth_Device_type_icon_mouse.png"
-#define BT_ICON_PRINTER "buluetooth_Device_type_icon_printer.png"
-#define BT_ICON_HEALTH "bt_device_Medical.png"
-#define BT_ICON_NETWORK "buluetooth_Device_type_icon_network_infrastructure.png"
-#define BT_ICON_GAMING "buluetooth_Device_type_icon_gaming.png"
-#define BT_ICON_DISPLAY "buluetooth_Device_type_icon_display.png"
-#define BT_ICON_CAMERA "buluetooth_Device_type_icon_camera.png"
-#define BT_ICON_WATCH "buluetooth_Device_type_icon_wrist.png"
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* __BT_RESOURCE_H */
+++ /dev/null
-/*
-* ug-bluetooth-efl
-*
-* Copyright 2012 Samsung Electronics Co., Ltd
-*
-* Contact: Hocheol Seo <hocheol.seo@samsung.com>
-* GirishAshok Joshi <girish.joshi@samsung.com>
-* DoHyun Pyun <dh79.pyun@samsung.com>
-*
-* Licensed under the Flora License, Version 1.1 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.tizenopensource.org/license
-*
-* Unless required by applicable law or agreed to in writing,
-* software distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-#ifndef __BT_STRING_DEFINE_H__
-#define __BT_STRING_DEFINE_H__
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/* Not included in excel file, but it exist in STMS */
-#define BT_STR_ALLOW_TO_DELETE_YOUR_FILE_Q \
- _("IDS_BT_BODY_ALLOW_PS_TO_DELETE_YOUR_FILE_Q")
-#define BT_STR_ALLOW_TO_GET_YOUR_FILE_Q \
- _("IDS_BT_BODY_ALLOW_PS_TO_GET_YOUR_FILE_Q")
-#define BT_STR_ALLOW_TO_PUT_A_FILE_IN_Q \
- _("IDS_BT_BODY_ALLOW_PS_TO_PUT_A_FILE_IN_Q")
-#define BT_STR_ALWAYS_ON _("IDS_BT_BODY_ALWAYS_ON")
-#define BT_STR_CANCELLED _("IDS_BT_BODY_CANCELLED")
-#define BT_STR_CONTACT_ALREADY_EXISTS \
- _("IDS_BT_BODY_CONTACT_ALREADY_EXISTS")
-#define BT_STR_FILE_SENT _("IDS_BT_BODY_FILE_SENT")
-#define BT_STR_HEADSET _("IDS_BT_BODY_HEADSET")
-#define BT_STR_INVALID_TIME_ENTER_NUMBER_BETWEEN_1_AND_60 \
- _("IDS_BT_BODY_INVALID_TIME_ENTER_NUMBER_BETWEEN_1_AND_60")
-#define BT_STR_MINUTE _("IDS_BT_BODY_MINUTE_LC")
-#define BT_STR_MY_PHONES_NAME _("IDS_BT_BODY_MY_PHONES_NAME")
-#define BT_STR_MY_PHONES_VISIBILITY _("IDS_BT_BODY_MY_PHONES_VISIBILITY")
-#define BT_STR_NO_MORE_CONNECTIONS_POSSIBLE \
- _("IDS_BT_BODY_NO_MORE_CONNECTIONS_POSSIBLE_VODA")
-#define BT_STR_PAIRED_DEVICES _("IDS_BT_BODY_PAIRED_DEVICES")
-#define BT_STR_PRINTER _("IDS_BT_BODY_PRINTER")
-#define BT_STR_RECEIVCED _("IDS_BT_BODY_RECEIVED")
-#define BT_STR_SERVICES _("IDS_BT_BODY_SERVICES")
-#define BT_STR_UPDATING _("IDS_BT_BODY_UPDATING_ING")
-#define BT_STR_BLUETOOTH_DEVICES _("IDS_BT_HEADER_BLUETOOTH_DEVICES")
-#define BT_STR_ENTER_PIN _("IDS_BT_HEADER_ENTERPIN")
-#define BT_STR_NEW_DEVICE _("IDS_BT_HEADER_NEW_DEVICE")
-#define BT_STR_PRINTING _("IDS_BT_HEADER_PRINTING")
-#define BT_STR_CONNECT_STEREO _("IDS_BT_OPT_CONNECT_STEREO")
-#define BT_STR_DOWNLOAD _("IDS_BT_OPT_DOWNLOAD")
-#define BT_STR_PC _("IDS_BT_OPT_PC")
-#define BT_STR_PRINT _("IDS_BT_OPT_PRINT")
-#define BT_STR_SEARCH_OPTIONS _("IDS_BT_OPT_SEARCH_OPTIONS")
-#define BT_STR_ALLOW_PS_TO_CONNECT_Q _("IDS_BT_POP_ALLOW_PS_TO_CONNECT_Q")
-#define BT_STR_BLUETOOTH_ERROR_TRY_AGAIN_Q \
- _("IDS_BT_POP_BLUETOOTH_ERROR_TRY_AGAIN_Q")
-#define BT_STR_BLUETOOTH_TIMEOUT_TRY_AGAIN_Q \
- _("IDS_BT_POP_BLUETOOTH_TIMEOUT_TRY_AGAIN_Q")
-#define BT_STR_CONFIRM_PASSKEY_IS_PS_TO_PAIR_WITH_PS \
- _("IDS_BT_POP_CONFIRM_PASSKEY_IS_PS_TO_PAIR_WITH_PS")
-#define BT_STR_UNABLE_TO_CONNECT_TRY_Q _("IDS_BT_POP_CONNECTAGAIN")
-#define BT_STR_DELETE_QUESTION _("IDS_BT_POP_DELETE_Q")
-#define BT_STR_DELETING _("IDS_BT_POP_DELETING_ING")
-#define BT_STR_DEVICE_DELETED _("IDS_BT_POP_DEVICEDELETED")
-#define BT_STR_DOWNLOADED _("IDS_BT_POP_DOWNLOADED")
-#define BT_STR_DOWNLOADING_FAILED _("IDS_BT_POP_DOWNLOADING_FAILED")
-#define BT_STR_DOWNLOADING _("IDS_BT_POP_DOWNLOADING_ING")
-#define BT_STR_ENTER_DEVICE_NAME _("IDS_ST_POP_ENTER_DEVICE_NAME")
-#define BT_STR_ENTER_NUMBER_BETWEEN_PD_AND_PD \
- _("IDS_BT_POP_ENTER_NUMBER_BETWEEN_PD_AND_PD")
-#define BT_STR_INCORRECT_PIN_TRY_AGAIN_Q \
- _("IDS_BT_POP_INCORRECT_PIN_TRY_AGAIN_Q")
-#define BT_STR_PD_FILES_RECEIVED _("IDS_BT_POP_PD_FILES_RECEIVED")
-#define BT_STR_SENDING_CANCELLED _("IDS_BT_POP_SENDINGCANCEL")
-#define BT_STR_UNABLE_TO_SEND _("IDS_BT_POP_SENDINGFAIL")
-#define BT_STR_SERIAL_CONNECT_WITH_PS_Q _("IDS_BT_POP_SERIAL_CONNECT_WITH_PS_Q")
-#define BT_STR_FILE_RECEIVED _("IDS_BT_POP_SUBFILERECEIVED")
-#define BT_STR_UNABLE_TO_GET_SERVICE_LIST \
- _("IDS_BT_POP_UNABLE_TO_GET_SERVICE_LIST")
-#define BT_STR_CONNECT _("IDS_BT_SK_CONNECT")
-#define BT_STR_DISCONNECT _("IDS_BT_SK_DISCONNECT")
-#define BT_STR_DISCONNECT_DEVICE _("IDS_BT_HEADER_DISCONNECT_DEVICE_ABB")
-#define BT_STR_DOWNLOAD_CANCELLED _("IDS_BR_POP_DOWNLOAD_CANCELLED")
-#define BT_STR_SEARCHING _("IDS_BT_BODY_SEARCHINGDEVICE")
-#define BT_STR_CONNECTED _("IDS_BT_SBODY_CONNECTED_M_STATUS")
-#define BT_STR_DEVICE_NAME _("IDS_BT_BODY_DEVICENAME")
-#define BT_STR_NO_DEVICE _("IDS_BT_BODY_NO_DEVICES")
-#define BT_STR_GETTING_SERVICE_LIST _("IDS_BT_POP_GETTINGSERVICELIST")
-#define BT_STR_HEADSET_INFO _("IDS_BT_BODY_INFOHEADSET")
-#define BT_STR_SELECT_DEVICES _("IDS_BT_HEADER_SELECT_DEVICE")
-
-#define BT_STR_CONNECT_TO_DEVICE \
- _("IDS_BT_BODY_CONNECT_TO_BLUETOOTH_DEVICE")
-
-#define BT_STR_UNABLE_TO_GET_THE_SERVICE_LIST \
- _("IDS_BT_POP_UNABLE_TO_GET_SERVICE_LIST")
-
-#define BT_STR_FLIGHT_MODE \
- _("IDS_BT_POP_UNABLE_TO_ACTIVATE_BLUETOOTH_WHEN_FLIGHT_MODE_IS_ON")
-
-#define BT_STR_CONNECTED_PHONE_AND_MEDIO_AUDIO \
- _("IDS_BT_BODY_CONNECTED_TO_PHONE_AND_MEDIA_AUDIO")
-
-#define BT_STR_CONNECTED_PHONE_AUDIO \
- _("IDS_BT_BODY_CONNECTED_TO_PHONE_AUDIO")
-
-#define BT_STR_CONNECTED_MEDIA_AUDIO \
- _("IDS_BT_BODY_CONNECTED_TO_MEDIA_AUDIO")
-
-#define BT_STR_CONNECTED_HID_DEVICE \
- _("IDS_BT_POP_CONNECTED_TO_HID_DEVICE")
-
-#define BT_STR_SCANNING \
- _("IDS_BT_BODY_SCANNING_FOR_DEVICES_ING")
-
-#define BT_STR_SCAN \
- _("IDS_BT_SK_SCAN")
-
-
-#define BT_STR_SVC_HEADSET _("IDS_BT_BODY_HEADSET")
-#define BT_STR_SVC_HEADSET_D _("IDS_BT_BODY_INFOHEADSET")
-
-#define BT_STR_SVC_HF _("IDS_BT_BODY_HANDSFREE")
-#define BT_STR_SVC_HF_D _("IDS_BT_BODY_INFOHANDSFREE")
-
-#define BT_STR_SVC_STEREO _("IDS_BT_OPT_STEREO_HEADSET")
-#define BT_STR_SVC_STEREO_D _("IDS_BT_BODY_INFOAVHEADSET")
-
-#define BT_STR_SVC_FT _("IDS_ST_BODY_TRANSFER_FILES")
-#define BT_STR_SVC_FT_D _("IDS_BT_BODY_INFOFILETRANSFER")
-
-#define BT_STR_SVC_OP _("IDS_BT_BODY_OBJECT_PUSH")
-#define BT_STR_SVC_OP_D _("IDS_BT_BODY_INFOOBJECTPUSH")
-
-#define BT_STR_SVC_BPP _("IDS_BT_BODY_BASIC_PRINTING")
-#define BT_STR_SVC_BPP_D _("IDS_BT_BODY_PRINTER_SERVICEINFO")
-
-#define BT_STR_SVC_DUN _("IDS_BT_BODY_DIAL_UP_NETWORKING")
-#define BT_STR_SVC_DUN_D _("IDS_BT_BODY_INFODIALUP")
-
-#define BT_STR_SVC_HID _("IDS_BT_POP_HID_DEVICE")
-#define BT_STR_SVC_HID_D _("IDS_BT_BODY_HID_HKEYBOARD_MOUSE_ETC")
-
-#define BT_STR_SVC_SPP _("IDS_BT_BODY_SERIAL_PORT")
-
-#define BT_STR_SVC_SPP_D \
- _("IDS_BT_BODY_THIS_IS_USED_TO_CONNECT_TO_OTHER_BLUETOOTH_DEVICES_VIA_A_VIRTUAL_SERIAL_PORT")
-
-#define BT_STR_CONNECTION_EXISTS \
- _("IDS_BT_POP_FAILED_TO_CONNECT_HEADSET_OTHER_DEVICE_REFUSED_CONNECTION")
-
-#define BT_STR_VISIBLE_TO_ALL_NEARBY _("IDS_ST_BODY_VISIBLE_TO_ALL_NEARBY_BLUETOOTH_DEVICES")
-#define BT_STR_ONLY_VISIBLE_TO_PAIRED_DEVICES _("IDS_BT_SBODY_ONLY_VISIBLE_TO_PAIRED_BLUETOOTH_DEVICES_ABB")
-#define BT_STR_VISIBLE _("IDS_BT_POP_VISIBILITY_TIMEOUT")
-#define BT_STR_TWO_MINUTES _("IDS_BT_BODY_2_MINUTES")
-#define BT_STR_UNPAIR _("IDS_BT_OPT_UNPAIR")
-#define BT_STR_CONNECTION_OPTIONS _("IDS_BT_BODY_CONNECTION_OPTIONS")
-#define BT_STR_CALL_AUDIO _("IDS_BT_BODY_CALL_AUDIO")
-#define BT_STR_MEDIA_AUDIO _("IDS_BT_BODY_MEDIA_AUDIO")
-#define BT_STR_PS_REMAINING _("IDS_BT_BODY_PS_REMAINING")
-#define BT_STR_PSD_PSD_REMAINING _("IDS_BT_MBODY_P1SD_CP2SD_REMAINING")
-#define BT_STR_TAP_TO_CONNECT _("IDS_BT_BODY_TAP_TO_CONNECT")
-#define BT_STR_TAP_TO_DISCONNECT _("IDS_BT_BODY_TAP_TO_DISCONNECT")
-#define BT_STR_AVAILABLE_DEVICES _("IDS_BT_BODY_AVAILABLE_DEVICES")
-#define BT_STR_FIVE_MINUTES _("IDS_BT_BODY_5_MINUTES")
-#define BT_STR_ONE_HOUR _("IDS_BT_BODY_1_HOUR")
-#define BT_STR_DISCONNECTING _("IDS_BT_BODY_DISCONNECTING")
-#define BT_STR_END_CONNECTION _("IDS_WMGR_POP_THIS_WILL_END_YOUR_CONNECTION_WITH_PS")
-#define BT_STR_DISCONNECT_P_FROM_THE_P_CONNECTION \
- _("IDS_BT_BODY_DISCONNECT_P2SS_FROM_THE_P1SS_CONNECTION_Q")
-#define BT_STR_DISCONNECT_Q _("IDS_BT_POP_DISCONNECT")
-#define BT_STR_DETAILS _("IDS_BT_BODY_DETAILS")
-#define BT_STR_INPUT_DEVICE _("IDS_BT_BODY_INPUT_DEVICE")
-#define BT_STR_NO_DEVICE_FOUND _("IDS_BT_BODY_NO_DEVICES_FOUND_ABB")
-#define BT_STR_PAIRED _("IDS_BT_BODY_PAIRED")
-#define BT_STR_SEARCHING_SERVICES _("IDS_BT_POP_SEARCHING_SERVICES_ING")
-#define BT_STR_RENAME_DEVICE_TITLE _("IDS_ST_HEADER_RENAME_DEVICE")
-#define BT_STR_RENAME_DEVICE_LABEL \
- _("IDS_BT_POP_DEVICE_NAMES_ARE_DISPLAYED_TO_DISTINGUISH_EACH_OF_THE_DEVICES_AVAILABLE_IN_THE_NEARBY_DEVICES_LIST_AND_VIA_BLUETOOTH_AND_OTHER_METHODS")
-#define BT_STR_BLUETOOTH_ERROR _("IDS_BT_HEADER_BLUETOOTH_ERROR_ABB")
-#define BT_STR_MAX_CHARACTER_REACHED _("IDS_CLOG_POP_MAXIMUM_NUMBER_OF_CHARACTERS_HPD_REACHED")
-#define BT_STR_NAME_IN_USE _("IDS_YSM_POP_THIS_NAME_IS_ALREADY_IN_USE_NENTER_ANOTHER_NAME")
-#define BT_STR_BLUETOOTH_TETHERING_CONNECTION_ERROR _("IDS_MOBILEAP_POP_UNABLE_TO_USE_BLUETOOTH_TETHERING_WHILE_CONNECTED_TO_WI_FI_NETWORK")
-
-/* We need to change this design ID */
-#define BT_STR_INTERNET_ACCESS _("IDS_BT_BODY_INTERNET_ACCESS_ABB2")
-
-/* System string */
-#define BT_STR_SEARCH _("IDS_BT_OPT_SEARCH")
-#define BT_STR_STOP _("IDS_BT_SK4_STOP")
-#define BT_STR_DONE _("IDS_BR_SK_DONE")
-#define BT_STR_OK _("IDS_BT_BUTTON_OK")
-#define BT_STR_CANCEL _("IDS_BR_SK_CANCEL")
-#define BT_STR_RENAME _("IDS_BT_OPT_RENAME")
-#define BT_STR_NO _("IDS_BR_SK_NO")
-#define BT_STR_BLUETOOTH _("IDS_BT_HEADER_BLUETOOTH")
-#define BT_STR_LOW_BATTERY _("IDS_ST_BODY_LEDOT_LOW_BATTERY")
-#define BT_STR_OFF _("IDS_BT_BUTTON_OFF")
-#define BT_STR_PHONE _("IDS_BT_OPT_PLAYVIAPHONE")
-
-#define BT_STR_RETRY _("IDS_ST_BUTTON_RETRY")
-#define BT_STR_INCORRECT_PIN_MESSAGE _("IDS_BT_POP_AN_INCORRECT_PIN_HAS_BEEN_ENTERED_TRY_AGAIN")
-#define BT_STR_UNABLE_TO_PAIR_WITH_PS _("IDS_BT_POP_UNABLE_TO_PAIR_WITH_PS")
-#define BT_STR_UNABLE_TO_CONNECT_TO_PS _("IDS_BT_POP_UNABLE_TO_CONNECT_TO_PS")
-
-#define BT_STR_CONNECTING _("IDS_BT_SBODY_CONNECTING_ING")
-#define BT_STR_BLUETOOTH_HELP _("IDS_BT_OPT_HELP")
-#define BT_STR_BLUETOOTH_CLOSE _("IDS_CAM_SK_CLOSE")
-#define BT_STR_MORE _("IDS_BT_BUTTON_MORE")
-
-/* Below needs to be added to PO files for use in bt-syspopup */
-#define BT_STR_RECEIVE_PS_FROM_PS_Q _("IDS_BT_POP_RECEIVE_PS_FROM_PS_Q?")
-#define BT_STR_OVERWRITE_FILE_Q _("IDS_BT_POP_PS_ALREADY_EXISTS_OVERWRITE_Q")
-#define BT_STR_PASSKEY_MATCH_Q _("IDS_BT_POP_MATCH_PASSKEYS_ON_PS_Q?")
-#define BT_STR_ENTER_PS_ON_PS_TO_PAIR \
- _("IDS_BT_BODY_ENTER_P1SS_ON_P2SS_TO_PAIR_THEN_TAP_RETURN_OR_ENTER")
-
-#define BT_STR_RECEIVE_FILE_FROM_PS_Q \
- _("IDS_BT_POP_RECEIVE_FILE_FROM_PS_Q")
-
-#define BT_STR_BLUETOOTH_PAIRING_REQUEST \
- _("IDS_BT_HEADER_BLUETOOTH_PAIRING_REQUEST")
-
-#define BT_STR_SHOW_PASSWORD \
- _("IDS_BT_BODY_SHOW_PASSWORD")
-
-/* Below needs to be added to PO files for use in bluetooth-share-ui */
-#define BT_STR_SHARING_FN _("IDS_BT_POP_SHARING_ING")
-
-/* Below needs to be added to PO files for use in bluetooth-share */
-#define BT_STR_FILE_EXSIST_MSG _("IDS_BT_POP_PS_ALREADY_EXISTS_OVERWRITE_Q")
-#define BT_STR_FILE_DELETE_AUTHORIZE_MSG _("Delete %s by %s ?")
-#define BT_STR_SENDING _("IDS_BT_POP_SENDING_ING")
-#define BT_STR_RECEIVING _("IDS_BT_POP_RECEIVING")
-#define BT_STR_MEMORY_FULL _("IDS_BT_POP_MEMORYFULL")
-
-/* Below needs to be added to PO files for use in beat-bluetooth */
-#define BT_STR_BLUETOOTH_ON _("IDS_BT_POP_ACTIVATED")
-#define BT_STR_BLUETOOTH_AVAILABLE _("IDS_BT_BODY_BLUETOOTH_AVAILABLE")
-
-/* String access info */
-#define BT_STR_DOUBLE_TAP_RENAME _("Double Tap to rename")
-#define BT_STR_DOUBLE_TAP_UNPAIR _("Double Tap to unpair device")
-#define BT_STR_RADIO_BUTTON _("IDS_TPLATFORM_BODY_RADIO_BUTTON_T_TTS")
-#define BT_STR_RADIO_SELECTED _("IDS_TPLATFORM_BODY_SELECTED_T_TTS")
-#define BT_STR_RADIO_UNSELECTED _("IDS_TPLATFORM_BODY_NOT_SELECTED_T_TTS")
-#define BT_STR_EXP_LIST _("Expandable list")
-#define BT_STR_EXP_LIST_OPEN _("IDS_ST_BODY_DOUBLE_TAP_TO_OPEN_THE_LIST_T_TTS")
-#define BT_STR_EXP_LIST_CLOSE _("IDS_ST_BODY_DOUBLE_TAP_TO_CLOSE_THE_LIST_T_TTS")
-#define BT_STR_ON_OFF_BUTTON _("IDS_TPLATFORM_BODY_ON_OFF_BUTTON_T_TTS")
-#define BT_STR_MORE_BUTTON _("More button")
-#define BT_STR_DOUBLE_TAP_CONNECT _("Double tap to connect")
-#define BT_STR_DOUBLE_TAP_CONNECT_D _("Double tap to connect device")
-#define BT_STR_DOUBLE_TAP_DISCONNECT_D _("Double tap to disconnect device")
-#define BT_STR_CAMERA _("IDS_TPLATFORM_BODY_CAMERA")
-#define BT_STR_DISPLAY _("Display device")
-#define BT_STR_KEYBOARD _("IDS_BT_OPT_KEYBOARD")
-#define BT_STR_MOUSE _("Mouse")
-#define BT_STR_GAMING_DEVICE _("IDS_ST_BODY_GAME_CONTROLLER")
-#define BT_STR_HEALTH_DEVICE _("Health device")
-#define BT_STR_COMPUTER _("IDS_BT_OPT_COMPUTER")
-#define BT_STR_LAN_ACCESS_POINT _("IDS_BT_OPT_MOBILE_AP")
-#define BT_STR_UNKNOWN _("IDS_BT_BODY_UNKNOWNDEVICE")
-#define BT_ACC_STR_GROUP_INDEX _("IDS_TPLATFORM_BODY_GROUP_INDEX")
-#define BT_STR_UNAVAILABLE _("IDS_ST_BODY_UNAVAILABLE")
-#define BT_STR_MINUTES _("IDS_BT_BODY_MINUTES")
-#define BT_STR_SECONDS _("IDS_ST_BODY_SECONDS")
-#define BT_STR_1_MINUTE _("IDS_BT_POP_1_MINUTE")
-#define BT_STR_1_SECOND _("IDS_ST_BODY_1_SECOND")
-
-/* Help */
-#define BT_STR_OPEN_PS_SETTINGS \
- _("IDS_HELP_BODY_OPEN_PS_SETTINGS")
-#define BT_STR_SET_UP_BLUETOOTH \
- _("IDS_HELP_MBODY_SET_UP_BLUETOOTH")
-#define BT_STR_SEND_PICTURES_VIA_BLUETOOTH \
- _("IDS_HELP_HEADER_SEND_PICTURES_VIA_BLUETOOTH")
-#define BT_STR_OPEN_PS_GALLERY \
- _("IDS_HELP_BODY_OPEN_PS_GALLERY")
-#define BT_STR_SELECT_THE_PICTURE_OR_ALBUM_YOU_WANT_TO_SEND \
- _("IDS_HELP_BODY_SELECT_THE_PICTURE_OR_ALBUM_YOU_WANT_TO_SEND")
-#define BT_STR_TAP_THE_SHARE_BUTTON_AND_SELECT_PS_BLUETOOTH \
- _("IDS_HELP_BODY_TAP_THE_SHARE_BUTTON_AND_SELECT_PS_BLUETOOTH")
-#define BT_STR_SELECT_THE_DEVICE_THAT_YOU_WANT_TO_SEND_THE_IMAGE_TO \
- _("IDS_HELP_BODY_SELECT_THE_DEVICE_THAT_YOU_WANT_TO_SEND_THE_IMAGE_TO")
-#define BT_STR_SEND_THE_PICTURE_YOU_CAN_TRACK_ITS_PROGRESS_IN_THE_NOTIFICATION_PANEL \
- _("IDS_HELP_BODY_SEND_THE_PICTURE_YOU_CAN_TRACK_ITS_PROGRESS_IN_THE_NOTIFICATION_PANEL")
-#define BT_STR_MAKE_THE_DEVICE_YOU_ARE_CONNECTING_TO_VISIBLE \
- _("IDS_HELP_BODY_MAKE_THE_DEVICE_YOU_ARE_CONNECTING_TO_VISIBLE")
-#define BT_STR_MAKE_THE_DEVICE_YOU_ARE_CONNECTING_TO_VISIBLE_THEN_TAP_SCAN \
- _("IDS_HELP_BODY_MAKE_THE_DEVICE_YOU_ARE_CONNECTING_TO_VISIBLE_THEN_TAP_SCAN")
-#define BT_STR_TOGGLE_THE_BUTTON_AND_TAP_SCAN_TO_TURN_ON_BLUETOOTH_AND_SCAN_FOR_DEVICES \
- _("IDS_HELP_BODY_TOGGLE_THE_BUTTON_AND_TAP_SCAN_TO_TURN_ON_BLUETOOTH_AND_SCAN_FOR_DEVICES")
-#define BT_STR_SELECT_PS_BLUETOOTH \
- _("IDS_HELP_BODY_SELECT_PS_BLUETOOTH")
-#define BT_STR_SELECT_THE_DEVICE_YOU_WANT_TO_CONNECT_TO_FROM_LIST \
- _("IDS_HELP_BODY_SELECT_THE_DEVICE_YOU_WANT_TO_CONNECT_TO_FROM_LIST")
-#define BT_STR_TAP_THE_DEVICE_YOU_WANT_TO_PAIR_WITH_OR_CONNECT_TO_IF_THE_DEVICE_IS_NOT_IN_THE_LIST_MAKE_SURE_IT_IS_VISIBLE_THEN_TAP_SCAN \
- _("IDS_HELP_BODY_TAP_THE_DEVICE_YOU_WANT_TO_PAIR_WITH_OR_CONNECT_TO_IF_THE_DEVICE_IS_NOT_IN_THE_LIST_MAKE_SURE_IT_IS_VISIBLE_THEN_TAP_SCAN")
-#define BT_STR_PAIRED_WITH_OR_CONNECTED_TO_SELECTED_DEVICE_SUCCESSFULLY_TAP_THE_CONFIGURATION_ICON_TO_CONFIGURE_THE_DEVICE_PROFILE \
- _("IDS_HELP_POP_PAIRED_WITH_OR_CONNECTED_TO_SELECTED_DEVICE_SUCCESSFULLY_TAP_THE_CONFIGURATION_ICON_TO_CONFIGURE_THE_DEVICE_PROFILE")
-#define BT_STR_YOUVE_COMPLETED_THE_STEP_BY_STEP_GUIDE_RETURN_TO_HELP \
- _("IDS_HELP_POP_YOUVE_COMPLETED_THE_STEP_BY_STEP_GUIDE_RETURN_TO_HELP")
-#define BT_STR_TUTORIAL_COMPLETED \
- _("IDS_HELP_POP_TUTORIAL_COMPLETE")
-#define BT_STR_SCANNING_DEVICES_ING \
- _("IDS_PB_MBODY_SCANNING_DEVICES_ING")
-#define BT_STR_INVALID_ACTION_TRY_AGAIN \
- _("IDS_HELP_POP_INVALID_ACTION_TRY_AGAIN")
-#define BT_STR_TURN_ON_BLUETOOTH_TO_SEE_A_LIST_OF_AVAILABLE_DEVICES \
- _("IDS_BT_BODY_TURN_ON_BLUETOOTH_TO_SEE_A_LIST_OF_DEVICES_YOU_CAN_PAIR_WITH_OR_HAVE_ALREADY_PAIRED_WITH")
-
-#define BT_STR_MY_DEVICE _("IDS_ST_HEADER_MY_DEVICE_NAME")
-
-#define BT_STR_TURNING_ON_BLUETOOTH _("IDS_BT_BODY_TURNING_ON_BLUETOOTH_ING")
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* __BT_STRING_DEFINE_H__ */
+++ /dev/null
-/*
-* ug-bluetooth-efl
-*
-* Copyright 2012 Samsung Electronics Co., Ltd
-*
-* Contact: Hocheol Seo <hocheol.seo@samsung.com>
-* GirishAshok Joshi <girish.joshi@samsung.com>
-* DoHyun Pyun <dh79.pyun@samsung.com>
-*
-* Licensed under the Flora License, Version 1.1 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.tizenopensource.org/license
-*
-* Unless required by applicable law or agreed to in writing,
-* software distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-#ifndef __BT_TYPE_DEFINE_H__
-#define __BT_TYPE_DEFINE_H__
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-
-#include <glib.h>
-#include <bluetooth.h>
-
-/**************************************************
-* Constant Value
-***************************************************/
-
-#define BT_GLOBALIZATION_STR_LENGTH 256
-#define BT_MAX_CHARS_IN_FTP_TITLE 12
-#define BT_MAX_MENU_NAME_LEN 64
-#define BT_MAX_SERVICE_LIST 9
-#define DEVICE_NAME_MAX_CHARACTER 32
-#define DEVICE_NAME_MAX_LEN 100
-#define BT_ADDRESS_LENGTH_MAX 6
-#define BT_ADDRESS_STR_LEN 18
-#define BT_FILE_NAME_LEN_MAX 255
-#define BT_IMG_PATH_MAX 256
-#define BT_HTML_EXTRA_TAG_LENGTH 20
-#define BT_SERVICE_NAME_LENGTH 30
-#define BT_SERVICE_CONTENT_LENGTH 256
-#define BT_PHONE_NUM_LEN 50
-#define BT_EXTRA_STR_LEN 10
-#define BT_BUFFER_LEN 256
-#define BT_TIMEOUT_MAX 3600
-#define BT_MAX_TIMEOUT_ITEMS 5
-#define BT_GLOBALIZATION_TEXT_LENGTH \
- (BT_GLOBALIZATION_STR_LENGTH+BT_EXTRA_STR_LEN)
-#define BT_DISCONNECT_TEXT_LENGTH \
- ((2*BT_GLOBALIZATION_STR_LENGTH)+DEVICE_NAME_MAX_LEN)
-#define BT_SERVICE_TEXT_LENGTH \
- (BT_SERVICE_CONTENT_LENGTH+BT_HTML_EXTRA_TAG_LENGTH)* \
- BT_MAX_SERVICE_LIST
-#define BT_UG_SYSPOPUP_TIMEOUT_FOR_MULTIPLE_POPUPS 200
-
-
-/* Timeout Value */
-#define BT_SEARCH_SERVICE_TIMEOUT 5
-#define BT_SELECTED_TIMEOUT 5
-#define BT_DELETED_TIMEOUT 2
-#define BT_VISIBILITY_TIMEOUT 1000
-#define BT_HELP_TIMEOUT 3000
-
-/* Define Error type */
-#define BT_UG_FAIL -1
-#define BT_UG_ERROR_NONE 0
-
-#define BT_TWO_MINUTES 120
-#define BT_FIVE_MINUTES 300
-#define BT_ONE_HOUR 3600
-#define BT_ZERO 0
-#define BT_ALWAYS_ON -1
-
-#define BT_RESULT_STR_MAX 256
-
-#define BT_GENLIST_FONT_32_INC 32
-
-/**************************************************
-* String define
-***************************************************/
-
-#define BT_SET_FONT_SIZE \
-"<font_size=%d>%s</font_size>"
-
-#define BT_SET_FONT_SIZE_COLOR \
-"<font_size=%d><color=%s>%s</color></font_size>"
-
-/* GENLIST_TEXT_COLOR_LIST_SUB_TEXT_SETTINGS 42 137 194 255 */
-#define BT_GENLIST_SUBTEXT_COLOR "#2A89C2FF"
-#define BT_GENLIST_WHITE_SUBTEXT_COLOR "#FFFFFFFF"
-
-#define BT_RESULT_SUCCESS "success"
-#define BT_RESULT_FAIL "fail"
-
-#define BT_ADAPTER_ON "on"
-#define BT_ADAPTER_OFF "off"
-
-#define BT_DEFAULT_PHONE_NAME "Kiran"
-
-#define BT_SYSPOPUP_REQUEST_NAME "app-confirm-request"
-#define BT_SYSPOPUP_TWO_BUTTON_TYPE "twobtn"
-#define BT_SYSPOPUP_ONE_BUTTON_TYPE "onebtn"
-
-#define BT_FILE_VISIBLE_TIME "file/private/libug-setting-bluetooth-efl/visibility_time"
-
-/* AppControl Operation */
-#define BT_APPCONTROL_PICK_OPERATION "http://tizen.org/appcontrol/operation/bluetooth/pick"
-
-#define BT_APPCONTROL_VISIBILITY_OPERATION "http://tizen.org/appcontrol/operation/configure/bluetooth/visibility"
-
-#define BT_APPCONTROL_ONOFF_OPERATION "http://tizen.org/appcontrol/operation/configure/bluetooth/onoff"
-
-#define APP_CONTROL_OPERATION_SETTING_BT_ENABLE "http://tizen.org/appcontrol/operation/setting/bt_enable"
-
-#define APP_CONTROL_OPERATION_SETTING_BT_VISIBILITY "http://tizen.org/appcontrol/operation/setting/bt_visibility"
-
-#define BT_APPCONTROL_EDIT_OPERATION "http://tizen.org/appcontrol/operation/edit"
-
-#define BT_APPCONTROL_ONOFF_MIME "application/x-bluetooth-on-off"
-
-#define BT_APPCONTROL_VISIBILITY_MIME "application/x-bluetooth-visibility"
-
-#define BT_VCF_FOLDER_PATH "/tmp/"
-
-/* AppControl Output */
-#define BT_APPCONTROL_ADDRESS "http://tizen.org/appcontrol/data/bluetooth/address"
-#define BT_APPCONTROL_NAME "http://tizen.org/appcontrol/data/bluetooth/name"
-#define BT_APPCONTROL_RSSI "http://tizen.org/appcontrol/data/bluetooth/rssi"
-#define BT_APPCONTROL_IS_PAIRED "http://tizen.org/appcontrol/data/bluetooth/is_paired"
-#define BT_APPCONTROL_MAJOR_CLASS "http://tizen.org/appcontrol/data/bluetooth/major_class"
-#define BT_APPCONTROL_MINOR_CLASS "http://tizen.org/appcontrol/data/bluetooth/minor_class"
-#define BT_APPCONTROL_SERVICE_CLASS "http://tizen.org/appcontrol/data/bluetooth/service_class"
-#define BT_APPCONTROL_SERVICE_TYPE "http://tizen.org/appcontrol/data/bluetooth/service_type"
-#define BT_APPCONTROL_UUID_LIST "http://tizen.org/appcontrol/data/bluetooth/uuid_list"
-#define BT_APPCONTROL_VISIBILITY "http://tizen.org/appcontrol/data/bluetooth/visibility"
-
-/* Access information */
-#define BT_STR_ACCES_INFO_MAX_LEN 512
-#define BT_STR_ACC_ICON "Icon"
-
-/**************************************************
-* Enum type
-***************************************************/
-
-typedef enum {
- BT_CONNECTION_REQ,
- BT_PAIRING_REQ,
- BT_NONE_REQ,
-} bt_confirm_req_t;
-
-/* Visible timout value (sec)*/
-typedef enum {
- BT_2MIN = 120,
- BT_5MIN = 300,
- BT_1HOUR = 3600,
- BT_NO_TIMEOUT = 0,
-} bt_visible_time_t;
-
-typedef enum {
- BT_VISIBLE_OFF = 0,
- BT_VISIBLE_ALWAYS = 1,
- BT_VISIBLE_TIME_LIMITED = 2,
-} bt_visible_result_t;
-
-typedef enum {
- BT_SEARCH_ALL_DEVICE = 0,
- BT_SEARCH_PHONE,
- BT_SEARCH_HEADSET,
- BT_SEARCH_PC,
- BT_SEARCH_HID,
-} bt_search_option_t;
-
-typedef enum {
- BT_CONNECT_MENU = 1,
- BT_SEND_MENU,
- BT_RENAME_MENU,
- BT_DELETE_MENU,
- BT_SERVICE_LIST_MENU,
-} bt_menu_index_t;
-
-typedef enum {
- BT_PAIRED_DEVICE_DISABLE,
- BT_PAIRED_DEVICE_ENABLE,
-} bt_app_paired_device_status_t;
-
-typedef enum {
- BT_STATUS_OFF = 0x0000,
- BT_STATUS_ON = 0x0001,
- BT_STATUS_BT_VISIBLE = 0x0002,
- BT_STATUS_TRANSFER = 0x0004,
-} bt_status_t;
-
-typedef enum {
- BT_POPUP_PAIRING_ERROR = 0,
- BT_POPUP_GET_SERVICE_LIST_ERROR,
- BT_POPUP_GETTING_SERVICE_LIST,
- BT_POPUP_CONNECTION_ERROR,
- BT_POPUP_DISCONNECT,
- BT_POPUP_ENTER_DEVICE_NAME,
- BT_POPUP_LOW_BATTERY,
-} bt_popup_t;
-
-typedef enum {
- BT_LAUNCH_NORMAL = 0,
- BT_LAUNCH_SEND_FILE,
- BT_LAUNCH_PRINT_IMAGE,
- BT_LAUNCH_CONNECT_HEADSET,
- BT_LAUNCH_CONNECT_AUDIO_SOURCE,
- BT_LAUNCH_USE_NFC,
- BT_LAUNCH_PICK,
- BT_LAUNCH_VISIBILITY,
- BT_LAUNCH_SHARE_CONTACT,
- BT_LAUNCH_HELP,
- BT_LAUNCH_ONOFF,
-} bt_launch_mode_t;
-
-typedef enum {
- BT_HELP_VIEW_NONE = 0x00,
- BT_HELP_VIEW_1 = 0x01,
- BT_HELP_VIEW_2 = 0x02,
- BT_HELP_VIEW_3 = 0x03,
- BT_HELP_VIEW_4 = 0x04,
-} bt_help_view_t;
-
-typedef enum {
- BT_CONTROL_BAR_DISABLE,
- BT_CONTROL_BAR_ENABLE,
-} bt_control_bar_status_t;
-
-typedef enum {
- BT_NOCONTENT_HIDE,
- BT_NOCONTNET_SHOW,
-} bt_nocontent_mode_t;
-
-typedef enum {
- BT_STORE_BOOLEAN,
- BT_STORE_INT,
- BT_STORE_STRING,
-} bt_store_type_t;
-
-typedef enum {
- BT_ACTIVATED = 0,
- BT_ACTIVATING,
- BT_DEACTIVATED,
- BT_DEACTIVATING,
- BT_SEARCHING,
- BT_PAIRING,
-} bt_oper_t;
-
-typedef enum {
- BT_UG_CREATE = 0,
- BT_UG_START,
- BT_UG_PAUSE,
- BT_UG_RESUME,
- BT_UG_DESTORY
-} bt_ug_status_t;
-
-
-typedef enum {
- BT_IDLE = 0,
- BT_DEV_PAIRING,
- BT_DEV_UNPAIRING,
- BT_CONNECTING,
- BT_DISCONNECTING,
- BT_SERVICE_SEARCHING
-} bt_dev_status_t;
-
-typedef enum {
- BT_RUN_STATUS_NO_CHANGE = 0x00, /* No Change BT status*/
- BT_RUN_STATUS_ACTIVATE = 0x01, /* BT Activate*/
- BT_RUN_STATUS_DEACTIVATE = 0x02, /* BT Deactivate*/
- BT_RUN_STATUS_SEARCH_TEST = 0x03, /* BT Search Test*/
- BT_RUN_STATUS_TERMINATE = 0x04, /* BT Terminate*/
- BT_RUN_STATUS_MAX = 0x05, /* Max val*/
-} bt_run_status_t;
-
-typedef enum {
- BT_ON_CURRENTVIEW = 0x00, /* Run BT on current view*/
- BT_ON_FOREGROUND = 0x01, /* Run BT on foreground*/
- BT_ON_BACKGROUND = 0x02, /* Run BT on background*/
-} bt_on_t;
-
-typedef enum {
- BT_HEADSET_CONNECTED = 0x01,
- BT_STEREO_HEADSET_CONNECTED = 0x02,
- BT_HID_CONNECTED = 0x04,
- BT_NETWORK_CONNECTED = 0x08,
- BT_NETWORK_SERVER_CONNECTED = 0x10,
- BT_MUSIC_PLAYER_CONNECTED = 0x20,
- BT_LE_HID_CONNECTED = 0x40,
-} bt_connected_mask_t;
-
-/**
- * This enum indicates Device states.
- */
-
-typedef enum {
- BT_DEVICE_NONE, /** < None*/
- BT_DEVICE_PAIRED, /** < Device Paired*/
- BT_DEVICE_CONNECTED/** <Device Connected*/
-} bt_device_state_t;
-
-typedef enum {
- BT_ITEM_NO_TYPE,
- BT_ITEM_TOP,
- BT_ITEM_CENTER,
- BT_ITEM_BOTTOM,
-} bt_item_type_t;
-
-typedef enum {
- BT_ITEM_NONE,
- BT_ITEM_NAME,
- BT_ITEM_UNPAIR,
- BT_ITEM_CALL,
- BT_ITEM_MEDIA,
- BT_ITEM_HID,
- BT_ITEM_NETWORK,
-} bt_profile_view_item_type_t;
-
-typedef enum {
- BT_DEVICE_MAJOR_MASK_MISC = 0x00,
- BT_DEVICE_MAJOR_MASK_COMPUTER = 0x0001,
- BT_DEVICE_MAJOR_MASK_PHONE = 0x0002,
- BT_DEVICE_MAJOR_MASK_LAN_ACCESS_POINT = 0x0004,
- BT_DEVICE_MAJOR_MASK_AUDIO = 0x0008,
- BT_DEVICE_MAJOR_MASK_PERIPHERAL = 0x0010,
- BT_DEVICE_MAJOR_MASK_IMAGING = 0x0020,
- BT_DEVICE_MAJOR_MASK_WEARABLE = 0x0040,
- BT_DEVICE_MAJOR_MASK_TOY = 0x0080,
- BT_DEVICE_MAJOR_MASK_HEALTH = 0x0100,
-} bt_device_major_mask_t;
-
-/*
- * Major device class (part of Class of Device)
- */
-typedef enum {
- BT_MAJOR_DEV_CLS_MISC = 0x00,/**<miscellaneous */
- BT_MAJOR_DEV_CLS_COMPUTER = 0x01, /**<Computer */
- BT_MAJOR_DEV_CLS_PHONE = 0x02, /**<Phone */
- BT_MAJOR_DEV_CLS_LAN_ACCESS_POINT = 0x03,/**<LAN access point */
- BT_MAJOR_DEV_CLS_AUDIO = 0x04,/**<AudioDevice */
- BT_MAJOR_DEV_CLS_PERIPHERAL = 0x05,/**<Peripheral Device */
- BT_MAJOR_DEV_CLS_IMAGING = 0x06,/**<Imaging Device */
- BT_MAJOR_DEV_CLS_WEARABLE = 0x07,/**<Wearable Device */
- BT_MAJOR_DEV_CLS_TOY = 0x08,/**<Toy Device */
- BT_MAJOR_DEV_CLS_HEALTH = 0x09,/**<Health Device */
- BT_MAJOR_DEV_CLS_UNCLASSIFIED = 0x1F/**<Unclassified device */
-} bt_major_class_t;
-
-/*
- * Minor device class (part of Class of Device)
- */
-typedef enum {
- BTAPP_MIN_DEV_CLS_UNCLASSIFIED = 0x00,
- BTAPP_MIN_DEV_CLS_DESKTOP_WORKSTATION = 0x04,
- BTAPP_MIN_DEV_CLS_SERVER_CLASS_COMPUTER = 0x08,
- BTAPP_MIN_DEV_CLS_LAPTOP = 0x0C,
- BTAPP_MIN_DEV_CLS_HANDHELD_PC_OR_PDA = 0x10,
- BTAPP_MIN_DEV_CLS_PALM_SIZED_PC_OR_PDA = 0x14,
- BTAPP_MIN_DEV_CLS_WEARABLE_COMPUTER = 0x18,
-
- BTAPP_MIN_DEV_CLS_CELLULAR = 0x04,
- BTAPP_MIN_DEV_CLS_CORDLESS = 0x08,
- BTAPP_MIN_DEV_CLS_SMART_PHONE = 0x0C,
- BTAPP_MIN_DEV_CLS_WIRED_MODEM_OR_VOICE_GATEWAY = 0x10,
- BTAPP_MIN_DEV_CLS_COMMON_ISDN_ACCESS = 0x14,
- BTAPP_MIN_DEV_CLS_SIM_CARD_READER = 0x18,
- BTAPP_MID_DEV_CLS_PRINTER = 0x80,
-
- BTAPP_MIN_DEV_CLS_FULLY_AVAILABLE = 0x04,
- BTAPP_MIN_DEV_CLS_1_TO_17_PERCENT_UTILIZED = 0x20,
- BTAPP_MIN_DEV_CLS_17_TO_33_PERCENT_UTILIZED = 0x40,
- BTAPP_MIN_DEV_CLS_33_TO_50_PERCENT_UTILIZED = 0x60,
- BTAPP_MIN_DEV_CLS_50_to_67_PERCENT_UTILIZED = 0x80,
- BTAPP_MIN_DEV_CLS_67_TO_83_PERCENT_UTILIZED = 0xA0,
- BTAPP_MIN_DEV_CLS_83_TO_99_PERCENT_UTILIZED = 0xC0,
- BTAPP_MIN_DEV_CLS_NO_SERVICE_AVAILABLE = 0xE0,
-
- BTAPP_MIN_DEV_CLS_HEADSET_PROFILE = 0x04,
- BTAPP_MIN_DEV_CLS_HANDSFREE = 0x08,
- BTAPP_MIN_DEV_CLS_MICROPHONE = 0x10,
- BTAPP_MIN_DEV_CLS_LOUD_SPEAKER = 0x14,
- BTAPP_MIN_DEV_CLS_HEADPHONES = 0x18,
- BTAPP_MIN_DEV_CLS_PORTABLE_AUDIO = 0x1C,
- BTAPP_MIN_DEV_CLS_CAR_AUDIO = 0x20,
- BTAPP_MIN_DEV_CLS_SET_TOP_BOX = 0x24,
- BTAPP_MIN_DEV_CLS_HIFI_AUDIO_DEVICE = 0x28,
- BTAPP_MIN_DEV_CLS_VCR = 0x2C,
- BTAPP_MIN_DEV_CLS_VIDEO_CAMERA = 0x30,
- BTAPP_MIN_DEV_CLS_CAM_CORDER = 0x34,
- BTAPP_MIN_DEV_CLS_VIDEO_MONITOR = 0x38,
- BTAPP_MIN_DEV_CLS_VIDEO_DISPLAY_AND_LOUD_SPEAKER = 0x3C,
- BTAPP_MIN_DEV_CLS_VIDEO_CONFERENCING = 0x40,
- BTAPP_MIN_DEV_CLS_GAMING_OR_TOY = 0x48,
-
- BTAPP_MIN_DEV_CLS_KEY_BOARD = 0x40,
- BTAPP_MIN_DEV_CLS_POINTING_DEVICE = 0x80,
- BTAPP_MIN_DEV_CLS_COMBO_KEYBOARD_OR_POINTING_DEVICE = 0xC0,
-
- BTAPP_MIN_DEV_CLS_JOYSTICK = 0x04,
- BTAPP_MIN_DEV_CLS_GAME_PAD = 0x08,
- BTAPP_MIN_DEV_CLS_REMOTE_CONTROL = 0x0C,
- BTAPP_MIN_DEV_CLS_SENSING_DEVICE = 0x10,
- BTAPP_MIN_DEV_CLS_DIGITIZER_TABLET = 0x14,
- BTAPP_MIN_DEV_CLS_CARD_READER = 0x18,
-
- BTAPP_MIN_DEV_CLS_DISPLAY = 0x10,
- BTAPP_MIN_DEV_CLS_CAMERA = 0x20,
- BTAPP_MIN_DEV_CLS_SCANNER = 0x40,
- BTAPP_MIN_DEV_CLS_PRINTER = 0x80,
-
- BTAPP_MIN_DEV_CLS_WRIST_WATCH = 0x04,
- BTAPP_MIN_DEV_CLS_PAGER = 0x08,
- BTAPP_MIN_DEV_CLS_JACKET = 0x0C,
- BTAPP_MIN_DEV_CLS_HELMET = 0x10,
- BTAPP_MIN_DEV_CLS_GLASSES = 0x14,
-
- BTAPP_MIN_DEV_CLS_ROBOT = 0x04,
- BTAPP_MIN_DEV_CLS_VEHICLE = 0x08,
- BTAPP_MIN_DEV_CLS_DOLL_OR_ACTION = 0x0C,
- BTAPP_MIN_DEV_CLS_CONTROLLER = 0x10,
- BTAPP_MIN_DEV_CLS_GAME = 0x14,
-
- BTAPP_MIN_DEV_CLS_BLOOD_PRESSURE_MONITOR = 0x04,
- BTAPP_MIN_DEV_CLS_THERMOMETER = 0x08,
- BTAPP_MIN_DEV_CLS_WEIGHING_SCALE = 0x0C,
- BTAPP_MIN_DEV_CLS_GLUCOSE_METER = 0x10,
- BTAPP_MIN_DEV_CLS_PULSE_OXIMETER = 0x14,
- BTAPP_MIN_DEV_CLS_HEART_OR_PULSE_RATE_MONITOR = 0x18,
- BTAPP_MIN_DEV_CLS_MEDICAL_DATA_DISPLAY = 0x1C,
-} bt_minor_class_t;
-
-
-/*
- * Service class part of class of device returned from device discovery
- */
-
-/**
- * This enum indicates Service calls part of device returned from device discovery.
- */
-typedef enum {
- BT_COD_SC_ALL = 0x000000, /**< ALL*/
- BT_COD_SC_LIMITED_DISCOVERABLE_MODE = 0x002000,
- BT_COD_SC_POSITIONING = 0x010000,/**< POSITIONING*/
- BT_COD_SC_NETWORKING = 0x020000,/**< NETWORKING*/
- BT_COD_SC_RENDERING = 0x040000,/**< RENDERING*/
- BT_COD_SC_CAPTURING = 0x080000,/**< CAPTURING*/
- BT_COD_SC_OBJECT_TRANSFER = 0x100000,/**< OBJECT_TRANSFER*/
- BT_COD_SC_AUDIO = 0x200000,/**< AUDIO*/
- BT_COD_SC_TELEPHONY = 0x400000,/**< TELEPHONY*/
- BT_COD_SC_INFORMATION = 0x800000,/**< INFORMATION*/
- BT_COD_SC_UNKNOWN = 0x1FF000/**< UNKNOWN */
-} bt_cod_service_class_t;
-
-typedef enum {
- BT_SPP_PROFILE_UUID = ((unsigned short)0x1101), /**<SPP*/
- BT_LAP_PROFILE_UUID = ((unsigned short)0x1102), /**<LAP*/
- BT_DUN_PROFILE_UUID = ((unsigned short)0x1103), /**<DUN*/
- BT_OBEX_IR_MC_SYNC_SERVICE_UUID = ((unsigned short)0x1104), /**<OBEX IR MC SYNC*/
- BT_OBEX_OBJECT_PUSH_SERVICE_UUID = ((unsigned short)0x1105), /**<OPP*/
- BT_OBEX_FILE_TRANSFER_UUID = ((unsigned short)0x1106), /**<FTP*/
- BT_IRMC_SYNC_COMMAND_UUID = ((unsigned short)0x1107), /**<IRMC SYNC COMMAND*/
- BT_HS_PROFILE_UUID = ((unsigned short)0x1108), /**<HS*/
- BT_CTP_PROFILE_UUID = ((unsigned short)0x1109), /**<CTP*/
- BT_AUDIO_SOURCE_UUID = ((unsigned short)0x110A), /**<AUDIO SOURCE*/
- BT_AUDIO_SINK_UUID = ((unsigned short)0x110B), /**<AUDIO SINK*/
- BT_AV_REMOTE_CONTROL_TARGET_UUID = ((unsigned short)0x110C), /**<AV REMOTE CONTROL
- TARGET*/
- BT_ADVANCED_AUDIO_PROFILE_UUID = ((unsigned short)0x110D), /**<A2DP*/
- BT_AV_REMOTE_CONTROL_UUID = ((unsigned short)0x110E), /**<AV REMOTE CONTROL UUID*/
- BT_AV_REMOTE_CONTROL_CONTROLLER_UUID = ((unsigned short)0x110F), /**<AV REMOTE CONTROLLER UUID*/
- BT_ICP_PROFILE_UUID = ((unsigned short)0x1110), /**<ICP*/
- BT_FAX_PROFILE_UUID = ((unsigned short)0x1111), /**<FAX*/
- BT_HEADSET_AG_SERVICE_UUID = ((unsigned short)0x1112), /**<HS AG */
- BT_PAN_PANU_PROFILE_UUID = ((unsigned short)0x1115), /**<PAN*/
- BT_PAN_NAP_PROFILE_UUID = ((unsigned short)0x1116), /**<PAN*/
- BT_PAN_GN_PROFILE_UUID = ((unsigned short)0x1117), /**<PAN*/
- BT_DIRECT_PRINTING = ((unsigned short)0x1118),
- BT_OBEX_BPPS_PROFILE_UUID = ((unsigned short)0x1118), /**<OBEX BPPS*/ /* Will be removed */
- BT_REFERENCE_PRINTING = ((unsigned short)0x1119),
- BT_OBEX_IMAGING_UUID = ((unsigned short)0x111A), /**<OBEX_IMAGING*/
- BT_OBEX_IMAGING_RESPONDER_UUID = ((unsigned short)0x111B), /**<OBEX_IMAGING
- RESPONDER*/
- BT_IMAGING_AUTOMATIC_ARCHIVE_UUID = ((unsigned short)0x111C), /**<IMAGING AUTOMATIC ARCHIVE*/
- BT_IMAGING_REFERENCED_OBJECTS_UUID = ((unsigned short)0x111D), /**<IMAGING REFERENCED OBJECTS*/
- BT_HF_PROFILE_UUID = ((unsigned short)0x111E), /**<HF*/
- BT_HFG_PROFILE_UUID = ((unsigned short)0x111F), /**<HFG*/
- BT_DIRECT_PRINTING_REFERENCE_OBJ_UUID = ((unsigned short)0x1120),
- /**<DIRECT PRINTING*/
- BT_REFLECTED_UI = ((unsigned short)0x1121), /**<REFLECTED UI*/
- BT_BASIC_PRINTING = ((unsigned short)0x1122), /**<BASIC PRINTING*/
- BT_PRINTING_STATUS = ((unsigned short)0x1123), /**<PRINTING STATUS*/
- BT_OBEX_PRINTING_STATUS_UUID = ((unsigned short)0x1123), /**<OBEX PRINTING STATUS*/ /* Will be removed */
- BT_HID_PROFILE_UUID = ((unsigned short)0x1124), /**<HID*/
- BT_HCR_PROFILE_UUID = ((unsigned short)0x1125), /**<HCRP*/
- BT_HCR_PRINT_UUID = ((unsigned short)0x1126), /**<HCR PRINT*/
- BT_HCR_SCAN_UUID = ((unsigned short)0x1127), /**<HCR SCAN*/
- BT_SIM_ACCESS_PROFILE_UUID = ((unsigned short)0x112D), /**<SIM ACCESS PROFILE*/
- BT_PBAP_PCE_UUID = ((unsigned short)0x112E), /**<PBAP - PCE*/
- BT_PBAP_PSE_UUID = ((unsigned short)0x112F), /**<OBEX PBA*/
- BT_OBEX_PBA_PROFILE_UUID = ((unsigned short)0x112F), /**<OBEX PBA*/ /* Will be removed */
- BT_OBEX_PBAP_UUID = ((unsigned short)0x1130), /**<OBEX PBA*/
- BT_HEADSET_HS_UUID = ((unsigned short)0x1131), /**<HEADSET HS*/
- BT_MESSAGE_ACCESS_SERVER_UUID = ((unsigned short)0x1132),/**<MESSAGE ACCESS SERVER*/
- BT_MESSAGE_NOTIFICATION_SERVER_UUID = ((unsigned short)0x1133),/**<MESSAGE NOTIFICATION SERVER*/
- BT_MESSAGE_ACCESS_PROFILE_UUID = ((unsigned short)0x1134),/**<MESSAGE ACCESS PROFILE*/
- BT_PNP_INFORMATION_UUID = ((unsigned short)0x1200), /**<PNP*/
- BT_GENERIC_NETWORKING_UUID = ((unsigned short)0x1201), /**<GENERIC NETWORKING*/
- BT_GENERIC_FILE_TRANSFER_UUID = ((unsigned short)0x1202),/**<GENERIC FILE TRANSFER*/
- BT_GENERIC_AUDIO_UUID = ((unsigned short)0x1203), /**<GENERIC AUDIO*/
- BT_GENERIC_TELEPHONY_UUID = ((unsigned short)0x1204), /**<GENERIC TELEPHONY*/
- BT_VIDEO_SOURCE_UUID = ((unsigned short)0x1303), /**<VEDIO SOURCE*/
- BT_VIDEO_SINK_UUID = ((unsigned short)0x1304), /**<VEDIO SINK*/
- BT_VIDEO_DISTRIBUTION_UUID = ((unsigned short)0x1305), /**<VEDIO DISTRIBUTION*/
- BT_HDP_UUID = ((unsigned short)0x1400), /**<HDP*/
- BT_HDP_SOURCE_UUID = ((unsigned short)0x1401), /**<HDP SOURCE*/
- BT_HDP_SINK_UUID = ((unsigned short)0x1402), /**<HDP SINK*/
- BT_OBEX_SYNCML_TRANSFER_UUID = ((unsigned short)0x0000) /**<OBEX_SYNC*/ /* Will be removed */
-} bluetooth_service_uuid_list_t;
-
-
-/**************************************************
-* Struct define
-***************************************************/
-
-typedef struct {
- unsigned char bd_addr[BT_ADDRESS_LENGTH_MAX];
- char addr_str[BT_ADDRESS_STR_LEN + 1];
- char name[DEVICE_NAME_MAX_LEN + 1];/**< Device Name */
- bt_service_class_t service_list; /**< type of service */
- bt_major_class_t major_class; /**< major class of the device */
- bt_minor_class_t minor_class; /**< minor class of the device */
- int authorized; /**< authorized ? */
- bt_cod_service_class_t service_class; /**< service class of device */
- int rssi; /**< Received signal strength indicator */
- int is_connected;
- int connected_mask;
- int status;
- int item_type;
- int uuid_count;
- char **uuids;
- void *layout;
- void *entry;
- void *genlist_item;
- void *icon;
- void *net_profile;
- gboolean is_bonded;
- gboolean call_checked;
- gboolean media_checked;
- gboolean hid_checked;
- gboolean network_checked;
- gboolean highlighted;
- gboolean is_le_device;
- void *ugd;
- int pan_connection_result;
-} bt_dev_t;
-
-typedef struct {
- bt_popup_t type;
- void *data;
-} bt_popup_data;
-
-typedef struct {
- unsigned char bd_addr[BT_ADDRESS_LENGTH_MAX];
-} bt_address_t;
-
-/**************************************************
-* Callback type
-***************************************************/
-
-typedef void (*bt_app_back_cb)(void *, void *, void *);
-
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* __BT_TYPE_DEFINE_H__ */
+++ /dev/null
-/*
-* ug-bluetooth-efl
-*
-* Copyright 2012 Samsung Electronics Co., Ltd
-*
-* Contact: Hocheol Seo <hocheol.seo@samsung.com>
-* GirishAshok Joshi <girish.joshi@samsung.com>
-* DoHyun Pyun <dh79.pyun@samsung.com>
-*
-* Licensed under the Flora License, Version 1.1 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.tizenopensource.org/license
-*
-* Unless required by applicable law or agreed to in writing,
-* software distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-#ifndef __BT_UTIL_H__
-#define __BT_UTIL_H__
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include <glib.h>
-#include <bundle.h>
-#include <Elementary.h>
-
-#include "bt-type-define.h"
-#include "bt-main-ug.h"
-
-/* Major Device Mask */
-#define MISCELLANEOUS_MAJOR_DEVICE_MASK (0x000000)
-#define COMPUTER_MAJOR_DEVICE_MASK (0x000100)
-#define PHONE_MAJOR_DEVICE_MASK (0x000200)
-#define LAN_MAJOR_DEVICE_MASK (0x000300)
-#define AV_MAJOR_DEVICE_MASK (0x000400)
-#define PERIPHERAL_MAJOR_DEVICE_MASK (0x000500)
-#define IMAGING_MAJOR_DEVICE_MASK (0x000600)
-#define WEARABLE_MAJOR_DEVICE_MASK (0x000700)
-#define TOY_MAJOR_DEVICE_MASK (0x000800)
-#define UNCLASSIFIED_MAJOR_DEVICE_MASK (0x001F00)
-#define OBJECT_TRANSFER_MAJOR_SERVICE_MASK (0x100000)
-
-gboolean _bt_util_update_class_of_device_by_service_list(bt_service_class_t service_list,
- bt_major_class_t *major_class,
- bt_minor_class_t *minor_class);
-
-void _bt_util_set_value(const char *req, unsigned int *search_type,
- unsigned int *op_mode);
-
-gboolean _bt_util_store_get_value(const char *key,
- bt_store_type_t store_type,
- unsigned int size, void *value);
-
-void _bt_util_launch_no_event(void *data, void *obj, void *event);
-
-void _bt_util_set_list_disabled(Evas_Object *genlist, Eina_Bool disable);
-
-void _bt_util_change_discoverable_mode(bt_ug_data *ugd, gboolean discoverable);
-
-gboolean _bt_util_is_profile_connected(int connected_type, unsigned char *addr);
-
-int _bt_util_check_any_profile_connected(bt_dev_t *dev);
-
-void _bt_util_set_phone_name(void);
-
-int _bt_util_get_phone_name(char *phone_name, int size);
-
-char * _bt_util_get_timeout_string(int timeout);
-
-int _bt_util_get_timeout_value(int index);
-
-int _bt_util_get_timeout_index(int timeout);
-
-gboolean _bt_util_is_battery_low(void);
-
-void _bt_util_addr_type_to_addr_string(char *address,
- unsigned char *addr);
-
-void _bt_util_addr_type_to_addr_result_string(char *address,
- unsigned char *addr);
-
-void _bt_util_addr_type_to_addr_net_string(char *address,
- unsigned char *addr);
-
-void _bt_util_addr_string_to_addr_type(unsigned char *addr,
- const char *address);
-
-void _bt_util_convert_time_to_string(unsigned int remain_time,
- char *text_display, char *text_read,
- int size_display, int size_read);
-
-void _bt_util_free_device_uuids(bt_dev_t *item);
-
-void _bt_util_free_device_item(bt_dev_t *item);
-
-gboolean _bt_util_is_space_str(const char *name_str);
-
-void _bt_util_max_len_reached_cb(void *data, Evas_Object *obj,
- void *event_info);
-
-Eina_Bool _bt_timer_change_discoverable_mode(void *data);
-
-char *_bt_util_vcard_create_from_id(int id, bool my_profile, const char *working_dir);
-
-char *_bt_util_vcard_create_from_id_list(const int *id_list, int count, const char *working_dir, volatile bool *cancel);
-
-int _bt_util_create_dpm_context(void *ug_data);
-
-void _bt_util_destroy_dpm_context(void *ug_data);
-
-gboolean _bt_util_is_dpm_restricted(void *handle);
-
-typedef enum {
- _PROFILE_UNKNOWN = 0,
- _PROFILE_MOBILE = 0x1,
- _PROFILE_WEARABLE = 0x2,
- _PROFILE_TV = 0x4,
- _PROFILE_IVI = 0x8,
- _PROFILE_IOT = 0x10,
- _PROFILE_COMMON = 0x20,
-} tizen_profile_t;
-extern tizen_profile_t _get_tizen_profile();
-#define TIZEN_PROFILE_TV ((_get_tizen_profile()) == _PROFILE_TV)
-#define TIZEN_HID ((_get_tizen_profile()) & (_PROFILE_MOBILE | _PROFILE_COMMON))
-#define TIZEN_COMMON ((_get_tizen_profile()) == _PROFILE_COMMON)
-
-#ifdef TIZEN_FEATURE_DISABLE_BT_HOG
-#define TIZEN_FEATURE_BT_HOG (0)
-#else
-#define TIZEN_FEATURE_BT_HOG ((_get_tizen_profile() == _PROFILE_MOBILE))
-#endif
-
-#ifdef __cplusplus
-}
-#endif
-#endif /* __BT_UTIL_H__ */
+++ /dev/null
-/*
-* ug-bluetooth-efl
-*
-* Copyright 2012 Samsung Electronics Co., Ltd
-*
-* Contact: Hocheol Seo <hocheol.seo@samsung.com>
-* GirishAshok Joshi <girish.joshi@samsung.com>
-* DoHyun Pyun <dh79.pyun@samsung.com>
-*
-* Licensed under the Flora License, Version 1.1 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.tizenopensource.org/license
-*
-* Unless required by applicable law or agreed to in writing,
-* software distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-#ifndef __BT_WEARABLE_H
-#define __BT_WEARABLE_H
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include "bt-type-define.h"
-
-#ifdef TIZEN_REDWOOD
-
-gboolean _bt_handle_wearable_device(bt_ug_data *ugd, bt_dev_t *dev);
-
-#endif
-
-#ifdef __cplusplus
-}
-#endif
-#endif /* __BT_WEARABLE_H */
+++ /dev/null
-/*
-* ug-bluetooth-efl
-*
-* Copyright 2012 Samsung Electronics Co., Ltd
-*
-* Contact: Hocheol Seo <hocheol.seo@samsung.com>
-* GirishAshok Joshi <girish.joshi@samsung.com>
-* DoHyun Pyun <dh79.pyun@samsung.com>
-*
-* Licensed under the Flora License, Version 1.1 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.tizenopensource.org/license
-*
-* Unless required by applicable law or agreed to in writing,
-* software distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-#ifndef __BT_WIDGET_H__
-#define __BT_WIDGET_H__
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include "Elementary.h"
-#include <efl_extension.h>
-
-#include "bt-util.h"
-
-typedef enum {
- BT_GENLIST_GROUP_SINGLE = 0,
- BT_GENLIST_GROUP_TOP,
- BT_GENLIST_GROUP_MIDDLE,
- BT_GENLIST_GROUP_BOTTOM,
-} bt_genlist_group_style_t;
-
-typedef enum {
- BT_GENLIST_1LINE = 0,
- BT_GENLIST_2LINE_TOP,
- BT_GENLIST_2LINE_BOTTOM,
-} bt_genlist_type_t;
-
-static inline char* get_genlist_style(bt_genlist_type_t type)
-{
- if (type == BT_GENLIST_2LINE_BOTTOM)
- return TIZEN_COMMON ? "2line" : "type2";
- else if (type == BT_GENLIST_2LINE_TOP)
- return TIZEN_COMMON ? "2line" : "type1";
- else
- return TIZEN_COMMON ? "1line" : "type1";
-}
-
-#define BT_GENLIST_1LINE_TEXT_STYLE get_genlist_style(BT_GENLIST_1LINE)
-#define BT_GENLIST_1LINE_TEXT_ICON_STYLE get_genlist_style(BT_GENLIST_1LINE)
-#define BT_GENLIST_2LINE_TOP_TEXT_STYLE get_genlist_style(BT_GENLIST_2LINE_TOP)
-#define BT_GENLIST_2LINE_TOP_TEXT_ICON_STYLE get_genlist_style(BT_GENLIST_2LINE_TOP)
-#define BT_GENLIST_2LINE_BOTTOM_TEXT_STYLE get_genlist_style(BT_GENLIST_2LINE_BOTTOM)
-#define BT_GENLIST_2LINE_BOTTOM_TEXT_ICON_STYLE get_genlist_style(BT_GENLIST_2LINE_BOTTOM)
-#define BT_GENLIST_MULTILINE_TEXT_STYLE "multiline"
-#define BT_GENLIST_GROUP_INDEX_STYLE "group_index"
-#define BT_GENLIST_FULL_CONTENT_STYLE "full"
-
-#define BT_POPUP_STR_MAX_LEN 512
-
-Evas_Object *_bt_create_naviframe(Evas_Object *parent);
-
-Evas_Object *_bt_create_icon(Evas_Object *parent, char *img);
-
-Evas_Object *_bt_create_progressbar(Evas_Object *parent,
- const char *style);
-
-void _bt_update_genlist_item(Elm_Object_Item *item);
-
-Evas_Object *_bt_main_base_layout_create(Evas_Object *parent, void *data);
-
-void _bt_set_popup_text(void *data, Evas_Object *popup);
-
-Evas_Object *_bt_create_popup(void *data, void *cb, void *cb_data,
- int timer_val);
-#ifdef __cplusplus
-}
-#endif
-#endif /* __BT_WIDGET_H__ */
+++ /dev/null
-<manifest>
- <request>
- <domain name="_"/>
- </request>
-</manifest>