23 #undef SYMBIAN_ENABLE_SPLIT_HEADERS //TODO this is work around |
23 #undef SYMBIAN_ENABLE_SPLIT_HEADERS //TODO this is work around |
24 #include <usif/scr/screntries.h> |
24 #include <usif/scr/screntries.h> |
25 #include <usif/scr/scr.h> |
25 #include <usif/scr/scr.h> |
26 #include <xqconversions.h> |
26 #include <xqconversions.h> |
27 #include <driveinfo.h> |
27 #include <driveinfo.h> |
|
28 #include <hbtextresolversymbian.h> |
28 |
29 |
29 #include "cauninstallnotifier.h" |
30 #include "cauninstallnotifier.h" |
30 #include "cauninstallnotifier_p.h" |
31 #include "cauninstallnotifier_p.h" |
31 #include "casoftwareregistry.h" |
32 #include "casoftwareregistry.h" |
32 #include "casoftwareregistry_p.h" |
33 #include "casoftwareregistry_p.h" |
33 #include "cadefs.h" |
34 #include "cadefs.h" |
34 #include "caarraycleanup.inl" |
35 #include "caarraycleanup.inl" |
|
36 #include "cautils.h" |
35 |
37 |
36 using namespace Usif; |
38 using namespace Usif; |
37 _LIT(KConfirmMessageKey, "MIDlet-Delete-Confirm"); |
39 _LIT(KConfirmMessageKey, "MIDlet-Delete-Confirm"); |
38 _LIT(KCaScrPropertyDomainCategory, "Domain-Category"); |
40 _LIT(KCaScrPropertyDomainCategory, "Domain-Category"); |
39 _LIT(KCaScrPropertyMidletDescryption, "MIDlet-Description"); |
41 _LIT(KCaScrPropertyMidletDescryption, "MIDlet-Description"); |
229 KCaScrPropertyDomainCategory); |
231 KCaScrPropertyDomainCategory); |
230 CleanupStack::PushL(domainProperty); |
232 CleanupStack::PushL(domainProperty); |
231 if (domainProperty && |
233 if (domainProperty && |
232 domainProperty->PropertyType() == |
234 domainProperty->PropertyType() == |
233 CPropertyEntry::ELocalizedProperty) { |
235 CPropertyEntry::ELocalizedProperty) { |
|
236 const TDesC& domainPropertyValue = static_cast<CLocalizablePropertyEntry*>( |
|
237 domainProperty)->StrValue(); |
|
238 TInt splitIndex = domainPropertyValue.Locate(','); |
|
239 RBuf qmFileName; |
|
240 qmFileName.CleanupClosePushL(); |
|
241 qmFileName.CreateL(domainPropertyValue.Right( |
|
242 domainPropertyValue.Length() - splitIndex - 1), |
|
243 domainPropertyValue.Length() - splitIndex); |
|
244 qmFileName.Append('_'); |
|
245 MenuUtils::InitTextResolverSymbianL(qmFileName); |
|
246 HBufC* translatedProtectionDomain = HbTextResolverSymbian::LoadLC( |
|
247 domainPropertyValue.Left(splitIndex)); |
234 result[CaSoftwareRegistry::componentProtectionDomainKey()] = |
248 result[CaSoftwareRegistry::componentProtectionDomainKey()] = |
235 XQConversions::s60DescToQString( |
249 XQConversions::s60DescToQString(*translatedProtectionDomain); |
236 static_cast<CLocalizablePropertyEntry*>( |
250 CleanupStack::PopAndDestroy(translatedProtectionDomain); |
237 domainProperty)->StrValue()); |
251 CleanupStack::PopAndDestroy(&qmFileName); |
238 } |
252 } |
239 |
253 |
240 CPropertyEntry *midletDescryption = |
254 CPropertyEntry *midletDescryption = |
241 scr.GetComponentPropertyL(componentId, |
255 scr.GetComponentPropertyL(componentId, |
242 KCaScrPropertyMidletDescryption); |
256 KCaScrPropertyMidletDescryption); |