equal
deleted
inserted
replaced
441 { |
441 { |
442 // result name to find |
442 // result name to find |
443 TLiwVariant variant; |
443 TLiwVariant variant; |
444 HBufC8* itemName = CnvUtfConverter::ConvertFromUnicodeToUtf8L(*iItemList[pIndex]->iName); |
444 HBufC8* itemName = CnvUtfConverter::ConvertFromUnicodeToUtf8L(*iItemList[pIndex]->iName); |
445 CleanupStack::PushL( itemName ); |
445 CleanupStack::PushL( itemName ); |
|
446 |
446 if ( aDataMap->FindL( *itemName, variant ) ) |
447 if ( aDataMap->FindL( *itemName, variant ) ) |
447 { |
448 { |
448 TPtrC valPtr; |
449 const TDesC& type( *iItemList[pIndex]->iType ); |
449 if( iItemList[pIndex]->iType->Des() == KText ) |
450 TPtrC valPtr; |
|
451 |
|
452 if ( type == KText ) |
450 { |
453 { |
451 valPtr.Set( variant.AsDes() ); |
454 valPtr.Set( variant.AsDes() ); |
452 iPlugin->PublishTextL( aObserver, iItemList[pIndex]->iId, valPtr ); |
455 iPlugin->PublishTextL( aObserver, iItemList[pIndex]->iId, valPtr ); |
453 } |
456 } |
454 else if( iItemList[pIndex]->iType->Des() == KImage ) |
457 else if( type == KImage ) |
455 { |
458 { |
456 TInt handle = KErrBadHandle; |
459 TInt handle = KErrBadHandle; |
457 TUint uintHandle = 0; |
460 TUint uintHandle = 0; |
458 if ( variant.Get( uintHandle ) ) |
461 if ( variant.Get( uintHandle ) ) |
459 { |
462 { |
492 } |
495 } |
493 CleanupStack::PopAndDestroy( maskKey ); |
496 CleanupStack::PopAndDestroy( maskKey ); |
494 iPlugin->PublishImageL(aObserver, iItemList[pIndex]->iId, handle, maskHandle ); |
497 iPlugin->PublishImageL(aObserver, iItemList[pIndex]->iId, handle, maskHandle ); |
495 } |
498 } |
496 } |
499 } |
|
500 else if ( type == KData ) |
|
501 { |
|
502 TPtrC8 ptr; |
|
503 |
|
504 ptr.Set( variant.AsData() ); |
|
505 |
|
506 iPlugin->PublishData( aObserver, iItemList[pIndex]->iId, ptr ); |
|
507 } |
497 } |
508 } |
498 variant.Reset(); |
509 |
499 CleanupStack::PopAndDestroy( itemName ); |
510 variant.Reset(); |
|
511 CleanupStack::PopAndDestroy( itemName ); |
500 } |
512 } |
501 } |
513 } |
502 // --------------------------------------------------------------------------- |
514 // --------------------------------------------------------------------------- |
503 // ExecuteCommandL |
515 // ExecuteCommandL |
504 // --------------------------------------------------------------------------- |
516 // --------------------------------------------------------------------------- |
747 // UpdatePublisherStatusL |
759 // UpdatePublisherStatusL |
748 // --------------------------------------------------------------------------- |
760 // --------------------------------------------------------------------------- |
749 // |
761 // |
750 void CSapiData::UpdatePublisherStatusL( TDesC& aPublisher ) |
762 void CSapiData::UpdatePublisherStatusL( TDesC& aPublisher ) |
751 { |
763 { |
752 if ( aPublisher == iPublisher ) |
764 if ( aPublisher == iPublisher && !iPlugin->IsStopped() ) |
753 { |
765 { |
754 // Resend the plugin status to publisher |
766 // Resend the plugin status to publisher |
755 CLiwDefaultList* actionsToLaunch = CLiwDefaultList::NewLC(); |
767 CLiwDefaultList* actionsToLaunch = CLiwDefaultList::NewLC(); |
756 actionsToLaunch->AppendL( TLiwVariant( KActive )); |
768 actionsToLaunch->AppendL( TLiwVariant( KActive )); |
757 if( iStartupReason->Length() != 0 ) |
769 if( iStartupReason->Length() != 0 ) |