phonebookui/Phonebook2/ccapplication/ccamycardplugin/src/ccappmycard.cpp
branchRCL_3
changeset 35 4ae315f230bc
parent 26 0d28c1c5b6dd
child 64 c1e8ba0c2b16
equal deleted inserted replaced
32:2828b4d142c0 35:4ae315f230bc
   354 //
   354 //
   355 void CCCAppMyCard::FetchMyCardL()
   355 void CCCAppMyCard::FetchMyCardL()
   356     {
   356     {
   357     if( !iStoreCallBack )
   357     if( !iStoreCallBack )
   358         {
   358         {
       
   359         if ( !iMyCard && iForceCreateMyCard )
       
   360             {
       
   361             // Disable LSK if new contact will be created
       
   362             // to avoid opening wrong menu
       
   363             iPlugin.EnableOptionsMenu( EFalse );
       
   364             }
       
   365         
   359         iStoreCallBack = CTimerCallBack::NewL(
   366         iStoreCallBack = CTimerCallBack::NewL(
   360             TCallBack( &CCCAppMyCard::OpenStoresL, this ) );
   367             TCallBack( &CCCAppMyCard::OpenStoresL, this ) );
   361 
   368 
   362         // 200 ms delay before open. Used to prevent system jamming before the
   369         // 200 ms delay before open. Used to prevent system jamming before the
   363         // UI is drawn, so that launching of mycard feels a lot faster.
   370         // UI is drawn, so that launching of mycard feels a lot faster.
   648         iEditorEliminator = dlg;
   655         iEditorEliminator = dlg;
   649         dlg->ResetWhenDestroyed( &iEditorEliminator );
   656         dlg->ResetWhenDestroyed( &iEditorEliminator );
   650         
   657         
   651         iDialogIsRunning = ETrue;
   658         iDialogIsRunning = ETrue;
   652         dlg->ExecuteLD();
   659         dlg->ExecuteLD();
       
   660         
       
   661         if( aFlags & TPbk2ContactEditorParams::ENewContact )
       
   662             {
       
   663             // Enable LSK in my card view after edit dialog is opened
       
   664             iPlugin.EnableOptionsMenu( ETrue );
       
   665             }
   653         }
   666         }
   654 	
   667 	
   655 	// if field was created, destroy it
   668 	// if field was created, destroy it
   656 	if( field )
   669 	if( field )
   657 		{
   670 		{