contentstorage/casrv/cawidgetscanner/src/cawidgetdescription.cpp
changeset 106 e78d6e055a5b
parent 99 7aaf39b772ac
child 107 b34d53f6acdf
equal deleted inserted replaced
102:8b8b34fa9751 106:e78d6e055a5b
   539         entry->AddAttributeL( KCaAttrMmcId, iMmcId );
   539         entry->AddAttributeL( KCaAttrMmcId, iMmcId );
   540         }
   540         }
   541     if ( iLibrary != KNullDesC )
   541     if ( iLibrary != KNullDesC )
   542         {
   542         {
   543         entry->AddAttributeL(KAttrWidgetLibrary, iLibrary);
   543         entry->AddAttributeL(KAttrWidgetLibrary, iLibrary);
   544         entry->SetFlags(entry->GetFlags() | ERemovable);
       
   545         if (WidgetScannerUtils::IsFileOnDrive( iLibrary,
       
   546                 DriveInfo::EDefaultRom ) )
       
   547             {
       
   548             entry->SetFlags( entry->GetFlags() & ~ERemovable );
       
   549             }
       
   550         }
   544         }
   551     if ( iPath != KNullDesC )
   545     if ( iPath != KNullDesC )
   552         {
   546         {
   553         entry->AddAttributeL(KAttrWidgetPath, iPath);
   547         entry->AddAttributeL(KAttrWidgetPath, iPath);
   554         }
   548         }