emailuis/emailui/src/fsemailstatuspaneindicatorhandler.cpp
branchRCL_3
changeset 12 4ce476e64c59
parent 11 0396474f30f5
child 20 efd4f1afd43e
equal deleted inserted replaced
11:0396474f30f5 12:4ce476e64c59
    88                 TUid lastMPluginUidInRepository = { lastMPluginIdInRepository };
    88                 TUid lastMPluginUidInRepository = { lastMPluginIdInRepository };
    89                 prevMboxId.SetPluginId(lastMPluginUidInRepository);                
    89                 prevMboxId.SetPluginId(lastMPluginUidInRepository);                
    90                 CFreestyleEmailUiAppUi* appUi = 
    90                 CFreestyleEmailUiAppUi* appUi = 
    91                 static_cast<CFreestyleEmailUiAppUi*>( CCoeEnv::Static()->AppUi() );
    91                 static_cast<CFreestyleEmailUiAppUi*>( CCoeEnv::Static()->AppUi() );
    92                 //Write the name commonEmailRepository
    92                 //Write the name commonEmailRepository
    93                 commonEmailRepository->Set(KCmailNewEmailDisplayText,appUi->GetMailClient()->GetMailBoxByUidL(prevMboxId)->GetName());
    93                 CFSMailBox* prevMbox = appUi->GetMailClient()->GetMailBoxByUidL( prevMboxId );
       
    94                 if ( prevMbox )
       
    95                     {
       
    96                     commonEmailRepository->Set( KCmailNewEmailDisplayText, prevMbox->GetName() );
       
    97                     }
    94                 }
    98                 }
    95             }
    99             }
    96         if(numberOfMailboxes == 0)
   100         if(numberOfMailboxes == 0)
    97             {       
   101             {       
    98             // Set email indicator off.. user has checked the new emails in all the mailboxes
   102             // Set email indicator off.. user has checked the new emails in all the mailboxes