diff -r ac50fd48361b -r 82fb8aa91b2c sdkcreationmw/sdkruntimes/new_wsock_3pc/inc/winsockprovision.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sdkcreationmw/sdkruntimes/new_wsock_3pc/inc/winsockprovision.h Wed Apr 21 10:32:25 2010 +0530 @@ -0,0 +1,81 @@ +// Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of the License "Eclipse Public License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.eclipse.org/legal/epl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// Definitions of Tunnel Provisioning classes. +// +// + +/** + @file + @internalComponent +*/ + +#if (!defined WINSOCKPROVISION_H__) +#define WINSOCKPROVISION_H__ + +#include +#include +#include + +namespace ESock + { + class CCommsDatIapView; + } + +struct TWinsockInfo +/** +Provisioning class embedded within the main TTunnelProvision class +*/ + { +public: + // Rationale: iIfName is effectively TBuf<32> and not an RBuf because Tunnel interface + // names are typically 26-28 characters. + TInterfaceName iIfName; + TUint32 iLocalIap; + TUint32 iLocalNetwork; + }; + +class TWinsockProvision : public Meta::SMetaData +/** +Structure passed to CFProtocol in a ProvisionConfig() message. +*/ + { +public: + enum + { + EUid = 0x10206FF4, // same as Winsock Flow UID (arbitrary convention only) + ETypeId = 1 + }; + +public: + void InitialiseConfigL(ESock::CCommsDatIapView* aIapView); + +public: + TWinsockInfo iInfo; + + // No serialisation takes place in CFProtocol - we only cast an SMetaData* to + // TTunnelProvision* hence DATA_VTABLE is enough. + DATA_VTABLE + }; + +class TWinsockMessages +/** +Methods used to register the Tunnel message virtual constructors +*/ + { +public: + static void RegisterL(); + static void DeRegister(); + }; + +#endif // TUNNELPROVISION_H__