summaryrefslogtreecommitdiff
path: root/include/mh_common_utility.h
blob: 333a6434fd8612a67815f945a45ae3d1397398f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*
* ug-mobile-ap
*
* Copyright 2012-2013  Samsung Electronics Co., Ltd

* Licensed under the Flora License, Version 1.1 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at

* http://floralicense.org/license

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/

#ifndef __APP_MH_COMMON_UTILITY_H_
#define __APP_MH_COMMON_UTILITY_H_

#ifdef __cplusplus
extern "C" {
#endif

#include "mobile_hotspot.h"
#include "mh_view_main.h"

#define MH_POPUP_TIMEOUT	2.0f

void _prepare_popup_with_content(int type, Evas_Object *obj);
void _prepare_popup(int type, const char *str);
Eina_Bool _create_popup(mh_appdata_t *ad);
void _destroy_popup(mh_appdata_t *ad);
Evas_Object *_create_bg(Evas_Object *parent, const char *style);
Evas_Object *_create_win_layout(mh_appdata_t *ad);
Evas_Object *_create_naviframe(Evas_Object *parent);
void _handle_usb_mode_change(keynode_t *key, void *data);
int _get_vconf_hotspot_mode(void);
Eina_Bool _get_no_of_connected_device(tethering_h handle, int *no, tethering_type_e type);
Evas_Object *_create_label(Evas_Object *parent, const char *text);
Evas_Object *_create_slide_title(Evas_Object *parent, const char *text);

#ifdef __cplusplus
}
#endif
#endif