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>
28 #include <tzsh_indicator_service.h>
30 #include "indicator.h"
33 # define PACKAGE "indicator"
36 #if !defined(PACKAGEID)
37 # define PACKAGEID "org.tizen.indicator"
40 #if !defined(LOCALEDIR)
41 # define LOCALEDIR "locale"
45 # define EDJDIR "resource/"
49 # define ICONDIR EDJDIR"icons"
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"
58 #define _S(str) dgettext("sys_string", str)
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"
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"
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
81 #define MSG_DOMAIN_CONTROL_ACCESS (int)ECORE_X_ATOM_E_ILLUME_ACCESS_CONTROL
83 #define INDICATOR_SERVICE_NAME "elm_indicator"
89 /* Full line of indicator */
90 /* CAUTION: Don't change order! */
97 enum indicator_opacity_mode{
98 INDICATOR_OPACITY_OPAQUE = 0,
99 INDICATOR_OPACITY_TRANSLUCENT,
100 INDICATOR_OPACITY_TRANSPARENT,
103 typedef struct _telephony_info
105 int network_service_type;
121 telephony_info tel_info;
122 int prefered_data; // Data prefered
123 Evas_Object* win_overlay;
128 tzsh_indicator_service_h indicator_service;
134 Eina_List *evt_handlers;
136 enum indicator_opacity_mode opacity_mode;
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;
143 void (*update_display) (int);
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
152 #endif /* __DEF_indicator_H__ */