using System.Xml.Serialization;
using DebugToolInstrumentInterface;

namespace QFDT;

[XmlRoot("Factory_Debug_WPF", Namespace = "", IsNullable = false)]
public class Factory_Debug_Cofiguration
{
	[XmlElement]
	public string Product_Configuration_Folder = "C:\\Qualcomm\\QDART\\QFDT\\Products";

	[XmlElement]
	public UI UI = new UI();

	[XmlElement]
	public string HLOS_XML_Path = "C:\\Qualcomm\\QDART\\QFDT\\HLOS_Commands.xml";

	[XmlElement]
	public string PhoneMode = "QPST";

	[XmlElement]
	public DebugToolUpdate UpdateService = new DebugToolUpdate();

	[XmlElement]
	public string Language = "en-US";

	[XmlElement]
	public BasicEquipConfig PowerSupply;

	[XmlElement]
	public BasicEquipConfig SpectrumAnalyzer;

	[XmlElement]
	public BasicEquipConfig SignalGenerator;

	[XmlElement]
	public Device_Detection_Keyword Device_Detection_Keywords;

	public Factory_Debug_Cofiguration()
	{
		PowerSupply = new BasicEquipConfig();
		PowerSupply.SetValue(TEDriverType.visa32.ToString(), "5", "GPIB0::5::INSTR", "Keithley_2303", "QFDT_SimplePowerSupply.dll");
		SpectrumAnalyzer = new BasicEquipConfig();
		SpectrumAnalyzer.SetValue(TEDriverType.visa32.ToString(), "4", "GPIB0::4::INSTR", "QTI_SCPI", "QFDT_SimpleSpectrumAnalyzer.dll");
		SignalGenerator = new BasicEquipConfig();
		SignalGenerator.SetValue(TEDriverType.visa32.ToString(), "11", "GPIB0::11::INSTR", "QTI_SCPI", "QFDT_SimpleSignalGenerator.dll");
	}
}
