[cleanup] revise file location
[platform/core/connectivity/bluetooth-share.git] / app / bt-share-syspopup.h
1 /*
2  * bluetooth-share
3  *
4  * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  *              http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  *
18  */
19
20 #ifndef __DEF_BLUETOOTH_SHARE_SYSPOPUP_H_
21 #define __DEF_BLUETOOTH_SHARE_SYSPOPUP_H_
22
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26
27 #define BT_GLOBALIZATION_STR_LENGTH     256
28 #define BT_FILE_NAME_LEN_MAX 255
29 #define BT_POPUP_TEXT_LEN \
30                 (BT_GLOBALIZATION_STR_LENGTH + BT_FILE_NAME_LEN_MAX)
31
32 /* This value are used in the N-prj */
33 #define BT_APP_POPUP_LAUNCH_TIMEOUT 100
34
35 typedef enum {
36         BT_APP_EVENT_CONFIRM_MODE_REQUEST = 0x0001,
37         BT_APP_EVENT_FILE_RECEIVED = 0x0002,
38         BT_APP_EVENT_INFORMATION = 0x0004,
39         BT_APP_EVENT_OVERWRITE_REQUEST = 0x0008
40 } bt_app_event_type_e;
41
42 typedef enum {
43         POPUP_RESPONSE_OK,
44         POPUP_RESPONSE_CANCEL,
45         POPUP_RESPONSE_TIMEOUT
46 } bt_popup_response_e;
47
48 typedef struct {
49         char *title;
50         char *type;
51         char *file;
52         char *device_name;
53 } bt_app_sys_popup_params_t;
54
55 int _bt_launch_system_popup(bt_app_event_type_e event_type,
56                             bt_app_sys_popup_params_t *popup_params,
57                             void *cb,
58                             void *data);
59
60 gboolean _bt_app_popup_memoryfull(gpointer user_data);
61
62 #ifdef __cplusplus
63 }
64 #endif
65 #endif                          /* __DEF_BLUETOOTH_SHARE_SYSPOPUP_H_ */