4 * Copyright 2012 Samsung Electronics Co., Ltd
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
10 * http://www.tizenopensource.org/license
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 __APP_MH_COMMON_UTILITY_H_
21 #define __APP_MH_COMMON_UTILITY_H_
27 #include "mobile_hotspot.h"
28 #include "mh_view_main.h"
30 #define MH_POPUP_TIMEOUT 2.0f
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 int _get_vconf_hotspot_mode(void);
39 Eina_Bool _get_no_of_connected_device(tethering_h handle, int *no, tethering_type_e type);