contentstorage/casrv/cawidgetscanner/src/cawidgetdescription.cpp
changeset 109 e0aa398e6810
parent 104 9b022b1f357c
child 124 e36b2f4799c0
--- a/contentstorage/casrv/cawidgetscanner/src/cawidgetdescription.cpp	Tue Jul 06 14:37:10 2010 +0300
+++ b/contentstorage/casrv/cawidgetscanner/src/cawidgetdescription.cpp	Wed Aug 18 10:05:49 2010 +0300
@@ -161,7 +161,34 @@
 //
 // ----------------------------------------------------------------------------
 //
-TBool CCaWidgetDescription::Compare(
+CCaWidgetDescription *CCaWidgetDescription::CloneL()
+    {   
+    CCaWidgetDescription* clone = CCaWidgetDescription::NewL();
+    
+    clone->SetPathL( GetPath() );
+    clone->SetMmcIdL( GetMmcId() );
+    clone->SetStringidTitleL( GetStringIdTitle() );
+    clone->SetLibraryL( GetLibrary() );
+    clone->SetDescriptionL( GetDescription() );
+    clone->SetStringIdDescriptionL( GetStringIdDescription() );
+    clone->SetUriL( GetUri() );
+    clone->SetIconUriL( GetIconUri() );
+    clone->SetPreviewImageNameL( GetPreviewImageName() );
+    clone->SetTitleL( GetTitle() );
+    clone->SetTranslationFileNameL( GetTranslationFileName() );
+    clone->SetLibraryL( GetLibrary() );
+    clone->SetModificationTimeL( GetModificationTime() );
+    clone->SetServiceXmlL( GetServiceXml() );
+    clone->SetManifestFilePathNameL( GetManifestFilePathName() );
+    
+    return clone;
+    }
+
+// ----------------------------------------------------------------------------
+//
+// ----------------------------------------------------------------------------
+//
+TBool CCaWidgetDescription::CompareUri(
         const CCaWidgetDescription& aFirst,const CCaWidgetDescription& aSecond)
     {
     TBool result = EFalse;
@@ -541,12 +568,6 @@
     if ( iLibrary != KNullDesC )
         {
         entry->AddAttributeL(KAttrWidgetLibrary, iLibrary);
-        entry->SetFlags(entry->GetFlags() | ERemovable);
-        if (WidgetScannerUtils::IsFileOnDrive( iLibrary,
-                DriveInfo::EDefaultRom ) )
-            {
-            entry->SetFlags( entry->GetFlags() & ~ERemovable );
-            }
         }
     if ( iPath != KNullDesC )
         {