|
1 /* |
|
2 * Copyright (c) 2007-2008 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: SCPEventHandler.h - This header file is used by swhandler. |
|
15 * This checks for uninstallation (presently only for sisx uninstallation) or |
|
16 * removal of memory card. Whenever there is uninstallation the database has |
|
17 * to be updated for the parameters changes. |
|
18 * This depends on Application installer (For Java: Java registry) & the SCPDatabase. |
|
19 * |
|
20 */ |
|
21 |
|
22 #ifndef SCPEVENTHANDLER_H |
|
23 #define SCPEVENTHANDLER_H |
|
24 |
|
25 //For Swi (Sis registry) |
|
26 #include <e32base.h> |
|
27 #include <swi/launcher.h> |
|
28 #include <swi/sisregistrysession.h> |
|
29 #include <swi/sisregistrypackage.h> |
|
30 #include <swi/sisregistryentry.h> |
|
31 // Sw handler for ENUM |
|
32 #include "DmEventNotifierCommon.h" |
|
33 /* Java registry |
|
34 #include <javadomainpskeys.h> |
|
35 #include <javaregistryincludes.h> |
|
36 */ |
|
37 |
|
38 const TUint32 KNSmlDMHostServer1ID = 270506498; // 0x101F9A02 |
|
39 const TUint32 KNSmlDMHostServer2ID = 270506499; // 0x101F9A03 |
|
40 const TUint32 KNSmlDMHostServer3ID = 270506500; // 0x101F9A04 |
|
41 const TUint32 KNSmlDMHostServer4ID = 270506501; // 0x101F9A05 |
|
42 |
|
43 /** |
|
44 * This checks for uninstallation (presently only for sisx uninstallation) or |
|
45 * removal of memory card. Whenever there is uninstallation the database has |
|
46 * to be updated for the parameters changes. |
|
47 * This depends Application installer & the SCPDatabase. |
|
48 * |
|
49 * @lib SCPEventHandler.lib |
|
50 */ |
|
51 |
|
52 // Clean Comments |
|
53 |
|
54 class CSCPEventHandler : public CBase |
|
55 { |
|
56 public: |
|
57 |
|
58 /** |
|
59 * Two-phased constructor. |
|
60 */ |
|
61 IMPORT_C static CSCPEventHandler* NewL(); |
|
62 |
|
63 /** |
|
64 * Two-phased constructor. |
|
65 */ |
|
66 IMPORT_C static CSCPEventHandler* NewLC(); |
|
67 |
|
68 /** |
|
69 * Destructor. |
|
70 */ |
|
71 ~CSCPEventHandler(); |
|
72 |
|
73 /** |
|
74 * Get the event from SWHandler. |
|
75 * Query the db by calling the 'db api'. |
|
76 * For each of the db entry make a call to Application Installer/ Java registry & |
|
77 * check for the state, collect all the uid's that has to change. |
|
78 * If there is need to update the database, then call SCPServer! |
|
79 * |
|
80 * @param Event - An event that has occured, has to be passed from the Sw-handler |
|
81 * May be, Memory card removal or manual uninstall etc. |
|
82 * @return None |
|
83 */ |
|
84 |
|
85 IMPORT_C void NotifyChangesL(THandlerServiceId aEvent, THandlerOperation aOperation); |
|
86 |
|
87 private: |
|
88 /** |
|
89 * C++ default constructor. |
|
90 */ |
|
91 CSCPEventHandler(); |
|
92 |
|
93 /** |
|
94 *By default Symbian 2nd phase constructor is private. |
|
95 */ |
|
96 void ConstructL(); |
|
97 |
|
98 /* Since the applications is of Symbian, => only sis files needs uid check. The Java related are commented |
|
99 inline void GetInstalledJavaUidsL(RArray<TUid>& aUids); |
|
100 inline TBool isInstalledJava(const TUid& aUid, const RArray<TUid>& aUids ) const; |
|
101 */ |
|
102 |
|
103 inline void NotifyCleanupL(RArray<TUid>& aUids); |
|
104 }; |
|
105 #endif SCPEVENTHANDLER_H |