25 #include <swi/sisregistrysession.h> |
25 #include <swi/sisregistrysession.h> |
26 #include <swi/sisregistryentry.h> |
26 #include <swi/sisregistryentry.h> |
27 #include <apgcli.h> |
27 #include <apgcli.h> |
28 #include <centralrepository.h> |
28 #include <centralrepository.h> |
29 #include <SWInstApi.h> |
29 #include <SWInstApi.h> |
30 #include <WidgetRegistryClient.h> |
30 //#include <WidgetRegistryClient.h> |
|
31 #include <usif/sif/sif.h> |
|
32 #include <usif/scr/scr.h> |
31 |
33 |
32 #include "ncdinstallationservice.h" |
34 #include "ncdinstallationservice.h" |
33 #include "ncditempurpose.h" |
35 #include "ncditempurpose.h" |
34 #include "ncdasyncoperationobserver.h" |
36 #include "ncdasyncoperationobserver.h" |
35 #include "ncdasyncsilentinstallobserver.h" |
37 #include "ncdasyncsilentinstallobserver.h" |
36 |
38 |
37 #include "ncdwidgetregistrydata.h" |
39 #include "ncdwidgetregistrydata.h" |
38 |
|
39 /** |
|
40 * New Java registry API was introduced in 3.2. We start using it |
|
41 * from 5.0 onwards because it seems that some 3.2 devices don't support |
|
42 * it entirely |
|
43 */ |
|
44 |
|
45 /* HLa - temporary java remove |
|
46 #if defined( __SERIES60_30__ ) || defined( __SERIES60_31__ ) || defined ( __S60_32__ ) |
|
47 #define USE_OLD_JAVA_API |
|
48 class MJavaRegistrySuiteEntry; |
|
49 class MJavaRegistry; |
|
50 #else |
|
51 namespace Java |
|
52 { |
|
53 class CJavaRegistry; |
|
54 } |
|
55 #endif |
|
56 */ |
|
57 |
40 |
58 class CDocumentHandler; |
41 class CDocumentHandler; |
59 |
42 |
60 class MNcdInstallationServiceObserver; |
43 class MNcdInstallationServiceObserver; |
61 class TCatalogsVersion; |
44 class TCatalogsVersion; |
384 * @param aUid |
367 * @param aUid |
385 * @return ETrue if UID was found in the ROM UID list |
368 * @return ETrue if UID was found in the ROM UID list |
386 */ |
369 */ |
387 TBool IsRomApplication( const TUid& aUid ) const; |
370 TBool IsRomApplication( const TUid& aUid ) const; |
388 |
371 |
389 |
|
390 /** |
|
391 * Gets the UID of the latest installed midlet by using the |
|
392 * Java installer's P&S key |
|
393 * |
|
394 * @param aJavaRegistry Java registry |
|
395 * @return Midlet UID |
|
396 */ |
|
397 |
|
398 /* HLa - temporary java remove |
|
399 #ifdef USE_OLD_JAVA_API |
|
400 TUid LatestMidletUidL( MJavaRegistry& aJavaRegistry ) const; |
|
401 #else |
|
402 TUid LatestMidletUidL( Java::CJavaRegistry& aJavaRegistry ) const; |
|
403 #endif |
|
404 */ |
|
405 |
|
406 static TBool MatchJava( const TDesC& aMime ); |
372 static TBool MatchJava( const TDesC& aMime ); |
407 |
373 |
408 TUid InstalledMidletUidL(); |
374 TUid InstalledMidletUidL(); |
409 |
375 |
410 void PopulateInstalledWidgetUidsL(); |
376 void PopulateInstalledWidgetUidsL(); |
457 // Java handling |
423 // Java handling |
458 |
424 |
459 // When installing java with JAD, the JAD path is stored here |
425 // When installing java with JAD, the JAD path is stored here |
460 HBufC* iJadFileName; |
426 HBufC* iJadFileName; |
461 |
427 |
462 #ifdef USE_OLD_JAVA_API |
|
463 // For comparing installed midlet uids to find out the uid for the newly |
|
464 // installed java app. |
|
465 RArray<TUid> iMIDletUids; |
|
466 #endif |
|
467 |
428 |
468 // Theme handling |
429 // Theme handling |
469 // Server session |
430 // Server session |
470 RAknsSrvSession iAknsSrv; |
431 RAknsSrvSession iAknsSrv; |
471 // Array of skin information packages |
432 // Array of skin information packages |
494 |
455 |
495 // needed for cancelling install correctly |
456 // needed for cancelling install correctly |
496 SwiUI::TServerRequest iCancelCode; |
457 SwiUI::TServerRequest iCancelCode; |
497 |
458 |
498 |
459 |
499 RWidgetRegistryClientSession iWidgetRegistry; |
460 //RWidgetRegistryClientSession iWidgetRegistry; |
500 |
461 Usif::RSoftwareComponentRegistry iScrSession; |
501 RWidgetInfoArray iInstalledWidgets; |
462 |
|
463 //RWidgetInfoArray iInstalledWidgets; |
502 RPointerArray<CExtendedWidgetInfo> iInstalledWidgetsInfos; |
464 RPointerArray<CExtendedWidgetInfo> iInstalledWidgetsInfos; |
503 }; |
465 }; |
504 |
466 |
505 #endif // C_NCD_INSTALLATION_SERVICE_IMPL_H |
467 #endif // C_NCD_INSTALLATION_SERVICE_IMPL_H |