po: move translation files
[apps/core/preloaded/indicator-win.git] / inc / main.h
1 /*
2  *  Indicator
3  *
4  * Copyright (c) 2000 - 2015 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Licensed under the Apache License, Version 2.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.apache.org/licenses/LICENSE-2.0
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
21 #ifndef __DEF_indicator_H_
22 #define __DEF_indicator_H_
23
24 #include <Elementary.h>
25 //#include <Ecore_X.h>
26 //FIXME
27 #if 0
28 #include <tzsh_indicator_service.h>
29 #endif
30 #include "indicator.h"
31
32 #if !defined(PACKAGE)
33 #  define PACKAGE "indicator"
34 #endif
35
36 #if !defined(PACKAGEID)
37 #  define PACKAGEID "org.tizen.indicator"
38 #endif
39
40 #if !defined(LOCALEDIR)
41 #  define LOCALEDIR "locale"
42 #endif
43
44 #if !defined(EDJDIR)
45 #  define EDJDIR "resource/"
46 #endif
47
48 #if !defined(ICONDIR)
49 #  define ICONDIR EDJDIR"icons"
50 #endif
51
52 #define EDJ_FILE EDJDIR"/"PACKAGE"_port.edj"
53 #define ICON_THEME_FILE EDJDIR"/"PACKAGE"_icon_theme.edj"
54 #define ICON_NONFIXED_THEME_FILE EDJDIR"/"PACKAGE"_icon_nonfixed_theme.edj"
55 #define ICON_NONFIXED_THEME_ANI_FILE EDJDIR"/"PACKAGE"_icon_animation.edj"
56
57
58 #define _S(str) dgettext("sys_string", str)
59
60 #define HOME_SCREEN_NAME                "org.tizen.live-magazine"
61 #define MENU_SCREEN_NAME                "org.tizen.menu-screen"
62 #define LOCK_SCREEN_NAME                "org.tizen.idle-lock"
63 #define QUICKPANEL_NAME                 "E Popup"
64 #define CALL_NAME                       "org.tizen.call-ui"
65 #define VTCALL_NAME                     "org.tizen.vtmain"
66
67 #define MENUSCREEN_PKG_NAME "org.tizen.menuscreen"
68 #define APP_TRAY_PKG_NAME "org.tizen.app-tray"
69 #define SEARCH_PKG_NAME "org.tizen.sfinder"
70 #define TIZEN_EMAIL_PACKAGE "org.tizen.email"
71 #define TIZEN_MESSAGE_PACKAGE "org.tizen.message"
72
73 #define MSG_DOMAIN_CONTROL_INDICATOR 0x10001
74 #define MSG_ID_INDICATOR_REPEAT_EVENT 0x10002
75 #define MSG_ID_INDICATOR_ROTATION 0x10003
76 #define MSG_ID_INDICATOR_OPACITY 0X1004
77 #define MSG_ID_INDICATOR_TYPE 0X1005
78 #define MSG_ID_INDICATOR_OPACITY_OSP 0X10061
79 #define MSG_ID_INDICATOR_ANI_START 0x10006
80
81 #define MSG_DOMAIN_CONTROL_ACCESS (int)ECORE_X_ATOM_E_ILLUME_ACCESS_CONTROL
82
83 #define INDICATOR_SERVICE_NAME "elm_indicator"
84
85 enum _win_type {
86         /* Clock view */
87         TOP_WIN_NORMAL = 0,
88         TOP_WIN_LOCK_SCREEN,
89         /* Full line of indicator */
90         /* CAUTION: Don't change order! */
91         TOP_WIN_CALL,
92         TOP_WIN_MENU_SCREEN,
93         TOP_WIN_HOME_SCREEN,
94         TOP_WIN_QUICKPANEL
95 };
96
97 enum indicator_opacity_mode{
98         INDICATOR_OPACITY_OPAQUE = 0,
99         INDICATOR_OPACITY_TRANSLUCENT,
100         INDICATOR_OPACITY_TRANSPARENT,
101 };
102
103 typedef struct _telephony_info
104 {
105         int network_service_type;
106         int network_ps_type;
107         int roaming_status;
108         int signal_level;
109         int prefered_data;
110         int prefered_voice;
111         int default_network;
112         int sim_status;
113         int call_forward;
114
115         void* data;
116 }telephony_info;
117
118 struct appdata {
119
120         win_info win;
121         telephony_info tel_info;
122         int prefered_data;      // Data prefered
123         Evas_Object* win_overlay;
124
125         /* FIXME */
126 #if 0
127         tzsh_h tzsh;
128         tzsh_indicator_service_h indicator_service;
129 #endif
130
131         double scale;
132         int angle;
133
134         Eina_List *evt_handlers;
135
136         enum indicator_opacity_mode opacity_mode;
137
138         Ecore_X_Atom atom_active;
139         Ecore_X_Window active_indi_win;
140         //Ea_Theme_Color_Table *color_table;
141         Eina_List *font_table;
142
143         void (*update_display) (int);
144 };
145
146 int isSimShowing;       // For Simcard Icon
147 int isRSSI1Showing;     // For RSSI1 Icon
148 int isRSSI2Showing;     // For RSSI2 Icon
149 int isSilentShowing;            // For Silent Icon
150 int isWifiDirectShowing;        // For WiFi Direct Icon
151
152 #endif                          /* __DEF_indicator_H__ */