telephonyserverplugins/simtsy/inc/CSimContextHelper.h
changeset 0 3553901f7fa8
equal deleted inserted replaced
-1:000000000000 0:3553901f7fa8
       
     1 // Copyright (c) 2007-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 // CSimContextHelper.cpp
       
    15 // Useful routines for using and related PDP contexts, that may used in multiple files. 
       
    16 // 
       
    17 //
       
    18 
       
    19 /**
       
    20  @file
       
    21 */
       
    22  
       
    23  
       
    24 #ifndef __CSIMCONTEXTHELPER_H__
       
    25 #define __CSIMCONTEXTHELPER_H__
       
    26 
       
    27 #include <etelpckt.h>
       
    28 #include "CSimPacketContext.h"
       
    29  
       
    30 class CTestConfigSection;
       
    31  
       
    32 /**
       
    33 Useful routines for helping with PDP contexts.
       
    34 */    
       
    35 class CSimContextHelper
       
    36 {
       
    37  	
       
    38 public :
       
    39 
       
    40 	static void SetTContextConfigParamFromTContextConfigGPRS( TContextConfigParam& aContextConfigToSet , const RPacketContext::TContextConfigGPRS&  aContextConfigV1 );
       
    41 	static void SetTContextConfigParamFromTContextConfigR99_R4( TContextConfigParam& aContextConfigToSet, const RPacketContext::TContextConfigR99_R4& aContextConfigV1 );
       
    42 	static void SetTContextConfigParamFromTContextConfig_R5( TContextConfigParam& aContextConfigToSet, const RPacketContext::TContextConfig_R5& aContextConfigV1 );
       
    43 	static TBool EqualTContextConfigParam(const TContextConfigParam& aContextConfigLHS, const TContextConfigParam& aContextConfigRHS );
       
    44 	static void GetContextConfigParamSettingsL( const CTestConfigSection* const aCfgFile, const TPtrC8 aTag, 
       
    45 	   CArrayFixFlat<TContextConfigParam>* aContextConfigParams );														   
       
    46 	static void ConvertConfigParams(const TContextConfigParam& aInput, RPacketContext::TContextConfigGPRS& aOutput);
       
    47 	static void ConvertConfigParams(const TContextConfigParam& aInput, RPacketContext::TContextConfigR99_R4& aOutput);
       
    48 	static void ConvertConfigParams(const TContextConfigParam& aInput, RPacketContext::TContextConfig_R5& aOutput);
       
    49 														   
       
    50  	
       
    51 };
       
    52  
       
    53 #endif	//__CSIMCONTEXTHELPER_H__