Code Merge [Tizen3.0]: Applied tizen.org patches
[platform/core/connectivity/bluetooth-frwk.git] / bt-service / include / bt-popup.h
1 /*
2  * bluetooth-frwk
3  *
4  * Copyright (c) 2013 Intel Corporation.
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 #include <libnotify/notify.h>
21 #include <string.h>
22 #include <stdio.h>
23 #include <stdlib.h>
24 #include <gtk/gtk.h>
25 #include <glib.h>
26 #include <dbus/dbus.h>
27 #include <dbus/dbus-glib.h>
28 #include <dbus/dbus-glib-lowlevel.h>
29 #include <bundle.h>
30 #include "bt-service-common.h"
31
32 #define BT_PIN_MLEN     16      /* Pin key max length */
33 #define BT_PK_MLEN      6       /* Passkey max length */
34 #define NOTIFY_ICON     DATA_DIR_ICON"/icons/default/bt-icon.png"
35 #define BT_SUCCESS      0
36 #define BT_FAILED       1
37
38 typedef enum {
39         BT_AGENT_ACCEPT,
40         BT_AGENT_REJECT,
41         BT_AGENT_CANCEL,
42         BT_CORE_AGENT_TIMEOUT,
43 } bt_agent_accept_type_t;
44
45 struct bt_popup_appdata {
46         DBusGProxy *agent_proxy;
47         DBusGProxy *obex_proxy;
48         GtkWidget *window;
49         GtkWidget *entry;
50 };
51
52 int notify_launch(bundle *user_data);