Change the package name
[platform/core/connectivity/net-popup.git] / include / net-popup-w.h
1 /*
2 *  net-popup
3 *
4 * Copyright 2012  Samsung Electronics Co., Ltd
5 *
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
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 __DEF_NET_POPUP_W_H__
21 #define __DEF_NET_POPUP_W_H__
22
23 #include <dlog.h>
24 #include <app.h>
25 #include <app_control.h>
26 #include <Elementary.h>
27 #include <efl_extension.h>
28
29 #define PACKAGE       "org.tizen.net-popup"
30 #define NET_POPUP_W   "NET_POPUP_W"
31 #define LOCALEDIR     "/usr/share/locale"
32 #define WEARABLE_DATAUSAGE_APPID        "org.tizen.watch-setting"
33 #define DOMAIN_NAME                     "net-popup"
34
35 #define log_print(MID, format, args...) \
36         SLOG(LOG_INFO, MID, "\033[0m[%s:%d]\033[0m " format, __func__, __LINE__, ##args)
37
38 #define FUNCTION_ENTER        log_print(NET_POPUP_W, "enter")
39 #define FUNCTION_QUIT         log_print(NET_POPUP_W, "quit")
40
41 #define DATA_USAGE_WARN_TITLE dgettext(DOMAIN_NAME, "WDS_ST_HEADER_NEAR_DATA_LIMIT_ABB")
42 #define DATA_USAGE_RSTN_TITLE dgettext(DOMAIN_NAME, "WDS_ST_PHEADER_DATA_LIMIT_REACHED")
43
44 #define DATA_USAGE_WARN_BODY dgettext(DOMAIN_NAME, "WDS_ST_POP_CHECK_YOUR_DATA_LIMIT_IN_SETTINGS_Q")
45 #define DATA_USAGE_RSTN_BODY dgettext(DOMAIN_NAME, "WDS_ST_POP_CHECK_YOUR_DATA_LIMIT_IN_SETTINGS_Q")
46
47 typedef enum {
48         POPUP_TYPE_RSTN,
49         POPUP_TYPE_WARN
50 } popup_type_e;
51
52 typedef struct appdata {
53         Evas_Object *win;
54         Evas_Object *conform;
55         Evas_Object *layout;
56 } appdata_s;
57
58 int net_popup_w_init(int argc, char *argv[]);
59
60 #endif /* __DEF_NET_POPUP_W_H__ */