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