mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-14 03:37:10 +08:00
28 lines
857 B
C#
28 lines
857 B
C#
using System.Collections.Generic;
|
|
|
|
namespace Wox.Plugin.SystemPlugins
|
|
{
|
|
|
|
public abstract class BaseSystemPlugin : ISystemPlugin
|
|
{
|
|
public string PluginDirectory { get; set; }
|
|
public virtual string Name { get { return "System workflow"; } }
|
|
public virtual string Description { get { return "System workflow"; } }
|
|
public virtual string IcoPath { get { return null; } }
|
|
|
|
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>();
|
|
return QueryInternal(query);
|
|
}
|
|
|
|
public void Init(PluginInitContext context)
|
|
{
|
|
InitInternal(context);
|
|
}
|
|
}
|
|
} |