/**
Purpose: Command fuction for a wrapper class

@internalComponent
*/
TBool CT_SetSubstTestWrapper::DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex)
	{
	TBool ret = ETrue;

	// Print out the parameters for debugging
	INFO_PRINTF2( _L("<font size=2 color=990000><b>aCommand = %S</b></font>"), &aCommand );
	INFO_PRINTF2( _L("aSection = %S"), &aSection );
	INFO_PRINTF2( _L("aAsyncErrorIndex = %D"), aAsyncErrorIndex );



	if(KNew() == aCommand)
		{
		DoCmdNewL(aSection);
		}
	else if(KCreateDrive() == aCommand)
		{
		DoCmdCreateDrive(aSection);
		}
	else if(KDeleteDrive() == aCommand)
		{
		DoCmdDeleteDrive(aSection);
		}
	else
		{
		ret = EFalse;
		}

	return ret;
	}
TBool CTEFLoggerTestWrapper::DoCommandL(const TTEFFunction& aCommand,
		const TTEFSectionName& aSection, const TInt aAsyncErrorIndex)
	{
	TBool ret = ETrue;

	// Print out the parameters for debugging
	INFO_PRINTF2( _L("aCommand = %S"), &aCommand );
	INFO_PRINTF2( _L("aSection = %S"), &aSection );
	INFO_PRINTF2( _L("aAsyncErrorIndex = %D"), aAsyncErrorIndex );

	if (KNew() == aCommand)
		{
		DoCmdNewL(aSection);
		}
	else
	if (KGetDataObject() == aCommand)
		{
		DoCmdGetDataObject(aSection);
		}
	else
	if (KPrint() == aCommand)
		{
		DoCmdPrint(aSection);
		}
	else
	if (KPrintNonVALIST() == aCommand)
		{
		DoCmdPrintNoVALIST(aSection);
		}
	else
	if (KUnCoveredFuntions() == aCommand)
		{
		DoCmdKUnCoveredFuntions(aSection);
		}	
	else
	if (KGetCPPModuleName() == aCommand)
		{
		DoCmdKGetCPPModuleName();
		}
	else
	if (KGetLongSectionName()== aCommand)
		{
		GetLongSectionName(aSection);
		}
	else
	if (KGetLongKeyName()== aCommand)
		{
		GetLongKeyName(aSection);
		}
	else
		{
		ret = EFalse;
		}
	return ret;
	}
/**
 * Process a command read from the ini file
 *
 * @param aCommand			The command to process
 * @param aSection			The section in the ini containing data for the command
 * @param aAsyncErrorIndex	Command index for async calls to return errors to
 *
 * @return					ETrue if the command is processed
 *
 * @leave					System wide error
 */
TBool CT_DataSdpAgent::DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex)
	{
	TBool	ret = ETrue;

	//-------------------------------------------------------------------------
	// CSdpAgent
	//-------------------------------------------------------------------------
	if ( aCommand==KCmdNewL )
		{
        DoCmdNewL(aSection);
		}
	else if ( aCommand==KCmdNewLC )
		{
        DoCmdNewLC(aSection);
		}
	else if ( aCommand==KCmdSetRecordFilterL )
		{
        DoCmdSetRecordFilterL(aSection);
		}
	else if ( aCommand==KCmdNextRecordRequestL )
		{
        DoCmdNextRecordRequestL(aSection, aAsyncErrorIndex);
		}
	else if ( aCommand==KCmdSetAttributePredictorListL )
		{
        DoCmdSetAttributePredictorListL(aSection);
		}
	else if ( aCommand==KCmdAttributeRequestL )
		{
        DoCmdAttributeRequestL(aSection, aAsyncErrorIndex);
		}
	else if ( aCommand==KCmdCancel )
		{
        DoCmdCancel();
		}
	else if ( aCommand==KCmdDestructor )
		{
		DoCmdDestructor();
		}
	else if ( aCommand==KCmdMSAN_ExtensionInterfaceL )
		{
		DoCmdMSAN_ExtensionInterfaceL();
		}
	else
		{
		ret=EFalse;
		}

	return ret;
	}
/**
 * Process a command read from the Ini file
 * @param aCommand 			- The command to process
 * @param aSection			- The section get from the *.ini file of the project T_Wlan
 * @param aAsyncErrorIndex	- Command index dor async calls to returns errors to
 * @return TBool			- ETrue if the command is process
 * @leave					- system wide error
 */
