equal
deleted
inserted
replaced
43 |
43 |
44 if(err == KErrNone) { |
44 if(err == KErrNone) { |
45 TInt lVal = KErrNone; |
45 TInt lVal = KErrNone; |
46 TInt err_val = centrep->Get(KDmEventNotifierEnabled, lVal); |
46 TInt err_val = centrep->Get(KDmEventNotifierEnabled, lVal); |
47 |
47 |
|
48 #ifndef __WINS__ |
48 _SCPDB_LOG(_L("[CSCPParamDBController]-> ConstructL(): cenrep KDmEventNotifierEnabled value: %d "), lVal); |
49 _SCPDB_LOG(_L("[CSCPParamDBController]-> ConstructL(): cenrep KDmEventNotifierEnabled value: %d "), lVal); |
49 if(err_val == KErrNone && 0 == lVal) { |
50 if(err_val == KErrNone && 0 == lVal) { |
50 _SCPDB_LOG(_L("[CSCPParamDBController]-> ConstructL(): RApaLsSession connection >>> ")); |
51 _SCPDB_LOG(_L("[CSCPParamDBController]-> ConstructL(): RApaLsSession connection >>> ")); |
51 RApaLsSession apaLsSession; |
52 RApaLsSession apaLsSession; |
52 User :: LeaveIfError(apaLsSession.Connect()); |
53 User :: LeaveIfError(apaLsSession.Connect()); |
54 _SCPDB_LOG(_L("[CSCPParamDBController]-> ConstructL(): RApaLsSession connection successful ")); |
55 _SCPDB_LOG(_L("[CSCPParamDBController]-> ConstructL(): RApaLsSession connection successful ")); |
55 |
56 |
56 _SCPDB_LOG(_L("[CSCPParamDBController]-> ConstructL(): run dmeventnotifier.exe ")); |
57 _SCPDB_LOG(_L("[CSCPParamDBController]-> ConstructL(): run dmeventnotifier.exe ")); |
57 //apaLsSession.GetAppInfo(appInfo, aUid); Required only if handle is registered through _reg file. |
58 //apaLsSession.GetAppInfo(appInfo, aUid); Required only if handle is registered through _reg file. |
58 #if defined (__WINS__) // ifdef (__WINSCW__) |
59 #if defined (__WINS__) // ifdef (__WINSCW__) |
59 _LIT(KExampleTaskHandlerExe, "C:\\sys\\bin\\dmeventnotifier.exe"); |
60 _LIT(KExampleTaskHandlerExe, "dmeventnotifier.exe"); |
60 #else |
61 #else |
61 _LIT(KExampleTaskHandlerExe, "Z:\\Sys\\Bin\\dmeventnotifier.exe"); |
62 _LIT(KExampleTaskHandlerExe, "Z:\\Sys\\Bin\\dmeventnotifier.exe"); |
62 #endif |
63 #endif |
63 |
64 |
64 appInfo.iFullName = KExampleTaskHandlerExe; |
65 appInfo.iFullName = KExampleTaskHandlerExe; |
71 User :: LeaveIfError(err); |
72 User :: LeaveIfError(err); |
72 CleanupStack :: PopAndDestroy(cmdLine); |
73 CleanupStack :: PopAndDestroy(cmdLine); |
73 apaLsSession.Close(); |
74 apaLsSession.Close(); |
74 _SCPDB_LOG(_L("[CSCPParamDBController]-> ConstructL(): started dmeventnotifier.exe successfully")); |
75 _SCPDB_LOG(_L("[CSCPParamDBController]-> ConstructL(): started dmeventnotifier.exe successfully")); |
75 } |
76 } |
|
77 #endif |
76 } |
78 } |
77 _SCPDB_LOG(_L("[CSCPParamDBController]-> ConstructL(): Checking KAppUidDmEventNotifier cenrep completed ")); |
79 _SCPDB_LOG(_L("[CSCPParamDBController]-> ConstructL(): Checking KAppUidDmEventNotifier cenrep completed ")); |
78 |
80 |
79 delete centrep; |
81 delete centrep; |
80 _SCPDB_LOG(_L("[CSCPParamDBController]-> ConstructL() <<<")); |
82 _SCPDB_LOG(_L("[CSCPParamDBController]-> ConstructL() <<<")); |