|
1 /* |
|
2 * Copyright (c) 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: ?Description |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CAINSTALLSTRATEGY_H |
|
19 #define CAINSTALLSTRATEGY_H |
|
20 |
|
21 #include "cainstallnotifier.h" |
|
22 #include <e32base.h> |
|
23 #include <SWInstallerInternalPSKeys.h> |
|
24 |
|
25 /** |
|
26 * Strategy interface. |
|
27 * |
|
28 * @since S60 v5.0 |
|
29 */ |
|
30 class CNotifierStrategy: public CBase |
|
31 { |
|
32 public: |
|
33 |
|
34 /** |
|
35 * Notifies listener with changes in property. |
|
36 * @param aProperty to read values from. |
|
37 * @param aListener listener to notify. |
|
38 */ |
|
39 virtual void NotifyListenerL( RProperty& aProperty, |
|
40 MCaInstallListener& aListener ) = 0; |
|
41 |
|
42 }; |
|
43 |
|
44 /** |
|
45 * CA Install strategy. |
|
46 * |
|
47 * @since S60 v5.0 |
|
48 */ |
|
49 NONSHARABLE_CLASS( CCaSwiInstallStrategy ): public CNotifierStrategy |
|
50 { |
|
51 public: |
|
52 |
|
53 /** |
|
54 * Creates an instance of CCaInstallStrategy. |
|
55 * @param aProperty property to handle. |
|
56 */ |
|
57 static CCaSwiInstallStrategy* NewL( RProperty& aProperty ); |
|
58 |
|
59 /** |
|
60 * Notifies listener with changes in property. |
|
61 * @param aProperty to read values from. |
|
62 * @param aListener listener to notify. |
|
63 */ |
|
64 void NotifyListenerL( RProperty& aProperty, |
|
65 MCaInstallListener& aListener ); |
|
66 |
|
67 private: |
|
68 |
|
69 /** |
|
70 * Constructor. |
|
71 * @param aProperty property to handle. |
|
72 */ |
|
73 CCaSwiInstallStrategy( RProperty& aProperty ); |
|
74 |
|
75 /** |
|
76 * Symbian 2nd phase constructor. |
|
77 */ |
|
78 void ConstructL(); |
|
79 |
|
80 }; |
|
81 |
|
82 /** |
|
83 * CA Java install strategy. |
|
84 * |
|
85 * @since S60 v5.0 |
|
86 */ |
|
87 NONSHARABLE_CLASS( CCaJavaInstallStrategy ): public CNotifierStrategy |
|
88 { |
|
89 public: |
|
90 |
|
91 /** |
|
92 * Creates an instance of CCaInstallStrategy. |
|
93 * @param aProperty property to handle. |
|
94 */ |
|
95 static CCaJavaInstallStrategy* NewL( RProperty& aProperty ); |
|
96 |
|
97 /** |
|
98 * Notifies listener with changes in property. |
|
99 * @param aProperty to read values from. |
|
100 * @param aListener listener to notify. |
|
101 */ |
|
102 void NotifyListenerL( RProperty& aProperty, |
|
103 MCaInstallListener& aListener ); |
|
104 |
|
105 private: |
|
106 |
|
107 /** |
|
108 * Constructor. |
|
109 * @param aProperty property to handle. |
|
110 */ |
|
111 CCaJavaInstallStrategy( RProperty& aProperty ); |
|
112 |
|
113 /** |
|
114 * Symbian 2nd phase constructor. |
|
115 */ |
|
116 void ConstructL(); |
|
117 |
|
118 }; |
|
119 |
|
120 /** |
|
121 * CA Unninstal with USIF strategy. |
|
122 * |
|
123 * @since S60 v5.0 |
|
124 */ |
|
125 NONSHARABLE_CLASS( CCaUsifUninstallStrategy ): public CNotifierStrategy |
|
126 { |
|
127 public: |
|
128 |
|
129 /** |
|
130 * Creates an instance of CCaInstallStrategy. |
|
131 * @param aProperty property to handle. |
|
132 */ |
|
133 static CCaUsifUninstallStrategy* NewL( RProperty& aProperty ); |
|
134 |
|
135 /** |
|
136 * Notifies listener with changes in property. |
|
137 * @param aProperty to read values from. |
|
138 * @param aListener listener to notify. |
|
139 */ |
|
140 void NotifyListenerL( RProperty& aProperty, |
|
141 MCaInstallListener& aListener ); |
|
142 |
|
143 private: |
|
144 |
|
145 /** |
|
146 * Constructor. |
|
147 * @param aProperty property to handle. |
|
148 */ |
|
149 CCaUsifUninstallStrategy( RProperty& aProperty ); |
|
150 |
|
151 /** |
|
152 * Symbian 2nd phase constructor. |
|
153 */ |
|
154 void ConstructL(); |
|
155 |
|
156 private: |
|
157 |
|
158 /** |
|
159 * Contains uid of application that was started to uninstall. |
|
160 */ |
|
161 TInt iAppUid; |
|
162 |
|
163 }; |
|
164 |
|
165 #endif /* CAINSTALLSTRATEGY_H */ |
|
166 |
|
167 // End of File |
|
168 |