|
1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // Definitions of Tunnel Provisioning classes. |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file |
|
20 @internalComponent |
|
21 */ |
|
22 |
|
23 #if (!defined TUNNELPROVISION_H__) |
|
24 #define TUNNELPROVISION_H__ |
|
25 |
|
26 #include <e32cmn.h> |
|
27 #include <comms-infras/metadata.h> |
|
28 #include <in_iface.h> |
|
29 |
|
30 namespace ESock |
|
31 { |
|
32 class CCommsDatIapView; |
|
33 } |
|
34 |
|
35 struct TTunnelInfo |
|
36 /** |
|
37 Provisioning class embedded within the main TTunnelProvision class |
|
38 */ |
|
39 { |
|
40 public: |
|
41 // Rationale: iIfName is effectively TBuf<32> and not an RBuf because Tunnel interface |
|
42 // names are typically 26-28 characters. |
|
43 TInterfaceName iIfName; |
|
44 TUint32 iLocalIap; |
|
45 TUint32 iLocalNetwork; |
|
46 }; |
|
47 |
|
48 class TTunnelProvision : public Meta::SMetaData |
|
49 /** |
|
50 Structure passed to CFProtocol in a ProvisionConfig() message. |
|
51 */ |
|
52 { |
|
53 public: |
|
54 enum |
|
55 { |
|
56 EUid = 0x10281E02, // same as Tunnel Flow UID (arbitrary convention only) |
|
57 ETypeId = 1 |
|
58 }; |
|
59 |
|
60 public: |
|
61 void InitialiseConfigL(ESock::CCommsDatIapView* aIapView); |
|
62 |
|
63 public: |
|
64 TTunnelInfo iInfo; |
|
65 |
|
66 // No serialisation takes place in CFProtocol - we only cast an SMetaData* to |
|
67 // TTunnelProvision* hence DATA_VTABLE is enough. |
|
68 DATA_VTABLE |
|
69 }; |
|
70 |
|
71 class TTunnelMessages |
|
72 /** |
|
73 Methods used to register the Tunnel message virtual constructors |
|
74 */ |
|
75 { |
|
76 public: |
|
77 static void RegisterL(); |
|
78 static void DeRegister(); |
|
79 }; |
|
80 |
|
81 #endif // TUNNELPROVISION_H__ |