messagingappbase/msgeditor/appuisrc/MsgEditorAppUi.cpp
branchRCL_3
changeset 54 fa1df4b99609
parent 53 696bfeff199e
equal deleted inserted replaced
53:696bfeff199e 54:fa1df4b99609
   423         CMsgEditorDocument* doc = Document();
   423         CMsgEditorDocument* doc = Document();
   424 
   424 
   425         //We should not create iterator here  navi pane iterator
   425         //We should not create iterator here  navi pane iterator
   426         //will be refered  in  CMsgEditorAppUi
   426         //will be refered  in  CMsgEditorAppUi
   427          
   427          
   428         __ASSERT_DEBUG( iIterator != NULL, Panic( ENullPointer1 ) );
   428 
   429         // Next is ETrue if layout is EAknLayoutIdABRW,
   429         // Next is ETrue if layout is EAknLayoutIdABRW,
   430         // EFalse if EAknLayoutIdELAF or EAknLayoutIdAPAC
   430         // EFalse if EAknLayoutIdELAF or EAknLayoutIdAPAC
   431         if ( AknLayoutUtils::LayoutMirrored() )
   431         if ( AknLayoutUtils::LayoutMirrored() )
   432             {
   432             {
   433             aForward = !aForward;
   433             aForward = !aForward;
   434             }
   434             }
   435 
   435 		if(iIterator)
   436         if ( aForward )
   436 		{
   437             {
   437         	if ( aForward )
   438             if ( iIterator->NextMessageExists() )
   438             	{
   439                 {
   439             	if ( iIterator->NextMessageExists() )
   440                 ret = ETrue;
   440                 	{
   441                 }
   441                 	ret = ETrue;
   442             }
   442                 	}
   443         else
   443             	}
   444             {
   444         	else
   445             if ( iIterator->PreviousMessageExists() )
   445             	{
   446                 {
   446             	if ( iIterator->PreviousMessageExists() )
   447                 ret = ETrue;
   447                 	{
   448                 }
   448                 	ret = ETrue;
   449             }
   449                 	}
       
   450             	}
       
   451 		}
       
   452 	
   450         }
   453         }
   451         
   454         
   452     return ret;
   455     return ret;
   453     }
   456     }
   454 
   457 
   464     if ( iEikonEnv->StartedAsServerApp() )
   467     if ( iEikonEnv->StartedAsServerApp() )
   465         {
   468         {
   466         CMsgEditorDocument* doc = Document();
   469         CMsgEditorDocument* doc = Document();
   467         //We should not create iterator here, navi pane iterator
   470         //We should not create iterator here, navi pane iterator
   468         //will be refered  in  CMsgEditorAppUi
   471         //will be refered  in  CMsgEditorAppUi
   469         __ASSERT_DEBUG( iIterator != NULL, Panic( ENullPointer1 ) );
   472         if(iIterator)
   470 
   473             {
   471         aCurrentIndex = iIterator->CurrentMessageIndex();
   474         	aCurrentIndex = iIterator->CurrentMessageIndex();
   472         aMsgsInFolder = iIterator->MessagesInFolder();
   475         	aMsgsInFolder = iIterator->MessagesInFolder();
       
   476             }
   473         }
   477         }
   474     else
   478     else
   475         {
   479         {
   476         aCurrentIndex = 0;
   480         aCurrentIndex = 0;
   477         aMsgsInFolder = 0;
   481         aMsgsInFolder = 0;