alarmui/src/AlmAlarmInfo.cpp
changeset 23 fd30d51f876b
parent 18 c198609911f9
child 89 b57382753122
--- a/alarmui/src/AlmAlarmInfo.cpp	Fri Apr 16 14:57:40 2010 +0300
+++ b/alarmui/src/AlmAlarmInfo.cpp	Mon May 03 12:30:32 2010 +0300
@@ -222,7 +222,7 @@
             {
             SetupClockAlarmL( aAlarm );
             // Set the alarm type
-            iAlarmInfo->iIsClockAlarm = ETrue;
+			iAlarmInfo->iAlarmAlertType = CAlarmUtils::EAlarmTypeClock;
             }
         break;
 
@@ -230,7 +230,7 @@
             {
             // TODO: Handle this case 
             SetupUnknownAlarmL( aAlarm );
-            iAlarmInfo->iIsClockAlarm = ETrue;
+            iAlarmInfo->iAlarmAlertType = CAlarmUtils::EAlarmTypeOther;
             }
         break;
 
@@ -242,7 +242,7 @@
                 User::Leave( KErrCancel );
                 }
             // Set the alarm type
-            iAlarmInfo->iIsClockAlarm = EFalse;
+            iAlarmInfo->iAlarmAlertType = CAlarmUtils::EAlarmTypeCalendar;
             
             // Fetch the calendar entry and instance time
             CCalEntry* entry = NULL;
@@ -278,17 +278,30 @@
                     // TODO : Format text based on type of entry
                     // SetupAppointmentAlarmL( aAlarm );
                     iAlarmInfo->iTime = instanceTime;
+                    iAlarmInfo->iIsTimed = ETrue;
                     }
                 break;
 
                 case CCalEntry::ETodo:
                     {
                     // TODO : Format text based on type of entry
-                    // SetupToDoAlarmL( aAlarm );
+                    //SetupToDoAlarmL( aAlarm );
+                    iAlarmInfo->iAlarmAlertType = CAlarmUtils::EAlarmTypeTodo;
                     iAlarmInfo->iTime = TTime( 0 );
+                    iAlarmInfo->iIsTimed = EFalse;
+                    // No Location is there for todo alarms
+                    iAlarmInfo->iLocation = HBufC::NewL( 0 );
                     }
                 break;
-
+                
+                case CCalEntry::EEvent:
+                    {
+                    // No time information for an all day event	
+                    iAlarmInfo->iTime = TTime( 0 );
+                    iAlarmInfo->iIsTimed = EFalse;
+                    }
+                break;
+                
                 default:
                     {
                     // TODO : Format text based on type of entry