4 * Copyright 2012 Samsung Electronics Co., Ltd
6 * Contact: Hocheol Seo <hocheol.seo@samsung.com>
7 * Injun Yang <injun.yang@samsung.com>
8 * Seungyoun Ju <sy39.ju@samsung.com>
10 * Licensed under the Flora License, Version 1.1 (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 __BT_CONNECTION_MAIN_H__
25 #define __BT_CONNECTION_MAIN_H__
33 #include <app_service.h>
34 #include <Elementary.h>
35 #include <appcore-efl.h>
37 #include <vconf-keys.h>
39 #include <efl_assist.h>
48 #define LOG_TAG "BT_CONNECTION_POPUP"
49 #define DBG(format, args...) SLOGD(format, ##args)
50 #define ERR(format, args...) SLOGE(format, ##args)
51 #define DBG_SECURE(fmt, args...) SECURE_SLOGD(fmt, ##args)
53 #define ret_if(expr) \
60 #define retv_if(expr, val) \
67 #define retm_if(expr, fmt, arg...) \
76 #define retvm_if(expr, val, fmt, arg...) \
85 #define EDJ_FILE EDJDIR "/bt-connection-popup.edj"
87 #define BUF_SIZE_256 256
88 #define TITLE_STR_MAX_LEN 256
89 #define TEXT_EXTRA_LEN 20
90 #define APP_DESTORY_TIMEOUT 3
91 #define CONNECT_TIMEOUT 30 //20
94 #define DLL_DEFAULT __attribute__((visibility ("default")))
97 #define _EDJ(obj) (elm_layout_edje_get(obj))
101 #define PACKAGE "bt-connection-popup"
104 #define KEY_VAL_CONNECTED "Connected"
105 #define KEY_VAL_NOT_CONNECTED "Not Connected"
114 Evas_Object *conform;
115 Evas_Object *layout_main;
117 Evas_Object *main_layout;
123 service_h service_clone;
127 E_DBus_Connection *dbus_conn;
128 E_DBus_Signal_Handler *gesture_sh;
129 E_DBus_Signal_Handler *app_core_sh;
136 #endif /* __APP_COMMON_H__ */