void CT_DataDrawTextExtendedParam::DoCmd_iParRightToLeft(const TDesC& aSection)
	{
	if ( !GetBoolFromConfig(aSection, KFldValue(), iDrawTextExtendedParam->iParRightToLeft) )
		{
		INFO_PRINTF2(_L("iParRightToLeft=%d"), iDrawTextExtendedParam->iParRightToLeft);
		}
	}
Esempio n. 2
0
/**
Test Set()
*/
void CT_SEIDData::DoCmdSet(const TDesC& aSection)
	{	
	INFO_PRINTF1(_L("TSEID Set() Call."));
	TInt value=0;
	if( !GetIntFromConfig(aSection, KFldValue(), value) )
		{
		ERR_PRINTF2(KLogMissingParameter, &KFldValue);
		SetBlockResult(EFail);
		}
	else
		{
		INFO_PRINTF2(_L("Execute Set(TUint), value = %d"), value);
		iData->Set(value);
		}
	}
void CT_TCommConfigV02Data::DoCmdiTxShutdownTimeout(const TDesC& aSection)
	{
	TInt	actual=GetCommConfigV02().iTxShutdownTimeout;
	INFO_PRINTF2(_L("iTxShutdownTimeout : %d"), actual);

	TInt	expected;
	if( GetIntFromConfig(aSection, KFldExpected(), expected) )
		{
		if ( expected!=actual )
			{
			ERR_PRINTF1(_L("Expected Value does not match actual"));
			SetBlockResult(EFail);
			}
		}

	TInt	value;
	if( GetIntFromConfig(aSection, KFldValue(), value) )
		{
		GetCommConfigV02().iTxShutdownTimeout=value;
		}
	}
Esempio n. 4
0
/**
Test TSEID()
*/
void CT_SEIDData::DoCmdnewL(const TDesC& aSection)
	{
	INFO_PRINTF1(_L("TSEID Constructor Call"));
	DestroyData();
	
	
	TBool	isTwoParameters=EFalse;
	TBool	isOneParameter=EFalse;
	
	TInt	seid=0;
	TBool	islocal=EFalse;
	
	TInt	value=0;
	TInt 	dataOK = ETrue;
	
	if( GetIntFromConfig(aSection, KFldSeid(), seid) )
		{
		if(GetBoolFromConfig(aSection, KFldIsLocal(), islocal) )
			{
			INFO_PRINTF1(_L("Constructor got 2 parameters.)"));
			isTwoParameters = ETrue;
			}
		else
			{
			ERR_PRINTF2(KLogMissingParameter, &KFldIsLocal);
			dataOK = EFalse;
			SetBlockResult(EFail);
			}
		}
	else
		{
		if( GetIntFromConfig(aSection, KFldValue(), value) )
			{
			INFO_PRINTF1(_L("Constructor got parameter as value"));
			isOneParameter = ETrue;
			}
		}
	
	if(dataOK)
		{
		TInt err = KErrNone;
		if(isTwoParameters)
			{
			INFO_PRINTF1(_L("Constructor called is TSEID(TUint, TBool)"));
			TRAP( err, iData = new (ELeave) TSEID(seid,islocal));
			}
		else if(isOneParameter)
			{
			INFO_PRINTF1(_L("Constructor called is TSEID(TUint)."));
			TRAP( err, iData = new (ELeave) TSEID(value));
			}
		else
			{
			INFO_PRINTF1(_L("Constructor called is TSEID()."));
			TRAP( err, iData = new (ELeave) TSEID());
			}
		
		if ( err!=KErrNone )
			{
			ERR_PRINTF2(KLogError, err);
			SetError(err);
			}
		}
	
	}