|
1 /* |
|
2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Utility methods for handling connection settings |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CmManagerUtils_H |
|
19 #define CmManagerUtils_H |
|
20 |
|
21 #include <e32base.h> |
|
22 |
|
23 #include "vpnapidefs.h" |
|
24 |
|
25 class RCmConnectionMethodExt; |
|
26 class RCmManagerExt; |
|
27 class CEventLogger; |
|
28 |
|
29 |
|
30 /** |
|
31 * Utility methods for handling connection settings |
|
32 * |
|
33 * @lib ?library |
|
34 * @since S60 ?S60_version *** for example, S60 v3.2.3 |
|
35 */ |
|
36 class CmManagerUtils |
|
37 { |
|
38 public: |
|
39 |
|
40 static void CreateVPNConnectionMethodToIntranetL(const TVpnPolicyInfo& aVpnPolicyInfo, |
|
41 CEventLogger& aEventLogger); |
|
42 |
|
43 private: |
|
44 |
|
45 static void SetVpnConnectionMethodAttributesL(RCmConnectionMethodExt& aConnectionMethod, |
|
46 const TDesC& aConnectionMethodName, |
|
47 const TVpnPolicyId aPolicyId, |
|
48 const TUint32 aInternetDestinationId); |
|
49 |
|
50 |
|
51 static HBufC* CreateConnectionMethodNameLC(RCmManagerExt& aCmManagerExt, |
|
52 const TDesC& aPolicyName); |
|
53 |
|
54 static HBufC* CreateIntranetDestinationNameLC(RCmManagerExt& aCmManagerExt); |
|
55 |
|
56 static RCmConnectionMethodExt CreateNewConnectionMethodToIntranetL(RCmManagerExt& aCmManagerExt, |
|
57 const TDesC& aConnectionMethodName, |
|
58 const TVpnPolicyId aPolicyId, |
|
59 const TUint32 aInternetDestinationId); |
|
60 |
|
61 |
|
62 }; |
|
63 |
|
64 |
|
65 #endif // CmManagerUtils_H |