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.
20 extern Indicator_Icon_Object home;
23 extern Indicator_Icon_Object rssi;
24 extern Indicator_Icon_Object roaming;
27 extern Indicator_Icon_Object usb;
28 extern Indicator_Icon_Object wifi;
29 extern Indicator_Icon_Object mobile_hotspot;
30 extern Indicator_Icon_Object conn;
33 extern Indicator_Icon_Object trnsfr;
34 extern Indicator_Icon_Object call;
35 extern Indicator_Icon_Object call_divert;
36 extern Indicator_Icon_Object active_sync;
39 extern Indicator_Icon_Object mmc;
40 extern Indicator_Icon_Object noti;
43 /* extern Indicator_Icon_Object message; */
46 /* extern Indicator_Icon_Object voice_mail; */
49 extern Indicator_Icon_Object missed_call;
50 extern Indicator_Icon_Object im;
54 extern Indicator_Icon_Object useralarm;
57 extern Indicator_Icon_Object fm_radio;
58 extern Indicator_Icon_Object mp3_play;
59 extern Indicator_Icon_Object voice_recorder;
62 extern Indicator_Icon_Object silent;
63 extern Indicator_Icon_Object bluetooth;
64 extern Indicator_Icon_Object rotate;
65 extern Indicator_Icon_Object gps;
66 extern Indicator_Icon_Object nfc;
67 extern Indicator_Icon_Object wifi_direct;
70 extern Indicator_Icon_Object sysclock;
73 extern Indicator_Icon_Object battery;
75 static Indicator_Icon_Object *modules[] = {
117 /* Add your module object here */
121 void indicator_init_modules(void *data)
124 /* add items to list */
125 for (i = 0; modules[i]; i++) {
126 indicator_icon_list_insert(modules[i]);
127 modules[i]->ad = data;
128 if (modules[i]->init)
129 modules[i]->init(data);
133 void indicator_fini_modules(void *data)
136 /* add items to list */
137 for (i = 0; modules[i]; i++) {
138 if (modules[i]->fini)
142 indicator_icon_list_free();
145 void indicator_hib_enter_modules(void *data)
148 /* add items to list */
149 for (i = 0; modules[i]; i++) {
150 if (modules[i]->hib_enter)
151 modules[i]->hib_enter();
155 void indicator_hib_leave_modules(void *data)
158 /* add items to list */
159 for (i = 0; modules[i]; i++) {
160 if (modules[i]->hib_leave)
161 modules[i]->hib_leave(data);
165 void indicator_lang_changed_modules(void *data)
168 /* add items to list */
169 for (i = 0; modules[i]; i++) {
170 if (modules[i]->lang_changed)
171 modules[i]->lang_changed(data);
175 void indicator_region_changed_modules(void *data)
178 /* add items to list */
179 for (i = 0; modules[i]; i++) {
180 if (modules[i]->region_changed)
181 modules[i]->region_changed(data);