4 * Copyright (c) 2000 - 2015 Samsung Electronics Co., Ltd. All rights reserved.
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
10 * http://www.apache.org/licenses/LICENSE-2.0
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.
21 #ifndef __DEF_indicator_H_
22 #define __DEF_indicator_H_
24 #include <Elementary.h>
25 //#include <Ecore_X.h>
26 #include <efl_assist.h>
29 #include <tzsh_indicator_service.h>
31 #include "indicator.h"
34 # define PACKAGE "indicator"
37 #if !defined(PACKAGEID)
38 # define PACKAGEID "org.tizen.indicator"
41 #if !defined(LOCALEDIR)
42 # define LOCALEDIR "/usr/apps/org.tizen.indicator/res/locale"
46 # define EDJDIR "/usr/apps/org.tizen.indicator/res/edje"
50 # define ICONDIR "/usr/apps/org.tizen.indicator/res/icons"
53 #if !defined(CHANGEABLEDIR)
54 # define CHANGEABLEDIR "/usr/apps/org.tizen.indicator/shared/res/tables"
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"
63 #define CHANGEABLE_COLOR_FILE CHANGEABLEDIR"/"PACKAGEID"_ChangeableColorInfo.xml"
64 #define CHANGEABLE_FONT_FILE CHANGEABLEDIR"/"PACKAGEID"_ChangeableFontInfo.xml"
67 #define _S(str) dgettext("sys_string", str)
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"
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"
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
88 #define MSG_DOMAIN_CONTROL_ACCESS (int)ECORE_X_ATOM_E_ILLUME_ACCESS_CONTROL
90 #define INDICATOR_SERVICE_NAME "elm_indicator"
96 /* Full line of indicator */
97 /* CAUTION: Don't change order! */
104 enum indicator_opacity_mode{
105 INDICATOR_OPACITY_OPAQUE = 0,
106 INDICATOR_OPACITY_TRANSLUCENT,
107 INDICATOR_OPACITY_TRANSPARENT,
110 typedef struct _telephony_info
112 int network_service_type;
128 telephony_info tel_info;
129 int prefered_data; // Data prefered
130 Evas_Object* win_overlay;
135 tzsh_indicator_service_h indicator_service;
141 Eina_List *evt_handlers;
143 enum indicator_opacity_mode opacity_mode;
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;
150 void (*update_display) (int);
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
159 #endif /* __DEF_indicator_H__ */