4 * Copyright 2012-2013 Samsung Electronics Co., Ltd
6 * Licensed under the Flora License, Version 1.1 (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://floralicense.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_with_content(int type, Evas_Object *obj);
33 void _prepare_popup(int type, const char *str);
34 Eina_Bool _create_popup(mh_appdata_t *ad);
35 void _destroy_popup(mh_appdata_t *ad);
36 Evas_Object *_create_bg(Evas_Object *parent, const char *style);
37 Evas_Object *_create_win_layout(mh_appdata_t *ad);
38 Evas_Object *_create_naviframe(Evas_Object *parent);
39 void _handle_usb_mode_change(keynode_t *key, void *data);
40 int _get_vconf_hotspot_mode(void);
41 Eina_Bool _get_no_of_connected_device(tethering_h handle, int *no, tethering_type_e type);
42 Evas_Object *_create_label(Evas_Object *parent, const char *text);
43 Evas_Object *_create_slide_title(Evas_Object *parent, const char *text);