equal
deleted
inserted
replaced
43 _LIT8( KXmluiml, "xmluiml" ); |
43 _LIT8( KXmluiml, "xmluiml" ); |
44 _LIT8( KApp, "application" ); |
44 _LIT8( KApp, "application" ); |
45 _LIT8( KViews, "views" ); |
45 _LIT8( KViews, "views" ); |
46 _LIT8( KWidget, "widget" ); |
46 _LIT8( KWidget, "widget" ); |
47 _LIT8( KUseEmptyWidget, "use_empty_widget" ); |
47 _LIT8( KUseEmptyWidget, "use_empty_widget" ); |
48 _LIT8( KRemovable, "removable" ); |
|
49 |
48 |
50 _LIT8( KEmptyWidgetUid, "0x2001F47F" ); |
49 _LIT8( KEmptyWidgetUid, "0x2001F47F" ); |
51 |
50 |
52 _LIT( KCDrive, "C:" ); |
51 _LIT( KCDrive, "C:" ); |
53 _LIT8( KTagXuikon, "xuikon" ); |
52 _LIT8( KTagXuikon, "xuikon" ); |
345 } |
344 } |
346 |
345 |
347 return EFalse; |
346 return EFalse; |
348 } |
347 } |
349 |
348 |
350 // -------------------------------------------------------------------------- |
|
351 // Removable |
|
352 // Determines whether this plugin is removable |
|
353 // -------------------------------------------------------------------------- |
|
354 // |
|
355 static TBool Removable( CXnDomNode& aPlugin ) |
|
356 { |
|
357 CXnDomAttribute* attribute( |
|
358 static_cast< CXnDomAttribute* >( |
|
359 aPlugin.AttributeList().FindByName( KRemovable ) ) ); |
|
360 |
|
361 if ( attribute && attribute->Value() == XnPropertyNames::KFalse ) |
|
362 { |
|
363 return EFalse; |
|
364 } |
|
365 |
|
366 return ETrue; |
|
367 } |
|
368 |
|
369 // ======== MEMBER FUNCTIONS ======== |
349 // ======== MEMBER FUNCTIONS ======== |
370 // -------------------------------------------------------------------------- |
350 // -------------------------------------------------------------------------- |
371 // CXnComposer::NewL |
351 // CXnComposer::NewL |
372 // Two-phased constructor. |
352 // Two-phased constructor. |
373 // -------------------------------------------------------------------------- |
353 // -------------------------------------------------------------------------- |
653 |
633 |
654 // <plugin> element |
634 // <plugin> element |
655 widget->SetOwner( node ); |
635 widget->SetOwner( node ); |
656 |
636 |
657 if ( count < plugins.Count() ) |
637 if ( count < plugins.Count() ) |
658 { |
638 { |
659 widget->SetPluginIdL( plugins[ count ]->PluginId() ); |
639 CPluginMap* plugin( plugins[count] ); |
|
640 |
|
641 widget->SetPluginIdL( plugin->PluginId() ); |
|
642 |
|
643 widget->SetLockingStatus( plugin->LockingStatus() ); |
660 } |
644 } |
661 |
645 |
662 count++; |
646 count++; |
663 } |
647 } |
664 } |
648 } |
765 { |
749 { |
766 aPluginData.SetPublisherNameL( attribute->Value() ); |
750 aPluginData.SetPublisherNameL( attribute->Value() ); |
767 } |
751 } |
768 } |
752 } |
769 } |
753 } |
770 |
754 |
771 aPluginData.SetRemovable( Removable( *widgetRoot ) ); |
|
772 |
|
773 retval = KErrNone; |
755 retval = KErrNone; |
774 } |
756 } |
775 |
757 |
776 CleanupStack::PopAndDestroy( configuration ); |
758 CleanupStack::PopAndDestroy( configuration ); |
777 |
759 |