equal
deleted
inserted
replaced
81 { |
81 { |
82 iLogoImage = NULL; |
82 iLogoImage = NULL; |
83 iLogoImageMask = NULL; |
83 iLogoImageMask = NULL; |
84 iHsContentInfo = NULL; |
84 iHsContentInfo = NULL; |
85 iWidgetType = CWmWidgetData::EUnknown; |
85 iWidgetType = CWmWidgetData::EUnknown; |
|
86 iWrtType = CWmWidgetData::EUnIdentified; |
86 iPublisherUid = KNullUid; |
87 iPublisherUid = KNullUid; |
87 iLogoSize = aLogoSize; |
88 iLogoSize = aLogoSize; |
88 iAnimationTimer = NULL; |
89 iAnimationTimer = NULL; |
89 iTimeoutTimer = NULL; |
90 iTimeoutTimer = NULL; |
90 iAnimationIndex = 0; |
91 iAnimationIndex = 0; |
383 { |
384 { |
384 TInt widgetUid = aRegistryClientSession->GetWidgetUidL( aPublisherId ); |
385 TInt widgetUid = aRegistryClientSession->GetWidgetUidL( aPublisherId ); |
385 if ( widgetUid != 0 ) |
386 if ( widgetUid != 0 ) |
386 { |
387 { |
387 // WRT widget |
388 // WRT widget |
388 iPublisherUid = TUid::Uid( widgetUid ); |
389 iPublisherUid = TUid::Uid( widgetUid ); |
|
390 |
|
391 // wrt widget type |
|
392 CWidgetPropertyValue* value( NULL ); |
|
393 value = aRegistryClientSession->GetWidgetPropertyValueL( |
|
394 iPublisherUid, ENokiaWidget ); |
|
395 if ( value && *value == 1 ) |
|
396 { |
|
397 iWrtType = CWmWidgetData::EWgz; |
|
398 } |
|
399 else if ( value && *value == 2 ) |
|
400 { |
|
401 iWrtType = CWmWidgetData::EWgt; |
|
402 } |
|
403 else |
|
404 { |
|
405 iWrtType = CWmWidgetData::EUnIdentified; |
|
406 } |
|
407 |
|
408 delete value; |
|
409 value = NULL; |
|
410 |
389 } |
411 } |
390 else |
412 else |
391 { |
413 { |
392 iPublisherUid = KNullUid; |
414 iPublisherUid = KNullUid; |
393 } |
415 } |
668 // CWmWidgetData::StopUninstallAnimation |
690 // CWmWidgetData::StopUninstallAnimation |
669 // --------------------------------------------------------- |
691 // --------------------------------------------------------- |
670 // |
692 // |
671 void CWmWidgetData::StopUninstallAnimationL() |
693 void CWmWidgetData::StopUninstallAnimationL() |
672 { |
694 { |
|
695 iAsyncUninstalling = EFalse; |
673 DestroyAnimData(); |
696 DestroyAnimData(); |
674 // restore widget name |
697 // restore widget name |
675 if ( iWidgetName ) |
698 if ( iWidgetName ) |
676 { |
699 { |
677 iHsContentInfo->SetNameL( iWidgetName->Des() ); |
700 iHsContentInfo->SetNameL( iWidgetName->Des() ); |
678 delete iWidgetName; |
701 delete iWidgetName; |
679 iWidgetName = NULL; |
702 iWidgetName = NULL; |
680 } |
703 } |
681 |
704 |
682 FireDataChanged(); //redraw |
705 FireDataChanged(); //redraw |
683 iAsyncUninstalling = EFalse; |
|
684 } |
706 } |
685 |
707 |
686 // End of file |
708 // End of file |
687 |
709 |