// -------------------------------------------------------------------------- // CMSBaseView::SetTitlePaneTextL() // Sets text to title pane. // -------------------------------------------------------------------------- void CMSBaseView::SetTitlePaneTextL( TInt aResourceId ) { LOG(_L("[MediaServant]\t CMSBaseView::SetTitlePaneTextL")); // Fetches pointer to the default title pane control. CAknTitlePane* titlePane = static_cast<CAknTitlePane*>( StatusPane()->ControlL( TUid::Uid( EEikStatusPaneUidTitle ) ) ); // Makes and sets text which is used title pane. if ( aResourceId == KMSDefaultTitleId ) { titlePane->SetTextToDefaultL(); } else { TBuf<KMSTitleBufLength> titleText( 0 ); iCoeEnv->ReadResourceL( titleText, aResourceId ); titlePane->SetTextL( titleText ); } }
// ---------------------------------------------------------------------------- // CAknExQueryView::SetTitlePane( TInt aOutlineId ) // Sets text of title pane. // ---------------------------------------------------------------------------- // void CAknExQueryView::SetTitlePaneL( TInt aOutlineId ) { TInt titleId( KAknExQueryInitId ); TBool defaultFlg( EFalse ); iContainer->DeleteLabelL(); iContainer->DeleteListBoxL(); iCurrentOutline = aOutlineId; // Set current display outlinenumber switch ( aOutlineId ) { case EAknExQueryNoOutline: defaultFlg = ETrue; break; case EAknExQueryOutline1: titleId = R_AKNEXQUERY_OUTLINE1; break; case EAknExQueryOutline4: titleId = R_AKNEXQUERY_OUTLINE4; break; case EAknExQueryOutline8: titleId = R_AKNEXQUERY_OUTLINE8; break; case EAknExQueryOutline10: titleId = R_AKNEXQUERY_OUTLINE10; break; case EAknExQueryOutline16: titleId = R_AKNEXQUERY_OUTLINE16; break; case EAknExQueryOutline44: titleId = R_AKNEXQUERY_OUTLINE44; break; case EAknExQueryOutline48: titleId = R_AKNEXQUERY_OUTLINE48; break; case EAknExQueryOutline52: titleId = R_AKNEXQUERY_OUTLINE52; break; case EAknExQueryOutline54: titleId = R_AKNEXQUERY_OUTLINE54; break; case EAknExQueryOutline61: titleId = R_AKNEXQUERY_OUTLINE61; break; default: defaultFlg = ETrue; break; } // Fetches pointer to the default title pane control. CAknTitlePane* titlePane = static_cast<CAknTitlePane*> ( StatusPane()->ControlL( TUid::Uid( EEikStatusPaneUidTitle ) ) ); if ( !defaultFlg ) { // Makes and sets text whitch is used title pane. TBuf<KAknExQueryTitleBufLength> MessageText( KAknExQueryBufferEmpty ); iCoeEnv->ReadResource( MessageText, titleId ); titlePane->SetTextL( MessageText ); } else { titlePane->SetTextToDefaultL(); } }