1 /* |
1 /* |
2 * Copyright (c) 2000-2006 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2000-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
37 const TInt KMajorVerNumber=1; |
37 const TInt KMajorVerNumber=1; |
38 const TInt KMinorVerNumber=0; |
38 const TInt KMinorVerNumber=0; |
39 const TInt KBuildVerNumber=0; |
39 const TInt KBuildVerNumber=0; |
40 |
40 |
41 _LIT(KVPNConnAgtName,"vpnconnagt"); |
41 _LIT(KVPNConnAgtName,"vpnconnagt"); |
|
42 |
|
43 |
|
44 // P&S key observer for communication between VPN client and SIP Profile server. |
|
45 class CVpnSipObserver; |
|
46 |
42 |
47 |
43 /** |
48 /** |
44 * A Factory for creating a VPNConnAgent. |
49 * A Factory for creating a VPNConnAgent. |
45 */ |
50 */ |
46 class CVPNConnAgtFactory : public CNifAgentFactory |
51 class CVPNConnAgtFactory : public CNifAgentFactory |
195 * @param aType Type pf the event e.g. ESingleInterfaceEvent. |
200 * @param aType Type pf the event e.g. ESingleInterfaceEvent. |
196 * @param aData Pointer to the TInterfaceNotificationBuf type packaged buffer. Contains |
201 * @param aData Pointer to the TInterfaceNotificationBuf type packaged buffer. Contains |
197 * the status of the real interface. |
202 * the status of the real interface. |
198 */ |
203 */ |
199 void EventOccured(TInt aStatus, TEventType aType, TDesC8* aData); |
204 void EventOccured(TInt aStatus, TEventType aType, TDesC8* aData); |
|
205 |
|
206 /** |
|
207 * Is called when SIP deregistration is completed. In here a VPN session |
|
208 * is actually started. |
|
209 */ |
|
210 void ProceedServiceStart(); |
200 |
211 |
201 protected: // Methods |
212 protected: // Methods |
202 |
213 |
203 /** |
214 /** |
204 * Overwrites the default implementation to catch the ip version reading from the |
215 * Overwrites the default implementation to catch the ip version reading from the |
335 |
346 |
336 /** This defines the shutdown type to the kmd. Value 0 is normal and 1 is to |
347 /** This defines the shutdown type to the kmd. Value 0 is normal and 1 is to |
337 force it to shutdown without trying to send any packets anymore */ |
348 force it to shutdown without trying to send any packets anymore */ |
338 TDeactivateType iDisconnectType; |
349 TDeactivateType iDisconnectType; |
339 |
350 |
340 /* State of the agent object */ |
351 /** State of the agent object */ |
341 TRequestState iState; |
352 TRequestState iState; |
342 |
353 |
343 /** Boolean to define wether disconnecting operation is ongoing */ |
354 /** Boolean to define wether disconnecting operation is ongoing */ |
344 TBool iDisconnecting; |
355 TBool iDisconnecting; |
345 |
356 |
346 /** PckgBufs used when creating connection through eventmediator api */ |
357 /** PckgBufs used when creating connection through eventmediator api */ |
347 TPckgBuf<TGetProtocolVersionEventSpec> iProtocolVersionDes; |
358 TPckgBuf<TGetProtocolVersionEventSpec> iProtocolVersionDes; |
348 TPckgBuf<TStartVpnConnEventSpec> iStartVpnConnDes; |
359 TPckgBuf<TStartVpnConnEventSpec> iStartVpnConnDes; |
349 TPckgBuf<TCloseVpnConnEventSpec> iCloseVpnConnDes; |
360 TPckgBuf<TCloseVpnConnEventSpec> iCloseVpnConnDes; |
350 TPckgBuf<TObserveRealIapConnEventSpec> iObserveRealIapConnDes; |
361 TPckgBuf<TObserveRealIapConnEventSpec> iObserveRealIapConnDes; |
|
362 |
|
363 /** Own: P&S key observer */ |
|
364 CVpnSipObserver* iSipObserver; |
|
365 |
|
366 /** Feature Manager initialzation flag */ |
|
367 TBool iFeatureManagerInitialized; |
351 }; |
368 }; |
352 |
369 |
|
370 |
353 #endif // VPN_CONN_AGT_H |
371 #endif // VPN_CONN_AGT_H |
354 |
|