cbsref/telephonyrefplugins/atltsy/integrationtest/inc/testltsypktshareddata.inl
changeset 44 8b72faa1200f
equal deleted inserted replaced
39:2473f5e227f9 44:8b72faa1200f
       
     1 //  TestTelephonyPktSharedData.inl
       
     2 //  Copyright (c) Symbian Software Ltd 2008. All rights reserved.
       
     3 //
       
     4 //  The inline function implementation of CTestTelephonyPktSharedData
       
     5 
       
     6 #ifndef TESTTELEPHONYPKTSHAREDDATA_INL_
       
     7 #define TESTTELEPHONYPKTSHAREDDATA_INL_
       
     8 
       
     9 // user include
       
    10 #include "TestLtsyPktSharedData.h"
       
    11 
       
    12 /**
       
    13  * Get the reference of specified packet context
       
    14  * aServiceIndex - the index in the packet service array
       
    15  * aContextIndex - the index in the packet context array
       
    16  * @return - the reference of the RPacketContext object
       
    17  */
       
    18 RPacketContext& CTestLtsyPktSharedData::PacketContext(TInt aServiceIndex, TInt aContextIndex)
       
    19 	{
       
    20 	return iServices[aServiceIndex].iContexts[aContextIndex].iPktContext;
       
    21 	}
       
    22 
       
    23 /**
       
    24  * Get the reference of specified packet QoS profile
       
    25  * aServiceIndex - the index in the packet service array
       
    26  * aContextIndex - the index in the packet context array
       
    27  * @return - the reference of the QoS profile object
       
    28  */
       
    29 RPacketQoS& CTestLtsyPktSharedData::PacketQos(TInt aServiceIndex, TInt aContextIndex)
       
    30 	{
       
    31 	return iServices[aServiceIndex].iContexts[aContextIndex].iPktQos;
       
    32 	}
       
    33 
       
    34 /**
       
    35  * Get the reference of specified packet service
       
    36  * aServiceIndex - the index in the packet service array
       
    37  * @return - the reference of the RPacketService object
       
    38  */
       
    39 RPacketService& CTestLtsyPktSharedData::PacketService(TInt aServiceIndex)
       
    40 	{
       
    41 	return iServices[aServiceIndex].iPktService;
       
    42 	}
       
    43 
       
    44 /**
       
    45  * Get the reference of specified context data
       
    46  * aServiceIndex - the index in the packet service array
       
    47  * aContextIndex - the index in the packet context array
       
    48  * @return - the reference of the TContextData object
       
    49  */
       
    50 CTestLtsyPktSharedData::TContextData& CTestLtsyPktSharedData::ContextData(TInt aServiceIndex, TInt aContextIndex)
       
    51 	{
       
    52 	return iServices[aServiceIndex].iContexts[aContextIndex];
       
    53 	}
       
    54 
       
    55 #endif /*TESTTELEPHONYPKTSHAREDDATA_INL_*/
       
    56 
       
    57 // end of file