eventsui/eventsmgmtui/src/evtmgmtuimodel.cpp
branchRCL_3
changeset 9 91123d004e8f
parent 0 522cd55cc3d7
equal deleted inserted replaced
8:41042d2af523 9:91123d004e8f
   147 	
   147 	
   148 	// Format "%d\t%S\t%S\t%d"
   148 	// Format "%d\t%S\t%S\t%d"
   149 	
   149 	
   150 	// Append the Icon ID
   150 	// Append the Icon ID
   151 	if( aIndex==0 )
   151 	if( aIndex==0 )
   152 	    ptr.AppendNum( 0 );
   152 	    ptr.AppendNum( 1 );
   153 	else
   153 	else
   154 	    {	
   154 	    {	
   155 		// Get the Index based on the Status Filter
   155 		// Get the Index based on the Status Filter
   156 		aIndex = IndexBasedOnFilter( aIndex );    
   156 		aIndex = IndexBasedOnFilter( aIndex );    
   157 	    switch(iEventsArray[aIndex-1]->EventStatus())
   157 	    switch(iEventsArray[aIndex-1]->EventStatus())
   158             {
   158             {
   159             case EActive:
   159             case EActive:
   160                 {
   160                 {
   161                 ptr.AppendNum( 1 );
   161                 ptr.AppendNum( 2 );
   162                 break;
   162                 break;
   163                 }
   163                 }
   164             case EDraft:
   164             case EDraft:
   165                 {
   165                 {
   166                 ptr.AppendNum( 2 );
   166                 ptr.AppendNum( 3 );
   167                 break;
   167                 break;
   168                 }           
   168                 }           
   169             case ECompleted:
   169             case ECompleted:
   170                 {
   170                 {
   171                 ptr.AppendNum( 3 );
   171                 ptr.AppendNum( 4 );
   172                 break;
   172                 break;
   173                 }
   173                 }
   174             }
   174             }
   175 	    }
   175 	    }
   176 	
   176 	
   207 	    	    delete localPlace;   
   207 	    	    delete localPlace;   
   208 				} 
   208 				} 
   209     	    }
   209     	    }
   210     	ptr.Append( EKeyTab );	
   210     	ptr.Append( EKeyTab );	
   211     	if( iEventsArray[aIndex-1]->Repeat() )
   211     	if( iEventsArray[aIndex-1]->Repeat() )
   212     	    ptr.AppendNum(4);
   212     	    ptr.AppendNum(5);
   213 	    }	
   213 	    }	
   214 	
   214 	
   215     return *iBuffer;
   215     return *iBuffer;
   216 	}
   216 	}
   217         
   217