/* ----------------------------------------------------------------------------- ---------------------------------------------------------------------------- */ void CCrashContainer::ChangeIconAndNameL(void) { CEikStatusPane* sp = ((CAknAppUi*)iEikonEnv->EikAppUi())->StatusPane(); if(sp) { CAknTitlePane* TitlePane = STATIC_CAST(CAknTitlePane*,sp->ControlL(TUid::Uid(EEikStatusPaneUidTitle))); TitlePane->SetTextL(KCrashApplicationName); CAknContextPane* ContextPane = (CAknContextPane *)sp->ControlL(TUid::Uid(EEikStatusPaneUidContext)); if(ContextPane) { TFindFile AppFile(CCoeEnv::Static()->FsSession()); if(KErrNone == AppFile.FindByDir(KCrashIconsFileName, KNullDesC)) { TInt BgIndex(0),BgMask(1); if(iServerIsOn) { BgIndex = 2; BgMask = 3; } if(AknIconUtils::IsMifFile(AppFile.File())) { AknIconUtils::ValidateLogicalAppIconId(AppFile.File(), BgIndex,BgMask); } ContextPane->SetPictureFromFileL(AppFile.File(),BgIndex,BgMask); } } } }
void CNPRStoryListBoxView::SetupStatusPaneL() { // reset the context pane TUid contextPaneUid = TUid::Uid( EEikStatusPaneUidContext ); CEikStatusPaneBase::TPaneCapabilities subPaneContext = StatusPane()->PaneCapabilities( contextPaneUid ); if ( subPaneContext.IsPresent() && subPaneContext.IsAppOwned() ) { CAknContextPane* context = static_cast< CAknContextPane* > ( StatusPane()->ControlL( contextPaneUid ) ); context->SetPictureToDefaultL(); } // setup the title pane TUid titlePaneUid = TUid::Uid( EEikStatusPaneUidTitle ); CEikStatusPaneBase::TPaneCapabilities subPaneTitle = StatusPane()->PaneCapabilities( titlePaneUid ); if ( subPaneTitle.IsPresent() && subPaneTitle.IsAppOwned() ) { CAknTitlePane* title = static_cast< CAknTitlePane* >( StatusPane()->ControlL( titlePaneUid ) ); TResourceReader reader; iEikonEnv->CreateResourceReaderLC( reader, R_NPRSTORY_LIST_BOX_TITLE_RESOURCE ); title->SetFromResourceL( reader ); CleanupStack::PopAndDestroy(); // reader internal state } }
/* ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- */ void CMainContainer::HandlerExitL(CYTasksContainer* /*aHandler*/) { delete iYTasksContainer; iYTasksContainer = NULL; CEikStatusPane* sp = ((CAknAppUi*)iEikonEnv->EikAppUi())->StatusPane(); if(sp) { CAknTitlePane* TitlePane = STATIC_CAST(CAknTitlePane*,sp->ControlL(TUid::Uid(EEikStatusPaneUidTitle))); TitlePane->SetTextToDefaultL(); CAknContextPane* ContextPane = (CAknContextPane *)sp->ControlL(TUid::Uid(EEikStatusPaneUidContext)); if(ContextPane) { ContextPane->SetPictureToDefaultL(); } if(sp->CurrentLayoutResId() != R_AVKON_STATUS_PANE_LAYOUT_USUAL) { sp->SwitchLayoutL(R_AVKON_STATUS_PANE_LAYOUT_USUAL); } sp->DrawNow(); } if(iTimeOutTimer) { iTimeOutTimer->After(KSplashTimeOut); } else { if(iGridIsOn) MakeGridBoxL(); else MakeListBoxL(); } SetMenuL(); DrawNow(); }