using System.ComponentModel.Composition;

namespace QC.QTMInterface;

[InheritedExport]
public class TestResultPlugin : BasePlugin
{
	public delegate CallbackResultInfo TestResultsPluginEventHandler(object sender, TestResultsPluginEventArgs e);

	private bool getDebugMsg;

	public virtual string Caption => string.Empty;

	public virtual bool GetDebugMsg => getDebugMsg;

	public event TestResultsPluginEventHandler OnTestResultsPluginEventHandler;

	protected CallbackResultInfo OnTestResultsPlugin(TestResultsPluginEventArgs e)
	{
		if (this.OnTestResultsPluginEventHandler != null)
		{
			return this.OnTestResultsPluginEventHandler(this, e);
		}
		return default(CallbackResultInfo);
	}

	public virtual void OnDebugMsg(DebugMsgType msgType, object msgInfo)
	{
	}
}
