2 * Copyright 2012 Samsung Electronics Co., Ltd
4 * Licensed under the Flora License, Version 1.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.tizenopensource.org/license
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
21 extern Indicator_Icon_Object home;
24 extern Indicator_Icon_Object rssi;
25 extern Indicator_Icon_Object roaming;
28 extern Indicator_Icon_Object usb;
29 extern Indicator_Icon_Object wifi;
30 extern Indicator_Icon_Object mobile_hotspot;
31 extern Indicator_Icon_Object conn;
34 extern Indicator_Icon_Object trnsfr;
35 extern Indicator_Icon_Object sos;
36 extern Indicator_Icon_Object call;
37 extern Indicator_Icon_Object call_divert;
38 extern Indicator_Icon_Object active_sync;
41 extern Indicator_Icon_Object mmc;
42 extern Indicator_Icon_Object noti;
45 /* extern Indicator_Icon_Object message; */
48 /* extern Indicator_Icon_Object voice_mail; */
51 extern Indicator_Icon_Object missed_call;
52 extern Indicator_Icon_Object im;
56 extern Indicator_Icon_Object useralarm;
59 extern Indicator_Icon_Object fm_radio;
60 extern Indicator_Icon_Object mp3_play;
61 extern Indicator_Icon_Object voice_recorder;
64 extern Indicator_Icon_Object silent;
65 extern Indicator_Icon_Object bluetooth;
66 extern Indicator_Icon_Object rotate;
67 extern Indicator_Icon_Object gps;
68 extern Indicator_Icon_Object nfc;
69 extern Indicator_Icon_Object wifi_direct;
72 extern Indicator_Icon_Object sysclock;
75 extern Indicator_Icon_Object battery;
78 extern Indicator_Icon_Object smart_stay;
80 static Indicator_Icon_Object *modules[] = {
125 /* Add your module object here */
129 void indicator_init_modules(void *data)
132 /* add items to list */
133 for (i = 0; modules[i]; i++) {
134 indicator_icon_list_insert(modules[i]);
135 modules[i]->ad = data;
136 if (modules[i]->init)
137 modules[i]->init(data);
141 void indicator_fini_modules(void *data)
144 /* add items to list */
145 for (i = 0; modules[i]; i++) {
146 if (modules[i]->fini)
150 indicator_icon_list_free();
153 void indicator_hib_enter_modules(void *data)
156 /* add items to list */
157 for (i = 0; modules[i]; i++) {
158 if (modules[i]->hib_enter)
159 modules[i]->hib_enter();
163 void indicator_hib_leave_modules(void *data)
166 /* add items to list */
167 for (i = 0; modules[i]; i++) {
168 if (modules[i]->hib_leave)
169 modules[i]->hib_leave(data);
173 void indicator_lang_changed_modules(void *data)
176 /* add items to list */
177 for (i = 0; modules[i]; i++) {
178 if (modules[i]->lang_changed)
179 modules[i]->lang_changed(data);
183 void indicator_region_changed_modules(void *data)
186 /* add items to list */
187 for (i = 0; modules[i]; i++) {
188 if (modules[i]->region_changed)
189 modules[i]->region_changed(data);