void CTcpSymbianEngine::SetConnectionParamsL(const TDesC& aServerName, 
                                             TUint aPort, TInt aIAP, 
                                             TBool aConsiderWLAN)
{
   iPort = aPort;
   iIAP = aIAP;
   iConsiderWLAN = aConsiderWLAN;
   ReplaceL(iHostName, aServerName);
}
示例#2
0
void CScriptFile::ParseAndSetItemValueL(const TDesC& aText, const TLex& aInput, TInt aCurrentItemStart, CScriptSectionItem*& arCurrentItem)
	{
	if (arCurrentItem)
		{
		delete arCurrentItem->iValue;
		arCurrentItem->iValue = NULL;
		arCurrentItem->iValue = ParseValue(aText, aInput, aCurrentItemStart).AllocL();
		arCurrentItem->iValue->Des().Trim();
		ReplaceL(KScriptCRLF, KScriptLF, arCurrentItem->iValue);

		if (arCurrentItem->Item().CompareF(KDefaults) == 0)
			{
			CopyInDefaultsL(arCurrentItem->iParent, arCurrentItem->Value());
			}
		}

	arCurrentItem = NULL;
	}