TBool CT_CAudioOutputData::DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt /*aAsyncErrorIndex*/)
	{
	TBool ret = ETrue;
	
	if (aCommand == KCmdNewL)
		{
		DoCmdNewL(aSection);
		}
	else if (aCommand == KCmdDestructor)
		{
		DoCmdDestructor();
		}
	else if (aCommand == KCmdAudioOutput)
		{
		DoCmdAudioOutput();
		}
	else if (aCommand == KCmdDefaultAudioOutput)
		{
		DoCmdDefaultAudioOutput();
		}
	else if (aCommand == KCmdRegisterObserver)
		{
		DoCmdRegisterObserverL();
		}
	else if (aCommand == KCmdSecureOutput)
		{
		DoCmdSecureOutput();
		}
	else if (aCommand == KCmdSetAudioOutput)
		{
		DoCmdSetAudioOutputL(aSection);
		}
	else if (aCommand == KCmdSetSecureOutput)
		{
		DoCmdSetSecureOutputL(aSection);
		}
	else if (aCommand == KCmdUnregisterObserver)
		{
		DoCmdUnregisterObserver();
		}
	else
		{
		ERR_PRINTF1(_L("Unknown command."));
		ret=EFalse;
		}
	return ret;
	}
/**
* Process a command read from the ini file
*
* @param aDataWrapper	test step requiring command to be processed
* @param aCommand	the command to process
* @param aSection		the entry in the ini file requiring the command to be processed
*
* @return ETrue if the command is processed
*/
TBool CT_DataLinkedTypefaceSpecification::DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt /*aAsyncErrorIndex*/)
	{
	TBool retVal = ETrue;

	if (aCommand == KCmdNewL)
		{
		DoCmdNewL(aSection);
		}
	else if (aCommand == KCmdDestructor)
		{
		DoCmdDestructor();
		}
	else
		{
		retVal=EFalse;
		}

	return retVal;
	}
TBool CT_BluetoothSynchronousLinkData::DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex)
	{
	TBool	ret = ETrue;

	if ( aCommand==KCmdNewL )
		{
		DoCmdNewL(aSection);
		}
	else if ( aCommand==KCmdNewLC )
		{
		DoCmdNewLC(aSection);
		}
	else if ( aCommand==KCmdSetupConnection )
		{
		DoCmdSetupConnection(aSection, aAsyncErrorIndex);
		}
	else if ( aCommand==KCmdCancelSetup )
		{
		DoCmdCancelSetup();
		}
	else if ( aCommand==KCmdDisconnect )
		{
		DoCmdDisconnect(aSection, aAsyncErrorIndex);
		}
	else if ( aCommand==KCmdSend )
		{
		DoCmdSend(aSection, aAsyncErrorIndex);
		}
	else if ( aCommand==KCmdCancelSend )
		{
		DoCmdCancelSend();
		}
	else if ( aCommand==KCmdReceive )
		{
		DoCmdReceive(aSection, aAsyncErrorIndex);
		}
	else if ( aCommand==KCmdCancelReceive )
		{
		DoCmdCancelReceive();
		}
	else if ( aCommand==KCmdAcceptConnection )
		{
		DoCmdAcceptConnection(aSection, aAsyncErrorIndex);
		}
	else if ( aCommand==KCmdCancelAccept )
		{
		DoCmdCancelAccept();
		}
	else if ( aCommand==KCmdSetCoding )
		{
		DoCmdSetCoding(aSection);
		}
	else if ( aCommand==KCmdCoding )
		{
		DoCmdCoding(aSection);
		}
	else if ( aCommand==KCmdSetMaxBandwidth )
		{
		DoCmdSetMaxBandwidth(aSection);
		}
	else if ( aCommand==KCmdBandwidth )
		{
		DoCmdBandwidth();
		}
	else if ( aCommand==KCmdSetMaxLatency )
		{
		DoCmdSetMaxLatency(aSection);
		}
	else if ( aCommand==KCmdLatency )
		{
		DoCmdLatency(aSection);
		}
	else if ( aCommand==KCmdSetRetransmissionEffort )
		{
		DoCmdSetRetransmissionEffort(aSection);
		}
	else if ( aCommand==KCmdRetransmissionEffort )
		{
		DoCmdRetransmissionEffort(aSection);
		}
	else if ( aCommand==KCmdRemoteName )
		{
		DoCmdRemoteName(aSection);
		}
	else if ( aCommand==KCmdSetNotifier )
		{
		DoCmdSetNotifier(aSection);
		}
	else if ( aCommand==KCmdDestructor )
		{
		DoCmdDestructor();
		}
	else if ( aCommand==KCmdMBSLN_ExtensionInterfaceL )
		{
		DoCmdMBSLN_ExtensionInterfaceL(aSection);
		}
	else
		{
		ret=EFalse;
		}

	return ret;
	}