using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace WinAlfred.Plugin.System { public abstract class BaseSystemPlugin :ISystemPlugin { protected abstract List QueryInternal(Query query); protected abstract void InitInternal(PluginInitContext context); public List Query(Query query) { if (string.IsNullOrEmpty(query.RawQuery) || query.RawQuery.EndsWith(" ")) return new List(); return QueryInternal(query); } public void Init(PluginInitContext context) { InitInternal(context); } public string Name { get { return "System workflow"; } } public string Description { get { return "System workflow"; } } } }