4 * Copyright 2012 Samsung Electronics Co., Ltd
6 * Contact: Hocheol Seo <hocheol.seo@samsung.com>
7 * GirishAshok Joshi <girish.joshi@samsung.com>
8 * DoHyun Pyun <dh79.pyun@samsung.com>
10 * Licensed under the Flora License, Version 1.0 (the "License");
11 * you may not use this file except in compliance with the License.
12 * You may obtain a copy of the License at
14 * http://www.tizenopensource.org/license
16 * Unless required by applicable law or agreed to in writing,
17 * software distributed under the License is distributed on an "AS IS" BASIS,
18 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 * See the License for the specific language governing permissions and
20 * limitations under the License.
24 #ifndef __DEF_BT_SHARE_UI_VIEW_H_
25 #define __DEF_BT_SHARE_UI_VIEW_H_
31 #include "bt-share-ui-main.h"
32 #include "bt-share-ui-ipc.h"
34 #include <bluetooth-share-api.h>
35 #include <bluetooth.h>
37 #define BT_GLOBALIZATION_STR_LENGTH 256
38 #define BT_FILE_NAME_LEN_MAX 255
39 #define BT_ANI_UPLOAD "bt_share_upload"
40 #define BT_ANI_DOWNLOAD "bt_share_download"
43 BT_FILE_IMAGE, /**<IMAGE */
44 BT_FILE_VCARD, /**<VCARD */
45 BT_FILE_VCAL, /**<VCAL */
46 BT_FILE_VBOOKMARK, /**<VBOOKMARK */
48 BT_FILE_DOC, /**<DOC, */
49 BT_FILE_OTHER /**<OTHER*/
52 Evas_Object *_bt_create_win(const char *name);
53 void _bt_terminate_app(void);
54 void _bt_genlist_prepend_tr_data_item(bt_share_appdata_t *ad,
55 Evas_Object *genlist, bt_tr_data_t *info, int tr_type);
56 void _bt_genlist_append_tr_data_item(bt_share_appdata_t *ad,
57 bt_tr_data_t *info, int tr_type);
58 int _bt_create_transfer_view(bt_share_appdata_t *ad);
59 void _bt_cb_state_changed(int result,
60 bt_adapter_state_e adapter_state,
62 void _bt_share_ui_handle_transfer_disconnected(bt_share_appdata_t *ad,
63 bt_share_tr_type_e type);
64 void _bt_share_ui_handle_transfer_complete(bt_share_appdata_t *ad,
65 char *address, bt_share_tr_type_e type);
66 void _bt_share_ui_handle_transfer_started(bt_share_appdata_t *ad,
67 char *address, char *file_name, unsigned long size, int transfer_id,
68 bt_share_tr_type_e type);
69 void _bt_delete_selected_notification(bt_share_tr_type_e tr_type,
70 int noti_id, const char *opp_role);
71 int _bt_share_enable_bt(bt_share_appdata_t *ad);
72 Evas_Object * _bt_share_create_toolbar_button(bt_share_appdata_t *ad,
74 void _bt_share_delete_toolbar_button(bt_share_appdata_t *ad);
79 #endif /* __DEF_BT_SHARE_UI_VIEW_H_ */