PowerToys/Wox.Plugin.SystemPlugins/BaseSystemPlugin.cs

51 lines
1.1 KiB
C#
Raw Normal View History

2014-01-15 22:45:02 +08:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Wox.Plugin.SystemPlugins
2014-01-15 22:45:02 +08:00
{
public abstract class BaseSystemPlugin :ISystemPlugin
{
protected abstract List<Result> QueryInternal(Query query);
protected abstract void InitInternal(PluginInitContext context);
public List<Result> Query(Query query)
{
if (string.IsNullOrEmpty(query.RawQuery)) return new List<Result>();
2014-01-15 22:45:02 +08:00
return QueryInternal(query);
}
public void Init(PluginInitContext context)
{
InitInternal(context);
}
public virtual string Name
2014-01-15 22:45:02 +08:00
{
get
{
return "System workflow";
}
}
public virtual string Description
2014-01-15 22:45:02 +08:00
{
get
{
return "System workflow";
}
}
public virtual string IcoPath
{
get
{
return null;
}
}
public string PluginDirectory { get; set; }
2014-01-15 22:45:02 +08:00
}
}