linklayerprotocols/pppnif/INC/PPPLCP.INL
changeset 0 af10295192d8
equal deleted inserted replaced
-1:000000000000 0:af10295192d8
       
     1 // Copyright (c) 1997-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 //
       
    15 
       
    16 /**
       
    17  @file
       
    18  @internalComponent 
       
    19 */
       
    20 
       
    21 inline const CIPConfig* CPppLcp::GetNcpConfig() const
       
    22     {
       
    23     return iPppNcpConfig;
       
    24     }
       
    25     
       
    26 inline const CPppLcpConfig* CPppLcp::GetLcpConfig() const
       
    27     {
       
    28     return iPppLcpConfig;
       
    29     }
       
    30     
       
    31 inline const CBCAProvision* CPppLcp::GetBCAProvision() const
       
    32     {
       
    33     return iBCAProvision;
       
    34     }    
       
    35 
       
    36 inline const CCredentialsConfig* CPppLcp::GetCredentials() const
       
    37     {
       
    38     return iCredentials;
       
    39     }
       
    40 
       
    41 inline const CPppAuthConfig* CPppLcp::GetAuthConfig() const
       
    42     {
       
    43     return iPppAuthConfig;
       
    44     }
       
    45 
       
    46 inline const CAgentProvisionInfo* CPppLcp::GetAgentConfig() const
       
    47 	{
       
    48 	return iAgentProvision;
       
    49 	}
       
    50 
       
    51 inline const CPppProvisionInfo* CPppLcp::GetPppAgentConfig() const
       
    52 	{
       
    53 	return iPppAgentProvision;
       
    54 	}
       
    55 
       
    56 inline void CPppLcp::CallbackRequestGranted()	
       
    57 	{
       
    58 	iCallbackRequestGranted = ETrue;
       
    59 	}
       
    60 
       
    61 inline CPppLcpConfig::TPppLinkMode CPppLcp::PppLinkMode() const
       
    62 	{
       
    63 	return iLinkMode;
       
    64 	}
       
    65 	
       
    66 /** Set the MTU */
       
    67 inline void CPppLcp::SetMaxTransferSize(TInt aLength)
       
    68 	{
       
    69 	iMaxSendSize = aLength;
       
    70 	}
       
    71 
       
    72 /** Return the MTU */
       
    73 inline TInt CPppLcp::MaxTransferSize() const
       
    74 	{
       
    75 	return iMaxSendSize;
       
    76 	}
       
    77 
       
    78 /** Set the MRU */
       
    79 inline void CPppLcp::SetMaxReceiveSize(TInt aSize)
       
    80 	{
       
    81 	iMaxRecvSize = aSize;
       
    82 	}
       
    83 	
       
    84 /** Return the MRU */
       
    85 inline TInt CPppLcp::MaxReceiveSize() const
       
    86 	{
       
    87 	return iMaxRecvSize;
       
    88 	}
       
    89 
       
    90 inline const TDesC8& CPppLcp::GetExcessData() const
       
    91 	{
       
    92 	if (GetPppAgentConfig())
       
    93 		{
       
    94 		return GetPppAgentConfig()->ExcessData();
       
    95 		}
       
    96 	else
       
    97 		{
       
    98 		return KNullDesC8;
       
    99 		}
       
   100 	}