375 cmdState.PopCleanup(); |
375 cmdState.PopCleanup(); |
376 } |
376 } |
377 } |
377 } |
378 |
378 |
379 // --------------------------------------------------------------------------- |
379 // --------------------------------------------------------------------------- |
|
380 // CCCAppCommLauncherMenuHandler::ExecutePbk2CmdSendBCardL |
|
381 // --------------------------------------------------------------------------- |
|
382 // |
|
383 void CCCAppCommLauncherPbkCmd::ExecutePbk2CmdSendBCardL( const TDesC8& aContact ) |
|
384 { |
|
385 TCCAppCommandState& cmdState( iPlugin.CommandState() ); |
|
386 if ( !cmdState.IsRunning() ) |
|
387 { |
|
388 cmdState.SetRunningAndPushCleanupL(); |
|
389 |
|
390 iPbk2CommandId = EPbk2CmdSend; |
|
391 |
|
392 if( iLinks ) |
|
393 { |
|
394 delete iLinks; |
|
395 iLinks = NULL; |
|
396 } |
|
397 |
|
398 iLinks = iAppServices->ContactManager().CreateLinksLC( aContact ); |
|
399 |
|
400 if ( iLinks->Count() > 0 ) |
|
401 { |
|
402 // operation completes by StoreReady, |
|
403 // StoreUnavailable or HandleStoreEventL |
|
404 ( iLinks->At( 0 ) ).ContactStore().OpenL( *this ); |
|
405 } |
|
406 |
|
407 CleanupStack::Pop( 1 ); // iLinks (deleted in destructor) |
|
408 cmdState.PopCleanup(); |
|
409 } |
|
410 } |
|
411 |
|
412 // --------------------------------------------------------------------------- |
380 // CCCAppCommLauncherMenuHandler::HandleError |
413 // CCCAppCommLauncherMenuHandler::HandleError |
381 // --------------------------------------------------------------------------- |
414 // --------------------------------------------------------------------------- |
382 // |
415 // |
383 void CCCAppCommLauncherPbkCmd::HandleError( TInt aError ) |
416 void CCCAppCommLauncherPbkCmd::HandleError( TInt aError ) |
384 { |
417 { |