diff -r 6b1d113cdff3 -r 6638e7f4bd8f telephonyserverplugins/simtsy/inc/CSimContextHelper.h --- a/telephonyserverplugins/simtsy/inc/CSimContextHelper.h Mon May 03 13:37:20 2010 +0300 +++ b/telephonyserverplugins/simtsy/inc/CSimContextHelper.h Thu May 06 15:10:38 2010 +0100 @@ -1,53 +1,53 @@ -// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "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: -// CSimContextHelper.cpp -// Useful routines for using and related PDP contexts, that may used in multiple files. -// -// - -/** - @file -*/ - - -#ifndef __CSIMCONTEXTHELPER_H__ -#define __CSIMCONTEXTHELPER_H__ - -#include -#include "CSimPacketContext.h" - -class CTestConfigSection; - -/** -Useful routines for helping with PDP contexts. -*/ -class CSimContextHelper -{ - -public : - - static void SetTContextConfigParamFromTContextConfigGPRS( TContextConfigParam& aContextConfigToSet , const RPacketContext::TContextConfigGPRS& aContextConfigV1 ); - static void SetTContextConfigParamFromTContextConfigR99_R4( TContextConfigParam& aContextConfigToSet, const RPacketContext::TContextConfigR99_R4& aContextConfigV1 ); - static void SetTContextConfigParamFromTContextConfig_R5( TContextConfigParam& aContextConfigToSet, const RPacketContext::TContextConfig_R5& aContextConfigV1 ); - static TBool EqualTContextConfigParam(const TContextConfigParam& aContextConfigLHS, const TContextConfigParam& aContextConfigRHS ); - static void GetContextConfigParamSettingsL( const CTestConfigSection* const aCfgFile, const TPtrC8 aTag, - CArrayFixFlat* aContextConfigParams ); - static void ConvertConfigParams(const TContextConfigParam& aInput, RPacketContext::TContextConfigGPRS& aOutput); - static void ConvertConfigParams(const TContextConfigParam& aInput, RPacketContext::TContextConfigR99_R4& aOutput); - static void ConvertConfigParams(const TContextConfigParam& aInput, RPacketContext::TContextConfig_R5& aOutput); - - -}; - -#endif //__CSIMCONTEXTHELPER_H__ +// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of "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: +// CSimContextHelper.cpp +// Useful routines for using and related PDP contexts, that may used in multiple files. +// +// + +/** + @file +*/ + + +#ifndef __CSIMCONTEXTHELPER_H__ +#define __CSIMCONTEXTHELPER_H__ + +#include +#include "CSimPacketContext.h" + +class CTestConfigSection; + +/** +Useful routines for helping with PDP contexts. +*/ +class CSimContextHelper +{ + +public : + + static void SetTContextConfigParamFromTContextConfigGPRS( TContextConfigParam& aContextConfigToSet , const RPacketContext::TContextConfigGPRS& aContextConfigV1 ); + static void SetTContextConfigParamFromTContextConfigR99_R4( TContextConfigParam& aContextConfigToSet, const RPacketContext::TContextConfigR99_R4& aContextConfigV1 ); + static void SetTContextConfigParamFromTContextConfig_R5( TContextConfigParam& aContextConfigToSet, const RPacketContext::TContextConfig_R5& aContextConfigV1 ); + static TBool EqualTContextConfigParam(const TContextConfigParam& aContextConfigLHS, const TContextConfigParam& aContextConfigRHS ); + static void GetContextConfigParamSettingsL( const CTestConfigSection* const aCfgFile, const TPtrC8 aTag, + CArrayFixFlat* aContextConfigParams ); + static void ConvertConfigParams(const TContextConfigParam& aInput, RPacketContext::TContextConfigGPRS& aOutput); + static void ConvertConfigParams(const TContextConfigParam& aInput, RPacketContext::TContextConfigR99_R4& aOutput); + static void ConvertConfigParams(const TContextConfigParam& aInput, RPacketContext::TContextConfig_R5& aOutput); + + +}; + +#endif //__CSIMCONTEXTHELPER_H__