46 |
45 |
47 void CEventLogger::ConstructL() |
46 void CEventLogger::ConstructL() |
48 { |
47 { |
49 // Set default access point names just |
48 // Set default access point names just |
50 // in case the real name fetching fails |
49 // in case the real name fetching fails |
51 iExtender=CExtender::NewL(); |
|
52 |
|
53 iVpnApName.Copy(KUnknownVpnAp); |
50 iVpnApName.Copy(KUnknownVpnAp); |
54 iRealApName.Copy(KUnknownIap); |
51 iRealApName.Copy(KUnknownIap); |
55 |
52 |
56 EventViewer::GetIapNames(iVpnIapId, iVpnApName, iRealIapId, iRealApName); |
53 EventViewer::GetIapNames(iVpnIapId, iVpnApName, iRealIapId, iRealApName); |
57 } |
54 } |
58 |
55 |
59 CEventLogger::~CEventLogger() |
56 CEventLogger::~CEventLogger() |
60 { |
57 { |
61 LOG(Log::Printf(_L("CEventLogger::~CEventLogger\n"))); |
58 LOG(Log::Printf(_L("CEventLogger::~CEventLogger\n"))); |
62 delete iExtender; |
|
63 } |
59 } |
64 |
60 |
65 void CEventLogger::LogEvent(TUint aMsgId, TAny* aAnyPtr, TInt aStatusCode, TInt aReasonCode) |
61 void CEventLogger::LogEvent(TUint aMsgId, TAny* aAnyPtr, TInt aStatusCode, TInt aReasonCode) |
66 { |
62 { |
67 DoLogEvent( aMsgId, aAnyPtr, aStatusCode, aReasonCode ); |
63 DoLogEvent( aMsgId, aAnyPtr, aStatusCode, aReasonCode ); |
143 &iRealApName, &iVpnApName, &statusCodeDes); |
139 &iRealApName, &iVpnApName, &statusCodeDes); |
144 } |
140 } |
145 break; |
141 break; |
146 |
142 |
147 case R_VPN_MSG_VPN_IAP_ACT_START: |
143 case R_VPN_MSG_VPN_IAP_ACT_START: |
148 iExtender->OnVpnApActStart(static_cast<CVpnConnStarter*>(aAnyPtr)); |
144 // NSSM removal |
149 break; |
145 break; |
150 |
146 |
151 case R_VPN_MSG_VPN_IAP_ACT_CANCEL: |
147 case R_VPN_MSG_VPN_IAP_ACT_CANCEL: |
152 iExtender->OnVpnApActCancel(); |
|
153 break; |
148 break; |
154 |
149 |
155 case R_VPN_MSG_VPN_IAP_ACT_END: |
150 case R_VPN_MSG_VPN_IAP_ACT_END: |
156 iExtender->OnVpnApActEnd(static_cast<TVpnPolicyId*>(aAnyPtr), aStatusCode, iRealIapId); |
|
157 break; |
151 break; |
158 |
152 |
159 default: |
153 default: |
160 return ret; |
154 return ret; |
161 } |
155 } |