22 |
22 |
23 #include <e32base.h> |
23 #include <e32base.h> |
24 #include "dcmoclientserver.h" |
24 #include "dcmoclientserver.h" |
25 #include "dcmoconst.h" |
25 #include "dcmoconst.h" |
26 #include "dcmonotifieraob.h" |
26 #include "dcmonotifieraob.h" |
27 |
27 #include <lawmocallbackinterface.h> |
28 // CONSTANTS |
28 // CONSTANTS |
29 const TUid KCRUidDCMOServer={0x2001FE47}; |
29 const TUid KCRUidDCMOServer={0x2001FE47}; |
30 const TInt KDCMOKeyMaxNumber = 16; |
30 const TInt KDCMOKeyMaxNumber = 16; |
31 // FORWARD DECLARATIONS |
31 // FORWARD DECLARATIONS |
32 // CLASS DECLARATION |
32 // CLASS DECLARATION |
33 |
33 class CLAWMOPluginInterface; |
34 /** |
34 /** |
35 * CDCMOServer |
35 * CDCMOServer |
36 * Description. |
36 * Description. |
37 */ |
37 */ |
38 |
38 |
39 |
39 |
40 class CDCMOServer : public CServer2 |
40 class CDCMOServer : public CServer2, |
|
41 public MLawmoPluginWipeObserver |
41 { |
42 { |
42 friend class CDCMOSession; |
43 friend class CDCMOSession; |
43 friend class CDCMONotifierAob; |
44 friend class CDCMONotifierAob; |
44 |
45 |
45 public: |
46 public: |
164 * Set the iStarter value |
170 * Set the iStarter value |
165 * @param aValue, ETrue if it is Starter else EFalse |
171 * @param aValue, ETrue if it is Starter else EFalse |
166 * @return |
172 * @return |
167 */ |
173 */ |
168 void SetStarter(TBool aValue); |
174 void SetStarter(TBool aValue); |
169 |
175 |
|
176 TLawMoStatus WipeItem(TInt aValue=0); |
|
177 |
|
178 TLawMoStatus WipeAllItem(); |
|
179 |
|
180 TLawMoStatus GetListItemL(TDesC& item, TDes& strValue); |
|
181 |
|
182 TLawMoStatus GetToBeWipedL(TDesC& item, TDes& wipeValue); |
|
183 |
|
184 TLawMoStatus SetToBeWipedL(TDesC& item, TInt wipeValue); |
|
185 |
170 private: |
186 private: |
171 |
187 |
172 /** |
188 /** |
173 * Get the uid of plug-in adapter |
189 * Get the uid of plug-in adapter |
174 * @param aCategory |
190 * @param aCategory |
175 * @return the uid |
191 * @return the uid |
176 */ |
192 */ |
177 TUid GetAdapterUidL(const TDesC& aCategory); |
193 TUid GetAdapterUidL(const TDesC& aCategory, TBool aIsLawmo = EFalse); |
178 |
194 |
179 /** |
195 /** |
180 * Finds whether the plug-in adapter is a generic category |
196 * Finds whether the plug-in adapter is a generic category |
181 * @param aCategory |
197 * @param aCategory |
182 * @return the integer |
198 * @return the integer |
183 */ |
199 */ |
184 TInt GetLocalCategoryL(const TDesC& aCategory); |
200 TInt GetLocalCategoryL(const TDesC& aCategory); |
185 |
201 |
|
202 void GetLawmoPluginUidsL(); |
|
203 |
|
204 void StartDMNetworkMonitorL(TDesC& aServerId, TInt iapid=0); |
186 private: |
205 private: |
187 RArray<dcmoInfoList> idcmoArray; |
206 RArray<dcmoInfoList> idcmoArray; |
188 static TInt iSessionCount; |
207 static TInt iSessionCount; |
189 TBool iStarter; |
208 TBool iStarter; |
190 CDCMONotifierAob* iNotifier; |
209 CDCMONotifierAob* iNotifier; |
|
210 RArray<TUid> ilawmoPluginUidToBeWiped; |
|
211 RArray<CLAWMOPluginInterface*> ilawmoPlugins; |
|
212 TInt iwipeStatus; |
|
213 TInt iCount; |
|
214 TInt iSessionIap; |
191 }; |
215 }; |
192 |
216 |
193 #endif //__DCMO_SERVER_H__ |
217 #endif //__DCMO_SERVER_H__ |