networkcontrol/ipscpr/src/qos_msg.inl
branchRCL_3
changeset 22 8d540f55e491
parent 21 abbed5a4b42a
child 23 425d8f4f7fa5
equal deleted inserted replaced
21:abbed5a4b42a 22:8d540f55e491
     1 /**
       
     2 * Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 * Inline functions file for the QoS Mapping Messages
       
    16 * 
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 
       
    22 /**
       
    23  @file qos_msg.inl
       
    24 */
       
    25 
       
    26 #ifndef __QOS_MSG_INL__
       
    27 #define __QOS_MSG_INL__
       
    28 
       
    29 inline void CQoSMsg::AddConnInfo(TUint32 aProtocol, const TUidType& aUid, TUint32 aIapId )
       
    30 /**
       
    31 Add Connection Information to the QoS PRT Message
       
    32 
       
    33 @param aProtocol Protocol Id
       
    34 @param aUid Process UID Type
       
    35 @param aIapId Internet Access Point Id
       
    36 */
       
    37 	{
       
    38     iMsg->AddSelector((TUint8)aProtocol, aUid, EPfqosFlowspecPolicy, aIapId, EPfqosApplicationPriority, TPtr(0,0));
       
    39 	}
       
    40 
       
    41 
       
    42 inline void CQoSMsg::AddChannel(TInt aChannelId)
       
    43 	{
       
    44 /**
       
    45 Adds QoS Channel Id to the QoS PRT Message
       
    46 
       
    47 @param aChannelId QoS Channel Id
       
    48 */
       
    49     iMsg->AddChannel(aChannelId); 
       
    50 	}
       
    51 
       
    52 inline void CQoSMsg::AddQoSParameters(const TQoSParameters& aParameters)
       
    53 /** 
       
    54 Adds Standard QoS Parameters to the QoS PRT Message
       
    55 
       
    56 @param aParameters QoS Parameters
       
    57 */
       
    58 	{
       
    59     iMsg->AddQoSParameters(aParameters);
       
    60 	}
       
    61 
       
    62 
       
    63 // ###########################################################
       
    64 
       
    65 
       
    66 inline void CQoSMsgWriter::DoCancel()
       
    67 /**
       
    68 Cancel Writing to internal socket
       
    69 */
       
    70     {
       
    71     iSocket.CancelWrite();
       
    72     }
       
    73 
       
    74 
       
    75 // ###########################################################
       
    76 
       
    77 
       
    78 inline void CQoSMsgReader::DoCancel()
       
    79 /**
       
    80 Cancel Reading from internal socket
       
    81 */
       
    82 	{
       
    83     iSocket.CancelRecv();
       
    84 	}
       
    85 
       
    86 #endif // __QOS_MSG_INL__