sdkcreationmw/sdkruntimes/new_wsock_3pc/inc/winsockprovision.h
changeset 2 82fb8aa91b2c
equal deleted inserted replaced
1:ac50fd48361b 2:82fb8aa91b2c
       
     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 the License "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 WINSOCKPROVISION_H__)
       
    24 #define WINSOCKPROVISION_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 TWinsockInfo
       
    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 TWinsockProvision : public Meta::SMetaData
       
    49 /**
       
    50 Structure passed to CFProtocol in a ProvisionConfig() message.
       
    51 */
       
    52 	{
       
    53 public:
       
    54 	enum
       
    55 		{
       
    56 		EUid = 0x10206FF4,		// same as Winsock Flow UID (arbitrary convention only)
       
    57 		ETypeId = 1 
       
    58 		};
       
    59 
       
    60 public:
       
    61 	void InitialiseConfigL(ESock::CCommsDatIapView* aIapView);
       
    62 
       
    63 public:
       
    64 	TWinsockInfo 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 TWinsockMessages
       
    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__