equal
deleted
inserted
replaced
32 #include <HtiLogging.h> |
32 #include <HtiLogging.h> |
33 |
33 |
34 #include <SWInstApi.h> |
34 #include <SWInstApi.h> |
35 #include <swi/sisregistrysession.h> |
35 #include <swi/sisregistrysession.h> |
36 #include <swi/sisregistrypackage.h> |
36 #include <swi/sisregistrypackage.h> |
37 #if ( SYMBIAN_VERSION_SUPPORT < SYMBIAN_4 ) |
37 #include <javaregistryincludes.h> |
38 #include <javaregistryincludes.h> |
38 #include <widgetregistryclient.h> |
39 #endif |
39 |
40 #include <WidgetRegistryClient.h> |
40 using namespace Java; |
41 |
|
42 #if ( SYMBIAN_VERSION_SUPPORT < SYMBIAN_4 ) |
|
43 using namespace Java; |
|
44 #endif |
|
45 |
41 |
46 // CONSTANTS |
42 // CONSTANTS |
47 const static TUid KAppServiceUid = { 0x1020DEC7 }; //This is Uid of AppServiceOS |
43 const static TUid KAppServiceUid = { 0x1020DEC7 }; //This is Uid of AppServiceOS |
48 |
44 |
49 //error descriptions |
45 //error descriptions |
1636 User::Leave( KErrNotFound ); |
1632 User::Leave( KErrNotFound ); |
1637 } |
1633 } |
1638 |
1634 |
1639 else if ( aMimeIndex > 2 && aMimeIndex < 7 ) // Java |
1635 else if ( aMimeIndex > 2 && aMimeIndex < 7 ) // Java |
1640 { |
1636 { |
1641 #if ( SYMBIAN_VERSION_SUPPORT < SYMBIAN_4 ) |
|
1642 RArray<TUid> uids; |
1637 RArray<TUid> uids; |
1643 CleanupClosePushL( uids ); |
1638 CleanupClosePushL( uids ); |
1644 |
1639 |
1645 CJavaRegistry* javaRegistry = CJavaRegistry::NewLC(); |
1640 CJavaRegistry* javaRegistry = CJavaRegistry::NewLC(); |
1646 javaRegistry->GetRegistryEntryUidsL( uids ); |
1641 javaRegistry->GetRegistryEntryUidsL( uids ); |
1673 } |
1668 } |
1674 CleanupStack::PopAndDestroy( javaRegistry ); |
1669 CleanupStack::PopAndDestroy( javaRegistry ); |
1675 CleanupStack::PopAndDestroy( &uids ); |
1670 CleanupStack::PopAndDestroy( &uids ); |
1676 User::LeaveIfError( uid ); |
1671 User::LeaveIfError( uid ); |
1677 return uid; |
1672 return uid; |
1678 #else |
|
1679 User::Leave( KErrNotSupported ); |
|
1680 #endif |
|
1681 } |
1673 } |
1682 |
1674 |
1683 else if ( aMimeIndex == 7 ) // Widget |
1675 else if ( aMimeIndex == 7 ) // Widget |
1684 { |
1676 { |
1685 RWidgetRegistryClientSession widgetRegistry; |
1677 RWidgetRegistryClientSession widgetRegistry; |