2e3003b99642bd1a27cc42ef37fde92290054967
[apps/native/ug-mobile-ap.git] / include / mh_common_utility.h
1 /*
2 * ug-mobile-ap
3 *
4 * Copyright 2012  Samsung Electronics Co., Ltd
5
6 * Licensed under the Flora License, Version 1.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.tizenopensource.org/license
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 __APP_MH_COMMON_UTILITY_H_
21 #define __APP_MH_COMMON_UTILITY_H_
22
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26
27 #include "mobile_hotspot.h"
28 #include "mh_view_main.h"
29
30 #define MH_POPUP_TIMEOUT        2.0f
31
32 void _prepare_popup(mh_appdata_t *ad, int type, const char *str);
33 Eina_Bool _create_popup(mh_appdata_t *ad);
34 Evas_Object *_create_bg(Evas_Object *parent, const char *style);
35 Evas_Object *_create_win_layout(mh_appdata_t *ad);
36 Evas_Object *_create_naviframe(Evas_Object *parent);
37 void _handle_usb_mode_change(keynode_t *key, void *data);
38 Eina_Bool _hide_imf(Evas_Object *entry);
39 int _get_vconf_hotspot_mode(void);
40 Eina_Bool _get_no_of_connected_device(tethering_h handle, int *no, tethering_type_e type);
41
42 #ifdef __cplusplus
43 }
44 #endif
45 #endif