phonebookui/Phonebook2/CommandsExtension/src/CPbk2MergeContactsCmd.cpp
branchRCL_3
changeset 32 2828b4d142c0
parent 23 5586b4d2ec3e
child 57 2666d9724c76
equal deleted inserted replaced
26:0d28c1c5b6dd 32:2828b4d142c0
  1208 // CPbk2MergeContactsCmd::SetTitlePaneL
  1208 // CPbk2MergeContactsCmd::SetTitlePaneL
  1209 // --------------------------------------------------------------------------
  1209 // --------------------------------------------------------------------------
  1210 //
  1210 //
  1211 void CPbk2MergeContactsCmd::SetTitlePaneL( TBool aCustom )
  1211 void CPbk2MergeContactsCmd::SetTitlePaneL( TBool aCustom )
  1212     {
  1212     {
  1213     CEikStatusPane* statusPane = iAvkonAppUi->StatusPane();
  1213     if ( iAvkonAppUi )
  1214     if ( statusPane && statusPane->PaneCapabilities( TUid::Uid( EEikStatusPaneUidTitle ) ).IsPresent() )
  1214         {
  1215         {
  1215         CEikStatusPane* statusPane = iAvkonAppUi->StatusPane();
  1216         CAknTitlePane* titlePane = static_cast<CAknTitlePane*>
  1216         if ( statusPane && statusPane->PaneCapabilities( TUid::Uid( EEikStatusPaneUidTitle ) ).IsPresent() )
  1217             ( statusPane->ControlL ( TUid::Uid( EEikStatusPaneUidTitle ) ) );
  1217             {
       
  1218             CAknTitlePane* titlePane = static_cast<CAknTitlePane*>
       
  1219                 ( statusPane->ControlL ( TUid::Uid( EEikStatusPaneUidTitle ) ) );
  1218         
  1220         
  1219         if ( aCustom )
  1221             if ( aCustom )
  1220             {
  1222                 {
  1221             HBufC* title = StringLoader::LoadLC( R_QTN_PHOB_TITLE_MERGE_CONTACTS );
  1223                 HBufC* title = StringLoader::LoadLC( R_QTN_PHOB_TITLE_MERGE_CONTACTS );
  1222             titlePane->SetTextL( *title );
  1224                 titlePane->SetTextL( *title );
  1223             CleanupStack::PopAndDestroy( title );  
  1225                 CleanupStack::PopAndDestroy( title );  
  1224             }
  1226                 }
  1225         else
  1227             else
  1226             {
  1228                 {
  1227             titlePane->SetTextToDefaultL();
  1229                 titlePane->SetTextToDefaultL();
       
  1230                 }
  1228             }
  1231             }
  1229         }
  1232         }
  1230     }
  1233     }
  1231 
  1234 
  1232 // --------------------------------------------------------------------------
  1235 // --------------------------------------------------------------------------