4 * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
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
10 * http://www.apache.org/licenses/LICENSE-2.0
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.
20 #ifndef __DEF_BLUETOOTH_SHARE_NOTI_H_
21 #define __DEF_BLUETOOTH_SHARE_NOTI_H_
28 #include <notification.h>
29 #include <tzplatform_config.h>
31 #include "bt-share-main.h"
33 #define NOTIFICATION_TEXT_LEN_MAX 100
34 #define NOTI_TR_TYPE_IN "inbound"
35 #define NOTI_TR_TYPE_OUT "outbound"
36 #define NOTI_OPS_APP_ID "bluetooth-share-opp-server"
37 #define NOTI_OPC_APP_ID "bluetooth-share-opp-client"
44 BT_RECEIVED_FAILED_NOTI,
46 } bt_notification_type_e;
51 } bt_notification_launch_type_e;
53 void _bt_insert_instant_notification(bt_notification_type_e type);
55 notification_h _bt_insert_notification(bt_appdata_t *ad,
56 bt_notification_type_e type, char *dev_name,
57 char *address, char *db_sid);
59 int _bt_update_notification(bt_appdata_t *ad, notification_h noti,
60 char *title, char *content, char *dev_name, char *icon_path, char *opc_count);
62 int _bt_update_notification_progress(notification_h noti,
66 int _bt_get_notification_priv_id(notification_h noti);
68 int _bt_delete_notification(notification_h noti);
70 int _bt_set_notification_app_launch(notification_h noti, char *device_name,
71 char *device_addr, char *db_sid,
72 bt_notification_launch_type_e launch_type,
73 const char *transfer_type,
76 const char *progress_cnt,
80 gboolean _bt_update_notification_status(bt_appdata_t *ad);
83 void _bt_register_notification_cb(bt_appdata_t *ad);
85 void _bt_unregister_notification_cb(bt_appdata_t *ad);
90 #endif /* __DEF_BLUETOOTH_SHARE_NOTI_H_ */