equal
deleted
inserted
replaced
32 #include "xnpanic.h" |
32 #include "xnpanic.h" |
33 |
33 |
34 #include "debug.h" |
34 #include "debug.h" |
35 |
35 |
36 // Constants |
36 // Constants |
37 const TInt KLoadDelay( 100000 ); |
37 const TInt KLoadDelay( 10000 ); |
38 const TInt KInterval( 10000 ); |
38 const TInt KInterval( 10000 ); |
39 |
39 |
40 // ============================ LOCAL FUNCTIONS ================================ |
40 // ============================ LOCAL FUNCTIONS ================================ |
41 |
41 |
42 // ============================ MEMBER FUNCTIONS =============================== |
42 // ============================ MEMBER FUNCTIONS =============================== |
487 { |
487 { |
488 __PRINTS( "*** CXnViewData::DoLoadPublishersL" ); |
488 __PRINTS( "*** CXnViewData::DoLoadPublishersL" ); |
489 |
489 |
490 CXnViewData* self = static_cast< CXnViewData* >( aAny ); |
490 CXnViewData* self = static_cast< CXnViewData* >( aAny ); |
491 |
491 |
|
492 CXnAppUiAdapter* appui = static_cast< CXnAppUiAdapter* >( iAvkonAppUi ); |
|
493 |
492 RPointerArray< CXnPluginData >& plugins( self->PluginData() ); |
494 RPointerArray< CXnPluginData >& plugins( self->PluginData() ); |
493 |
495 |
494 for ( TInt i = self->iLoadIndex; i < plugins.Count(); i++ ) |
496 for ( TInt i = self->iLoadIndex; i < plugins.Count(); i++ ) |
495 { |
497 { |
496 if ( !plugins[i]->Occupied() ) |
498 if ( !plugins[i]->Occupied() ) |
519 ret = KErrNone; |
521 ret = KErrNone; |
520 } |
522 } |
521 |
523 |
522 if( ret != KErrNone ) |
524 if( ret != KErrNone ) |
523 { |
525 { |
524 self->iManager.UnloadWidgetFromPluginL( *plugin, ETrue ); |
526 self->iManager.UnloadWidgetFromPluginL( *plugin, ETrue ); |
525 |
|
526 self->iShowContentRemoved = ETrue; |
527 self->iShowContentRemoved = ETrue; |
527 } |
528 } |
528 |
|
529 } |
529 } |
530 else |
530 else |
531 { |
531 { |
532 TInt reason( self->VirginPublishers() ? |
532 TInt reason( self->VirginPublishers() ? |
533 EAiFwSystemStartup : EAiFwPageStartup ); |
533 EAiFwSystemStartup : EAiFwPageStartup ); |
540 |
540 |
541 for ( TInt i = 0; i < self->iContentSourceNodes.Count(); i++ ) |
541 for ( TInt i = 0; i < self->iContentSourceNodes.Count(); i++ ) |
542 { |
542 { |
543 CXnNodeAppIf& plugin( self->iContentSourceNodes[i]->AppIfL() ); |
543 CXnNodeAppIf& plugin( self->iContentSourceNodes[i]->AppIfL() ); |
544 |
544 |
545 self->iManager.AppUiAdapter().LoadPublisher( plugin, reason ); |
545 appui->LoadPublisher( plugin, reason ); |
546 } |
546 } |
547 |
547 |
548 if ( self->iShowContentRemoved ) |
548 if ( self->iShowContentRemoved ) |
549 { |
549 { |
550 self->ShowContentRemovedError(); |
550 self->ShowContentRemovedError(); |
551 self->iShowContentRemoved = EFalse; |
551 self->iShowContentRemoved = EFalse; |
552 } |
552 } |
|
553 |
|
554 // Fire UI ready blindly here, it will be handled in AiFw if needed |
|
555 appui->HandleUiReadyEventL(); |
553 } |
556 } |
554 |
557 |
555 __PRINTS( "*** CXnViewData::DoLoadPublishersL - done" ); |
558 __PRINTS( "*** CXnViewData::DoLoadPublishersL - done" ); |
556 |
559 |
557 return KErrNone; |
560 return KErrNone; |