linklayerprotocols/pppnif/INC/PPPConfig.inl
changeset 0 af10295192d8
equal deleted inserted replaced
-1:000000000000 0:af10295192d8
       
     1 // Copyright (c) 2005-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 // PPP CFProtocol Provisioning Message inline methods.
       
    15 // CPppLcpConfig methods
       
    16 // 
       
    17 //
       
    18 
       
    19 /**
       
    20  @file
       
    21  @internalTechnology
       
    22 */
       
    23 
       
    24 CPppLcpConfig::TPppLinkMode CPppLcpConfig::GetIfServerMode() const
       
    25     {
       
    26     return iIfServerMode;
       
    27     }
       
    28 
       
    29 TInt CPppLcpConfig::GetIfCallbackType() const
       
    30     {
       
    31     return iIfCallbackType;
       
    32     }
       
    33 
       
    34 const TDesC& CPppLcpConfig::GetIfParams() const
       
    35     {
       
    36     return iIfParams;
       
    37     }
       
    38 
       
    39 const TDesC& CPppLcpConfig::GetIfCallbackInfo() const
       
    40     {
       
    41     return iIfCallbackInfo;
       
    42     }
       
    43 
       
    44 TBool CPppLcpConfig::GetIfCallbackEnabled() const
       
    45     {
       
    46     return iIfCallbackEnabled;
       
    47     }
       
    48 
       
    49 TBool CPppLcpConfig::GetEnableLcpExtensions() const
       
    50     {
       
    51     return iEnableLcpExtensions;
       
    52     }
       
    53 
       
    54 TBool CPppLcpConfig::GetEnableSwComp() const
       
    55     {
       
    56     return iEnableSwComp;
       
    57     }
       
    58     
       
    59 void CPppLcpConfig::SetIfServerMode(CPppLcpConfig::TPppLinkMode aIfServerMode)
       
    60     {
       
    61     iIfServerMode = aIfServerMode;
       
    62     }
       
    63 
       
    64 void CPppLcpConfig::SetIfCallbackType(TInt aIfCallbackType)
       
    65     {
       
    66     iIfCallbackType = aIfCallbackType;
       
    67     }
       
    68 
       
    69 void CPppLcpConfig::SetIfParams(HBufC* aIfParams)
       
    70     {
       
    71     iIfParams.Close();
       
    72    	iIfParams.Assign(aIfParams);    
       
    73     }
       
    74 
       
    75 void CPppLcpConfig::SetIfCallbackInfo(HBufC* aIfCallbackInfo)
       
    76     {
       
    77     iIfCallbackInfo.Close();
       
    78    	iIfCallbackInfo.Assign(aIfCallbackInfo);         
       
    79     }
       
    80 
       
    81 void CPppLcpConfig::SetIfCallbackEnabled(TBool aIfCallbackEnabled)
       
    82     {
       
    83     iIfCallbackEnabled = aIfCallbackEnabled;
       
    84     }
       
    85 
       
    86 void CPppLcpConfig::SetEnableLcpExtensions(TBool aEnableLcpExtensions)
       
    87     {
       
    88     iEnableLcpExtensions = aEnableLcpExtensions;
       
    89     }
       
    90 
       
    91 void CPppLcpConfig::SetEnableSwComp(TBool aEnableSwComp)
       
    92     {
       
    93     iEnableSwComp = aEnableSwComp;
       
    94     }
       
    95 
       
    96 #if defined (_DEBUG)
       
    97 const TDesC& CPppLcpConfig::GetISPName() const
       
    98     {
       
    99     return iISPName;
       
   100     }
       
   101 
       
   102 void CPppLcpConfig::SetISPName(HBufC* aISPName)
       
   103     {
       
   104     iISPName.Close();
       
   105    	iISPName.Assign(aISPName);
       
   106     }
       
   107 
       
   108 #endif       
       
   109 
       
   110 
       
   111 
       
   112 
       
   113 
       
   114 
       
   115 
       
   116 //-=========================================================
       
   117 // CPppAuthConfig methods
       
   118 //-=========================================================
       
   119 
       
   120 TBool CPppAuthConfig::GetServiceEnableSwComp() const
       
   121     {
       
   122     return iServiceEnableSwComp;
       
   123     }
       
   124 
       
   125 void CPppAuthConfig::SetServiceEnableSwComp(TBool aServiceEnableSwComp)
       
   126     {
       
   127     iServiceEnableSwComp = aServiceEnableSwComp;
       
   128     }
       
   129 
       
   130 
       
   131 
       
   132 const TDesC8& CPppProvisionInfo::ExcessData() const { return iExcessData; }
       
   133 
       
   134 TInt CPppProvisionInfo::IsDialIn() const { return iIsDialIn; }
       
   135 
       
   136 TAny* CPppProvisionInfo::NotificationData() const { return iNotificationData; }
       
   137 
       
   138 TInt CPppProvisionInfo::SetExcessData(const TDesC8& aData)
       
   139 	{
       
   140 	iExcessData.Close();
       
   141 	return iExcessData.Create(aData);
       
   142 	}
       
   143 
       
   144 void CPppProvisionInfo::SetIsDialIn(TInt aValue)
       
   145 	{
       
   146 	iIsDialIn = aValue;
       
   147 	}
       
   148 
       
   149 void CPppProvisionInfo::SetNotificationData(TAny* aNotificationData)
       
   150 	{
       
   151 	iNotificationData = aNotificationData;
       
   152 	}
       
   153 
       
   154 
       
   155 const TName& CPppTsyConfig::TsyName() const
       
   156 	{
       
   157 	return iTsyName;
       
   158 	}
       
   159 
       
   160 void CPppTsyConfig::SetTsyName(const TName& aTsyName)
       
   161 	{
       
   162 	iTsyName.Copy(aTsyName);
       
   163 	}