26 |
26 |
27 #include <SyncMLNotifierParams.h> |
27 #include <SyncMLNotifierParams.h> |
28 #include "SyncMLNotifierBase.h" // Base class |
28 #include "SyncMLNotifierBase.h" // Base class |
29 #include <SyncService.h> |
29 #include <SyncService.h> |
30 #include <centralrepository.h> |
30 #include <centralrepository.h> |
31 |
31 #include <e32property.h> |
32 // CONSTANTS |
32 // CONSTANTS |
33 // From S60\SyncMLFota |
33 // From S60\SyncMLFota |
34 const TUid KUidNSmlMediumTypeInternet = { 0x101F99F0 }; |
34 const TUid KUidNSmlMediumTypeInternet = { 0x101F99F0 }; |
35 _LIT8( KNSmlIAPId, "NSmlIapId" ); |
35 _LIT8( KNSmlIAPId, "NSmlIapId" ); |
36 _LIT8( KNSmlAlwaysAsk, "-1" ); |
36 _LIT8( KNSmlAlwaysAsk, "-1" ); |
37 const TInt KDefaultTimeoutforNotes ( 30 ); |
37 const TInt KDefaultTimeoutforNotes ( 30 ); |
38 |
38 const TUid KDisclaimerProperty = {0x101F8769}; |
|
39 const TUint32 KDisclaimerInteger = 0x00000001; |
|
40 |
39 const TUid KCRUidNSmlDSApp = { 0x101F9A1D }; |
41 const TUid KCRUidNSmlDSApp = { 0x101F9A1D }; |
40 // CLASS DECLARATION |
42 // CLASS DECLARATION |
|
43 |
|
44 class CDMDisclaimerObserver; |
41 /** |
45 /** |
42 * Notifier for launching SyncML applications |
46 * Notifier for launching SyncML applications |
43 * |
47 * |
44 * @lib SyncMLNotifier |
48 * @lib SyncMLNotifier |
45 * @since Series 60 3.0 |
49 * @since Series 60 3.0 |
66 * Returns correct SyncService depending on the Service Id |
70 * Returns correct SyncService depending on the Service Id |
67 * @param aServiceId |
71 * @param aServiceId |
68 * @return CSyncService* |
72 * @return CSyncService* |
69 */ |
73 */ |
70 CSyncService* SyncServiceL( TUint aServiceId ); |
74 CSyncService* SyncServiceL( TUint aServiceId ); |
|
75 |
|
76 /** |
|
77 * Called to complete the message |
|
78 * @param aDisclaimerAccepted |
|
79 */ |
|
80 void CompleteMessageL(TInt aDisclaimerAccepted); |
71 |
81 |
72 private: // New functions |
82 private: // New functions |
73 |
83 |
74 /** |
84 /** |
75 * Retrieves required parameters for the note and launching of the |
85 * Retrieves required parameters for the note and launching of the |
180 CSyncMLAppLaunchNotifier(); |
190 CSyncMLAppLaunchNotifier(); |
181 |
191 |
182 private: // Data |
192 private: // Data |
183 // Type of session queried |
193 // Type of session queried |
184 TSyncMLSessionTypes iSmlProtocol; |
194 TSyncMLSessionTypes iSmlProtocol; |
|
195 CDMDisclaimerObserver* iObserver; |
185 |
196 |
186 // Job identifier from the parameters |
197 // Job identifier from the parameters |
187 TInt iJobId; |
198 TInt iJobId; |
188 |
199 |
189 // Identifier of the used SyncML profile from the parameters |
200 // Identifier of the used SyncML profile from the parameters |
209 CRepository* centrep; |
220 CRepository* centrep; |
210 // To store the bearer type |
221 // To store the bearer type |
211 TInt iBearerType; |
222 TInt iBearerType; |
212 }; |
223 }; |
213 |
224 |
|
225 /** |
|
226 * CDMDisclaimerObserver class |
|
227 * |
|
228 */ |
|
229 class CDMDisclaimerObserver : public CActive |
|
230 { |
|
231 public: |
|
232 CDMDisclaimerObserver(); |
|
233 ~CDMDisclaimerObserver(); |
|
234 void WaitOnDisclaimerL(CSyncMLAppLaunchNotifier* aPtr); |
|
235 protected: |
|
236 void DoCancel(); |
|
237 void RunL(); |
|
238 TInt RunError(TInt aError); |
|
239 private: |
|
240 TInt iPropertyVal; |
|
241 RProperty iDisclaimerProperty; |
|
242 CSyncMLAppLaunchNotifier* iNot; |
|
243 }; |
214 |
244 |
215 #endif // CSYNCMLAPPLAUNCHNOTIFIER_H |
245 #endif // CSYNCMLAPPLAUNCHNOTIFIER_H |
216 |
246 |
217 // End of File |
247 // End of File |