using System;
using System.Collections;
using System.ComponentModel.Composition;
using System.Windows.Forms;

namespace QC.QTMInterface;

[InheritedExport]
public class TTDPlugIn : BasePlugin
{
	public delegate CallbackResultInfo TTDPluginHandler(object sender, TTDPluginEventArgs e);

	public TTDPluginHandler OnTTDPluginHandler;

	private bool getDebugMsg;

	public virtual string XmlTreeName
	{
		get
		{
			return "";
		}
		set
		{
		}
	}

	public virtual string Caption => string.Empty;

	public virtual ImageList ToolImages => null;

	public virtual ArrayList ToolbarItems => null;

	public virtual bool GetDebugMsg => getDebugMsg;

	public event TTDSubmitClickHandler submitClicked;

	protected void DoClick(EventArgs e)
	{
		if (this.submitClicked != null)
		{
			this.submitClicked(this, e);
		}
	}

	public virtual void CalledFromMainAppFunction()
	{
	}

	public virtual ArrayList GetConfiguration()
	{
		return null;
	}

	public virtual ArrayList GetConfiguration(string testerConfgiFile, bool refresh)
	{
		return null;
	}

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