comment-out tzsh related code
[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 #include <efl_assist.h>
27 //FIXME
28 #if 0
29 #include <tzsh_indicator_service.h>
30 #endif
31 #include "indicator.h"
32
33 #if !defined(PACKAGE)
34 #  define PACKAGE "indicator"
35 #endif
36
37 #if !defined(PACKAGEID)
38 #  define PACKAGEID "org.tizen.indicator"
39 #endif
40
41 #if !defined(LOCALEDIR)
42 #  define LOCALEDIR "/usr/apps/org.tizen.indicator/res/locale"
43 #endif
44
45 #if !defined(EDJDIR)
46 #  define EDJDIR "/usr/apps/org.tizen.indicator/res/edje"
47 #endif
48
49 #if !defined(ICONDIR)
50 #  define ICONDIR "/usr/apps/org.tizen.indicator/res/icons"
51 #endif
52
53 #if !defined(CHANGEABLEDIR)
54 #  define CHANGEABLEDIR "/usr/apps/org.tizen.indicator/shared/res/tables"
55 #endif
56
57 #define EDJ_FILE EDJDIR"/"PACKAGE"_port.edj"
58 #define ICON_THEME_FILE EDJDIR"/"PACKAGE"_icon_theme.edj"
59 #define ICON_NONFIXED_THEME_FILE EDJDIR"/"PACKAGE"_icon_nonfixed_theme.edj"
60 #define ICON_NONFIXED_THEME_ANI_FILE EDJDIR"/"PACKAGE"_icon_animation.edj"
61 #define ICON_NONFIXED_THEME_SYNC_FILE EDJDIR"/"PACKAGE"_icon_activesync.edj"
62
63 #define CHANGEABLE_COLOR_FILE CHANGEABLEDIR"/"PACKAGEID"_ChangeableColorInfo.xml"
64 #define CHANGEABLE_FONT_FILE CHANGEABLEDIR"/"PACKAGEID"_ChangeableFontInfo.xml"
65
66
67 #define _S(str) dgettext("sys_string", str)
68
69 #define HOME_SCREEN_NAME                "org.tizen.live-magazine"
70 #define MENU_SCREEN_NAME                "org.tizen.menu-screen"
71 #define LOCK_SCREEN_NAME                "org.tizen.idle-lock"
72 #define QUICKPANEL_NAME                 "E Popup"
73 #define CALL_NAME                       "org.tizen.call-ui"
74 #define VTCALL_NAME                     "org.tizen.vtmain"
75
76 #define MENUSCREEN_PKG_NAME "org.tizen.menuscreen"
77 #define APP_TRAY_PKG_NAME "org.tizen.app-tray"
78 #define SEARCH_PKG_NAME "org.tizen.sfinder"
79
80 #define MSG_DOMAIN_CONTROL_INDICATOR 0x10001
81 #define MSG_ID_INDICATOR_REPEAT_EVENT 0x10002
82 #define MSG_ID_INDICATOR_ROTATION 0x10003
83 #define MSG_ID_INDICATOR_OPACITY 0X1004
84 #define MSG_ID_INDICATOR_TYPE 0X1005
85 #define MSG_ID_INDICATOR_OPACITY_OSP 0X10061
86 #define MSG_ID_INDICATOR_ANI_START 0x10006
87
88 #define MSG_DOMAIN_CONTROL_ACCESS (int)ECORE_X_ATOM_E_ILLUME_ACCESS_CONTROL
89
90 #define INDICATOR_SERVICE_NAME "elm_indicator"
91
92 enum _win_type {
93         /* Clock view */
94         TOP_WIN_NORMAL = 0,
95         TOP_WIN_LOCK_SCREEN,
96         /* Full line of indicator */
97         /* CAUTION: Don't change order! */
98         TOP_WIN_CALL,
99         TOP_WIN_MENU_SCREEN,
100         TOP_WIN_HOME_SCREEN,
101         TOP_WIN_QUICKPANEL
102 };
103
104 enum indicator_opacity_mode{
105         INDICATOR_OPACITY_OPAQUE = 0,
106         INDICATOR_OPACITY_TRANSLUCENT,
107         INDICATOR_OPACITY_TRANSPARENT,
108 };
109
110 typedef struct _telephony_info
111 {
112         int network_service_type;
113         int network_ps_type;
114         int roaming_status;
115         int signal_level;
116         int prefered_data;
117         int prefered_voice;
118         int default_network;
119         int sim_status;
120         int call_forward;
121
122         void* data;
123 }telephony_info;
124
125 struct appdata {
126
127         win_info win;
128         telephony_info tel_info;
129         int prefered_data;      // Data prefered
130         Evas_Object* win_overlay;
131
132         /* FIXME */
133 #if 0
134         tzsh_h tzsh;
135         tzsh_indicator_service_h indicator_service;
136 #endif
137
138         double scale;
139         int angle;
140
141         Eina_List *evt_handlers;
142
143         enum indicator_opacity_mode opacity_mode;
144
145         Ecore_X_Atom atom_active;
146         Ecore_X_Window active_indi_win;
147         //Ea_Theme_Color_Table *color_table;
148         Eina_List *font_table;
149
150         void (*update_display) (int);
151 };
152
153 int isSimShowing;       // For Simcard Icon
154 int isRSSI1Showing;     // For RSSI1 Icon
155 int isRSSI2Showing;     // For RSSI2 Icon
156 int isSilentShowing;            // For Silent Icon
157 int isWifiDirectShowing;        // For WiFi Direct Icon
158
159 #endif                          /* __DEF_indicator_H__ */