javamanager/javasettings/appmngrplugin/src/appmngr2midletappinfo.cpp
branchRCL_3
changeset 23 e5618cc85d74
parent 14 04becd199f91
child 24 6c158198356e
equal deleted inserted replaced
21:4376525cdefb 23:e5618cc85d74
   634     if (attribute)
   634     if (attribute)
   635     {
   635     {
   636         iDataSize = attribute->Value().AllocL();
   636         iDataSize = attribute->Value().AllocL();
   637     }
   637     }
   638     // Description
   638     // Description
   639     delete attribute;
       
   640     attribute = aEntry->AttributeL(KMIDletDescription()); // no ownership
   639     attribute = aEntry->AttributeL(KMIDletDescription()); // no ownership
   641     if (attribute)
   640     if (attribute)
   642     {
   641     {
   643         iDescription = attribute->Value().AllocL();
   642         iDescription = attribute->Value().AllocL();
   644     }
   643     }
   645     // Info URL
   644     // Info URL
   646     delete attribute;
       
   647     attribute = aEntry->AttributeL(KMIDletInfoURL()); // no ownership
   645     attribute = aEntry->AttributeL(KMIDletInfoURL()); // no ownership
   648     if (attribute)
   646     if (attribute)
   649     {
   647     {
   650         iInfoUrl = attribute->Value().AllocL();
   648         iInfoUrl = attribute->Value().AllocL();
   651     }
   649     }
   652     // Update URL
   650     // Update URL
   653     delete attribute;
       
   654     attribute = aEntry->AttributeL(KNokiaUpdate()); // no ownership
   651     attribute = aEntry->AttributeL(KNokiaUpdate()); // no ownership
   655     if (attribute)
   652     if (attribute)
   656     {
   653     {
   657         iUpdateUrl = attribute->Value().AllocL();
   654         iUpdateUrl = attribute->Value().AllocL();
   658     }
   655     }
   662         if (attribute)
   659         if (attribute)
   663         {
   660         {
   664             iUpdateUrl = attribute->Value().AllocL();
   661             iUpdateUrl = attribute->Value().AllocL();
   665         }
   662         }
   666     }
   663     }
   667     delete attribute;
       
   668     // Use localized midlet suite name if it exists
   664     // Use localized midlet suite name if it exists
   669     attribute = aEntry->AttributeL(KNokiaMIDletName()); // no ownership
   665     attribute = aEntry->AttributeL(KNokiaMIDletName()); // no ownership
   670     if (attribute)
   666     if (attribute)
   671     {
   667     {
   672         iLocalizedMIDletName = attribute->Value().AllocL();
   668         iLocalizedMIDletName = attribute->Value().AllocL();
   674     else
   670     else
   675     {
   671     {
   676         // Use non-localized name
   672         // Use non-localized name
   677         iLocalizedMIDletName = aEntry->Name().AllocL();
   673         iLocalizedMIDletName = aEntry->Name().AllocL();
   678     }
   674     }
   679     delete attribute;
       
   680 
   675 
   681     RArray<TUid> midletUids;
   676     RArray<TUid> midletUids;
   682     CleanupClosePushL(midletUids);
   677     CleanupClosePushL(midletUids);
   683     iEntry->GetEmbeddedEntries(midletUids);
   678     iEntry->GetEmbeddedEntries(midletUids);
   684 
   679 
   694         attributeName.AppendNum((i+1));
   689         attributeName.AppendNum((i+1));
   695         attribute = aEntry->AttributeL(attributeName);
   690         attribute = aEntry->AttributeL(attributeName);
   696         if (attribute)
   691         if (attribute)
   697         {
   692         {
   698             contentLength += attribute->Value().Length();
   693             contentLength += attribute->Value().Length();
   699             delete attribute;
       
   700         }
   694         }
   701         else
   695         else
   702         {
   696         {
   703             // Non-localized MIDlet name
   697             // Non-localized MIDlet name
   704             Java::CJavaRegistryApplicationEntry* midlet
   698             Java::CJavaRegistryApplicationEntry* midlet
   735             else
   729             else
   736             {
   730             {
   737                 ptrContent.Append(KListSeparatorAndSpace);
   731                 ptrContent.Append(KListSeparatorAndSpace);
   738                 ptrContent.Append(attribute->Value());
   732                 ptrContent.Append(attribute->Value());
   739             }
   733             }
   740             delete attribute;
       
   741         }
   734         }
   742         else
   735         else
   743         {
   736         {
   744             // Non-localized MIDlet name
   737             // Non-localized MIDlet name
   745             Java::CJavaRegistryApplicationEntry* midlet
   738             Java::CJavaRegistryApplicationEntry* midlet
   793         if (attribute)
   786         if (attribute)
   794         {
   787         {
   795             iPermissions = attribute->Value().AllocL();
   788             iPermissions = attribute->Value().AllocL();
   796             iPermissions->Des().TrimAll();
   789             iPermissions->Des().TrimAll();
   797         }
   790         }
   798         delete attribute;
       
   799     }
   791     }
   800 
   792 
   801     LOG(EJavaAppMngrPlugin, EInfo, "- CAppMngr2MidletAppInfo::ConstructL");
   793     LOG(EJavaAppMngrPlugin, EInfo, "- CAppMngr2MidletAppInfo::ConstructL");
   802 }
   794 }
   803 
   795