FreeCalypso > hg > fc-tourmaline
diff src/ui/mfw/mfw_td.c @ 188:92abb46dc1ba
src/ui/mfw/*.[ch]: rm trailing white space
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 19 Jan 2021 06:10:27 +0000 |
parents | 67bfe9f274f6 |
children |
line wrap: on
line diff
--- a/src/ui/mfw/mfw_td.c Tue Jan 19 05:41:26 2021 +0000 +++ b/src/ui/mfw/mfw_td.c Tue Jan 19 06:10:27 2021 +0000 @@ -15,15 +15,15 @@ TO DO : - $History:: mfw_td.c + $History:: mfw_td.c Dec 05, 2006 REF:OMAPS00106887 Prabakar R(a0393213) Description:Compilation error when FF_POWER_MANAGEMENT is not defined - + Aug 02, 2006 REF:OMAPS00083404 Prabakar R (a0393213) Description: Removal of clone code: entity GDI Solution: Two similar functions(rtc_get_time_date() and rtc_get_alarm()) are made into one function rtc_get_time_date(). As a result interface of rtc_get_time_date() has been changed. The changes are only for locosto. - + Jan 06,2004 REF: CRR 27859 xkundadu Description: Clock: Alarm does not go off even if timer times out. Solution: Check whether FFS is formatted before writing into FFS. @@ -64,14 +64,14 @@ #include "mfw_win.h" #include "mfw_acie.h" #include "dspl.h" - + // Jan 06,2004 REF: CRR 27859 xkundadu // Description: Clock: Alarm does not go off even if timer times out. // Solution: Check whether FFS is formatted before writing into FFS. // If it is not formatted, format it and create /mmi folder in FFS. // Included this header file to call FFS related functions -#include "Mfw_ffs.h" +#include "Mfw_ffs.h" #define TD_STRING_LEN 15 @@ -142,13 +142,13 @@ Aug 02, 2006 REF:OMAPS00083404 Prabakar R (a0393213) Description: Removal of clone code: entity GDI Solution: Two similar functions(rtc_get_time_date() and rtc_get_alarm()) are made into one function rtc_get_time_date(). - As a result, interface for rtc_get_time_date() has been changed. Change has been done here to be + As a result, interface for rtc_get_time_date() has been changed. Change has been done here to be consistent with the new interface. */ #if 0 - rtc_get_time_date(¤t_date, ¤t_time,RTC_TIME_TYPE_CURRENT); + rtc_get_time_date(¤t_date, ¤t_time,RTC_TIME_TYPE_CURRENT); #else - rtc_get_time_date(¤t_date, ¤t_time); + rtc_get_time_date(¤t_date, ¤t_time); #endif } else @@ -157,13 +157,13 @@ Aug 02, 2006 REF:OMAPS00083404 Prabakar R (a0393213) Description: Removal of clone code: entity GDI Solution: Two similar functions(rtc_get_time_date() and rtc_get_alarm()) are made into one function rtc_get_time_date(). - As a result, interface for rtc_get_time_date() has been changed. Change has been done here to be + As a result, interface for rtc_get_time_date() has been changed. Change has been done here to be consistent with the new interface. */ #if 0 - rtc_get_time_date(¤t_date, ¤t_time,RTC_TIME_TYPE_CURRENT); + rtc_get_time_date(¤t_date, ¤t_time,RTC_TIME_TYPE_CURRENT); #else - rtc_get_time_date(¤t_date, ¤t_time); + rtc_get_time_date(¤t_date, ¤t_time); #endif /*use a default time/date*/ current_time.second = 0; @@ -313,21 +313,21 @@ Aug 02, 2006 REF:OMAPS00083404 Prabakar R (a0393213) Description: Removal of clone code: entity GDI Solution: Two similar functions(rtc_get_time_date() and rtc_get_alarm()) are made into one function rtc_get_time_date(). - As a result, interface for rtc_get_time_date() has been changed. Change has been done here to be + As a result, interface for rtc_get_time_date() has been changed. Change has been done here to be consistent with the new interface. */ #if 0 - rtc_get_time_date(¤t_date, ¤t_time,RTC_TIME_TYPE_CURRENT); + rtc_get_time_date(¤t_date, ¤t_time,RTC_TIME_TYPE_CURRENT); #else - rtc_get_time_date(¤t_date, ¤t_time); + rtc_get_time_date(¤t_date, ¤t_time); #endif - + // Issue Number : MMI-SPR-12159 on 07/04/04 by Rashmi C N and Deepa M D // change by Sasken ( Rashmi C N and Deepa M D) on April 07th 2004 // Bug : The AM PM for 12 hour fomrat was not being displayed, Also there were some bugs with the 12 hour fomat // Change 1: Uncommented the above line "rtc_get_time_date(¤t_date, ¤t_time); " // as the time was not getting refreshed when the time format was changed - // Change 2 : To display the time in appropriate format in idle screen + // Change 2 : To display the time in appropriate format in idle screen if(current_time.format==RTC_TIME_FORMAT_12HOUR) { @@ -335,7 +335,7 @@ sprintf(time_string, "%02d:%02d pm ", current_time.hour, current_time.minute); else sprintf(time_string, "%02d:%02d am ", current_time.hour, current_time.minute); - } + } else sprintf(time_string, "%02d:%02d", current_time.hour, current_time.minute); return time_string; @@ -375,13 +375,13 @@ Aug 02, 2006 REF:OMAPS00083404 Prabakar R (a0393213) Description: Removal of clone code: entity GDI Solution: Two similar functions(rtc_get_time_date() and rtc_get_alarm()) are made into one function rtc_get_time_date(). - As a result, interface for rtc_get_time_date() has been changed. Change has been done here to be + As a result, interface for rtc_get_time_date() has been changed. Change has been done here to be consistent with the new interface. */ #if 0 - rtc_get_time_date(¤t_date, ¤t_time,RTC_TIME_TYPE_CURRENT); + rtc_get_time_date(¤t_date, ¤t_time,RTC_TIME_TYPE_CURRENT); #else - rtc_get_time_date(¤t_date, ¤t_time); + rtc_get_time_date(¤t_date, ¤t_time); #endif #endif return ¤t_date; @@ -404,13 +404,13 @@ Aug 02, 2006 REF:OMAPS00083404 Prabakar R (a0393213) Description: Removal of clone code: entity GDI Solution: Two similar functions(rtc_get_time_date() and rtc_get_alarm()) are made into one function rtc_get_time_date(). - As a result, interface for rtc_get_time_date() has been changed. Change has been done here to be + As a result, interface for rtc_get_time_date() has been changed. Change has been done here to be consistent with the new interface. */ #if 0 - rtc_get_time_date(¤t_date, ¤t_time,RTC_TIME_TYPE_CURRENT); + rtc_get_time_date(¤t_date, ¤t_time,RTC_TIME_TYPE_CURRENT); #else - rtc_get_time_date(¤t_date, ¤t_time); + rtc_get_time_date(¤t_date, ¤t_time); #endif #endif return ¤t_time; @@ -433,7 +433,7 @@ #ifndef WIN32 int result; T_MFW_ALARM_INFO alarmInfo; - + /*SPR 2639, save alarm info to FFS*/ /***************************Go-lite Optimization changes Start***********************/ //Aug 16, 2004 REF: CRR 24323 Deepa M.D @@ -456,13 +456,13 @@ { TRACE_EVENT("Format success"); } - else + else { TRACE_EVENT("FFS NOT formatted "); //FFS Format failed return ERROR return MfwResErr; } - + } else { @@ -477,35 +477,35 @@ case EFFS_OK: TRACE_EVENT("Created mmi!!"); break; - case EFFS_EXISTS: + case EFFS_EXISTS: TRACE_EVENT("EFFS_EXISTS!"); break; - case EFFS_NAMETOOLONG: + case EFFS_NAMETOOLONG: TRACE_EVENT("EFFS_NAMETOOLONG!"); break; - case EFFS_BADNAME: + case EFFS_BADNAME: TRACE_EVENT("EFFS_BADNAME!"); break; - case EFFS_NOSPACE: + case EFFS_NOSPACE: TRACE_EVENT("EFFS_NOSPACE!"); - case EFFS_FSFULL: + case EFFS_FSFULL: TRACE_EVENT("EFFS_FSFULL!"); break; - case EFFS_MEMORY: + case EFFS_MEMORY: TRACE_EVENT("EFFS_MEMORY!"); break; - case EFFS_MSGSEND: + case EFFS_MSGSEND: TRACE_EVENT("EFFS_MSGSEND!"); break; default: TRACE_EVENT("default!"); break; - + } - - + + result =ffs_fwrite("/mmi/alarminfo",&alarmInfo, sizeof(T_MFW_ALARM_INFO)); - + if (result<0) { TRACE_EVENT("RTC alarm files not written"); return MfwResErr; @@ -721,7 +721,7 @@ void mfw_td_signal (MfwEvt event, void *para) { UBYTE temp = dspl_Enable(0); - + if (mfwSignallingMethod EQ 0) { @@ -797,31 +797,31 @@ */ int mfw_td_sign_exec (MfwHdr *cur_elem, MfwEvt event, T_MFW_TD_PARA *para) -{ - +{ + while (cur_elem) { - - + + if (cur_elem->type == MfwTypTd) { - + T_MFW_TD *td_data; td_data = (T_MFW_TD *) cur_elem->data; - - + + if (td_data->emask & event) { td_data->event = event; - + // Jan 06,2004 REF: CRR 27859 xkundadu // Description: Clock: Alarm does not go off even if timer times out. // Solution: Assign para to NULL, instead of *para = NULL which is not correct. - + // para = NULL; /*we're not passing any data to MMI*/ // RAVI - + if (td_data->handler) { // PATCH LE 06.06.00 @@ -930,13 +930,13 @@ Aug 02, 2006 REF:OMAPS00083404 Prabakar R (a0393213) Description: Removal of clone code: entity GDI Solution: Two similar functions(rtc_get_time_date() and rtc_get_alarm()) are made into one function rtc_get_time_date(). - As a result, interface for rtc_get_time_date() has been changed. Change has been done here to be + As a result, interface for rtc_get_time_date() has been changed. Change has been done here to be consistent with the new interface. */ #if 0 - rtc_get_time_date(¤t_date, ¤t_time,RTC_TIME_TYPE_CURRENT); + rtc_get_time_date(¤t_date, ¤t_time,RTC_TIME_TYPE_CURRENT); #else - rtc_get_time_date(¤t_date, ¤t_time); + rtc_get_time_date(¤t_date, ¤t_time); #endif timStart(timer_handle);/*restart timer */ @@ -953,7 +953,7 @@ if (alarm_date.day != NULL) { if (dates_match(¤t_date, &alarm_date)) { if (times_match(¤t_time, &alarm_time)) - { + { mfw_td_signal(MFW_TD_ALARM, NULL); mfw_td_cancel_alarm();