diff options
Diffstat (limited to 'include/bt-type-define.h')
-rw-r--r-- | include/bt-type-define.h | 116 |
1 files changed, 54 insertions, 62 deletions
diff --git a/include/bt-type-define.h b/include/bt-type-define.h index 4451f9d..253cebd 100644 --- a/include/bt-type-define.h +++ b/include/bt-type-define.h @@ -1,18 +1,25 @@ /* - * Copyright (c) 2012-2013 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://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. - */ +* 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.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_TYPE_DEFINE_H__ #define __BT_TYPE_DEFINE_H__ @@ -23,7 +30,7 @@ extern "C" { #include <glib.h> - +#include <bluetooth.h> /************************************************** * Constant Value @@ -33,7 +40,7 @@ extern "C" { #define BT_MAX_CHARS_IN_FTP_TITLE 12 #define BT_MAX_MENU_NAME_LEN 64 #define BT_MAX_SERVICE_LIST 9 -#define BT_DEVICE_NAME_LENGTH_MAX 100 /* UX guideline */ +#define DEVICE_NAME_MAX_LEN 32 #define BT_ADDRESS_LENGTH_MAX 6 #define BT_ADDRESS_STR_LEN 18 #define BT_FILE_NAME_LEN_MAX 255 @@ -49,18 +56,19 @@ extern "C" { #define BT_GLOBALIZATION_TEXT_LENGTH \ (BT_GLOBALIZATION_STR_LENGTH+BT_EXTRA_STR_LEN) #define BT_DISCONNECT_TEXT_LENGTH \ - ((2*BT_GLOBALIZATION_STR_LENGTH)+BT_DEVICE_NAME_LENGTH_MAX) + ((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_EXIT_TIMEOUT 2100 #define BT_VISIBILITY_TIMEOUT 1000 +#define BT_HELP_TIMEOUT 3000 /* Define Error type */ #define BT_UG_FAIL -1 @@ -93,9 +101,10 @@ extern "C" { #define BT_RESULT_SUCCESS "success" #define BT_RESULT_FAIL "fail" -#define BT_DEFAULT_PHONE_NAME "Fraser" +#define BT_ADAPTER_ON "on" +#define BT_ADAPTER_OFF "off" -#define BT_EMULATOR_KEYSTR "Emulator" +#define BT_DEFAULT_PHONE_NAME "Kiran" #define BT_SYSPOPUP_REQUEST_NAME "app-confirm-request" #define BT_SYSPOPUP_TWO_BUTTON_TYPE "twobtn" @@ -108,6 +117,14 @@ extern "C" { #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 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" @@ -184,9 +201,20 @@ typedef enum { BT_LAUNCH_USE_NFC = 0x04, BT_LAUNCH_PICK = 0x05, BT_LAUNCH_VISIBILITY = 0x06, + BT_LAUNCH_SHARE_CONTACT = 0x07, + BT_LAUNCH_HELP = 0x08, + BT_LAUNCH_ONOFF = 0x09, } 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; @@ -203,13 +231,6 @@ typedef enum { } bt_store_type_t; typedef enum { - BT_ROTATE_PORTRAIT = 0, - BT_ROTATE_LANDSCAPE, - BT_ROTATE_PORTRAIT_UPSIDEDOWN, - BT_ROTATE_LANDSCAPE_UPSIDEDOWN, -} bt_rotate_mode_t; - -typedef enum { BT_ACTIVATED = 0, BT_ACTIVATING, BT_DEACTIVATED, @@ -256,6 +277,7 @@ typedef enum { BT_STEREO_HEADSET_CONNECTED = 0x02, BT_HID_CONNECTED = 0x04, BT_NETWORK_CONNECTED = 0x08, + BT_NETWORK_SERVER_CONNECTED = 0x10, } bt_connected_mask_t; /** @@ -298,38 +320,6 @@ typedef enum { BT_DEVICE_MAJOR_MASK_HEALTH = 0x0100, } bt_device_major_mask_t; - -/** - * This enum indicates Service class Type. - */ -typedef enum { - BT_SC_NONE = 0, - BT_SC_RES_SERVICE_MASK = 0x00000001, - BT_SC_SPP_SERVICE_MASK = 0x00000002, - BT_SC_DUN_SERVICE_MASK = 0x00000004, - BT_SC_FAX_SERVICE_MASK = 0x00000008, - BT_SC_LAP_SERVICE_MASK = 0x00000010, - BT_SC_HSP_SERVICE_MASK = 0x00000020, - BT_SC_HFP_SERVICE_MASK = 0x00000040, - BT_SC_OPP_SERVICE_MASK = 0x00000080, - BT_SC_FTP_SERVICE_MASK = 0x00000100, - BT_SC_CTP_SERVICE_MASK = 0x00000200, - BT_SC_ICP_SERVICE_MASK = 0x00000400, - BT_SC_SYNC_SERVICE_MASK = 0x00000800, - BT_SC_BPP_SERVICE_MASK = 0x00001000, - BT_SC_BIP_SERVICE_MASK = 0x00002000, - BT_SC_PANU_SERVICE_MASK = 0x00004000, - BT_SC_NAP_SERVICE_MASK = 0x00008000, - BT_SC_GN_SERVICE_MASK = 0x00010000, - BT_SC_SAP_SERVICE_MASK = 0x00020000, - BT_SC_A2DP_SERVICE_MASK = 0x00040000, - BT_SC_AVRCP_SERVICE_MASK = 0x00080000, - BT_SC_PBAP_SERVICE_MASK = 0x00100000, - BT_SC_HID_SERVICE_MASK = 0x00200000, - BT_SC_ALL_SERVICE_MASK = 0x00FFFFFF, - BT_SC_MAX -} bt_service_class_t; - /* * Major device class (part of Class of Device) */ @@ -348,7 +338,7 @@ typedef enum { } bt_major_class_t; /* - * Minoor device class (part of Class of Device) + * Minor device class (part of Class of Device) */ typedef enum { BTAPP_MIN_DEV_CLS_UNCLASSIFIED = 0x00, @@ -526,13 +516,14 @@ typedef enum { typedef struct { unsigned char bd_addr[BT_ADDRESS_LENGTH_MAX]; char addr_str[BT_ADDRESS_STR_LEN + 1]; - char name[BT_DEVICE_NAME_LENGTH_MAX + 1];/**< Device Name */ + 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; @@ -541,6 +532,7 @@ typedef struct { void *layout; void *entry; void *genlist_item; + void *icon; void *net_profile; gboolean is_bonded; gboolean call_checked; @@ -549,13 +541,13 @@ typedef struct { gboolean network_checked; gboolean highlighted; void *ugd; + int pan_connection_result; } bt_dev_t; typedef struct { unsigned char bd_addr[BT_ADDRESS_LENGTH_MAX]; } bt_address_t; - /************************************************** * Callback type ***************************************************/ |