calendarui/organizerplugin/aiagendaplugin2/src/aicalendarplugin2.cpp
branchRCL_3
changeset 48 bf573002ff72
parent 5 42814f902fe6
child 67 1539a383d7b6
--- a/calendarui/organizerplugin/aiagendaplugin2/src/aicalendarplugin2.cpp	Wed Jun 09 09:40:23 2010 +0300
+++ b/calendarui/organizerplugin/aiagendaplugin2/src/aicalendarplugin2.cpp	Mon Jun 21 15:38:59 2010 +0300
@@ -673,6 +673,7 @@
         Clean( EAICalendarPlugin2EventTimeStart, lineUsage + 1 );
         Clean( EAICalendarPlugin2EventTimeEnd, lineUsage + 1 );
         Clean( EAICalendarPlugin2EventTextSecondLine, lineUsage + 1 );
+		Clean( EAICalendarPlugin2TimeStartAndSubject, lineUsage + 1 );
 
         if( ( iEventData->TomorrowEventArray().Count() > 0 ) &&
             ( iConstantData->iDaysToHandleAsNotToday == KAIRangeTomorrowOnly ) )
@@ -804,8 +805,11 @@
                 // some languages needs two rows for publishing
                 cleanInfo = EFalse;
                 // display "Next event on: [day of the week] [date]"
-                PublishIconL( EAICalendarPlugin2NoMoreEventsForToday, 0, EAICalendarPlugin2InfoIcon );
-                iCurrentObserver->Publish( *this, EAICalendarPlugin2InfoText, nextOn, 0 );
+                
+				PublishIconL( EAICalendarPlugin2NoEventsForToday, publishIndex);
+				
+				iCurrentObserver->Publish( *this, EAICalendarPlugin2TimeStartAndSubject, nextOn, publishIndex);
+                
                 }
             ++lineUsage;
             ++publishIndex;
@@ -814,9 +818,22 @@
             focusItem.iType = EAI2CalOpenOnEventDay;
             focusItem.iEntryTime = eventTime;
             focusDataArray.Append( focusItem );
-            /**
-             * 5) Clean the rest
-             */
+            
+            PublishFutureItemsForArrayL(
+                    iEventData->TomorrowEventArray(),
+                    publishIndex, // reference passed and updated inside
+                    lineUsage, // reference passed and updated inside
+                    iActualLinesInUse);
+                    
+            
+            PublishFutureItemsForArrayL(
+                            iEventData->FutureItemArray(),
+                            publishIndex, // reference passed and updated inside
+                            lineUsage, // reference passed and updated inside
+                            iActualLinesInUse);
+            
+           // 5) Clean the rest
+             
             for( ; publishIndex <= iActualLinesInUse; ++publishIndex )
                 {
                 CleanAll( publishIndex );