equal
deleted
inserted
replaced
48 // FOTA |
48 // FOTA |
49 #include "NSmlDMGenericAlert.h" |
49 #include "NSmlDMGenericAlert.h" |
50 #include "NSmlPrivateAPI.h" |
50 #include "NSmlPrivateAPI.h" |
51 // FOTA end |
51 // FOTA end |
52 #include <featmgr.h> |
52 #include <featmgr.h> |
53 const TUid KUidNotifier = { 0x101F8769 }; |
|
54 const TInt KNotifierTimeout = 300000000; // 5 min timeout |
53 const TInt KNotifierTimeout = 300000000; // 5 min timeout |
55 _LIT8 ( KNSmlDMFotaNode, "FUMO" ); |
54 _LIT8 ( KNSmlDMFotaNode, "FUMO" ); |
56 |
55 |
57 // ================= MEMBER FUNCTIONS ======================= |
56 // ================= MEMBER FUNCTIONS ======================= |
58 |
57 |
206 aAlertCode == KNSmlDMAgentClientInitAlert || |
205 aAlertCode == KNSmlDMAgentClientInitAlert || |
207 aAlertCode == KNSmlDMAgentResultAlert || |
206 aAlertCode == KNSmlDMAgentResultAlert || |
208 aAlertCode == KNSmlDMAgentNextMessage || |
207 aAlertCode == KNSmlDMAgentNextMessage || |
209 aAlertCode == KNSmlDMAgentSessionAbortAlert || |
208 aAlertCode == KNSmlDMAgentSessionAbortAlert || |
210 aAlertCode == KNSmlDMAgentDisplayAlert || |
209 aAlertCode == KNSmlDMAgentDisplayAlert || |
211 aAlertCode == KNSmlDMAgentContinueOrAbortAlert |
210 aAlertCode == KNSmlDMAgentContinueOrAbortAlert ) |
212 || aAlertCode == KNSmlDMAgentUserInputAlert |
|
213 || aAlertCode == KNSmlDMAgentSingleChoiceAlert |
|
214 || aAlertCode == KNSmlDMAgentMultipleChoiceAlert ) |
|
215 { |
211 { |
216 return ETrue; |
212 return ETrue; |
217 } |
213 } |
218 return EFalse; |
214 return EFalse; |
219 } |
215 } |
1897 if ( !IsActive() ) |
1893 if ( !IsActive() ) |
1898 { |
1894 { |
1899 SetActive(); |
1895 SetActive(); |
1900 } |
1896 } |
1901 |
1897 |
1902 //connect to repository |
|
1903 CRepository* rep = CRepository::NewLC( KCRUidPolicyManagementUtilInternalKeys ); |
|
1904 |
|
1905 //get parameters |
|
1906 TSyncMLAppLaunchNotifParams params; |
|
1907 TPckg<TSyncMLAppLaunchNotifParams> data( params ); |
|
1908 User::LeaveIfError( rep->Get( KSyncMLSessionParamsKey, data)); |
|
1909 |
|
1910 CleanupStack::PopAndDestroy( rep); |
|
1911 |
|
1912 iNotifierTimeOut.LaunchNotifierTimer( this ); |
1898 iNotifierTimeOut.LaunchNotifierTimer( this ); |
1913 // User::LeaveIfError( iNotifier.Connect() ); |
1899 // User::LeaveIfError( iNotifier.Connect() ); |
1914 // iNotifier.StartNotifierAndGetResponse( iStatus, KUidNotifier, data, iResBuf ); |
1900 // iNotifier.StartNotifierAndGetResponse( iStatus, KUidNotifier, data, iResBuf ); |
1915 } |
1901 } |
1916 |
1902 |
1955 else |
1941 else |
1956 { |
1942 { |
1957 if ( ret == KErrNone ) |
1943 if ( ret == KErrNone ) |
1958 { |
1944 { |
1959 |
1945 |
1960 TInt sid = iResBuf().iSecureId.iUid; // read secure id from notifier. |
|
1961 |
1946 |
1962 // Check the response and error code. If there is a fail, dump the job. |
1947 // Check the response and error code. If there is a fail, dump the job. |
1963 // Also compare sid to creator id saved for current job to secure that listener owns the job. |
1948 // Also compare sid to creator id saved for current job to secure that listener owns the job. |
1964 /* if ( ret != KErrNone || sid != iThreadParams.iCurrentJob.CreatorId() ) |
1949 /* if ( ret != KErrNone || sid != iThreadParams.iCurrentJob.CreatorId() ) |
1965 { |
1950 { |