mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-10 13:35:31 +02:00
add AutoAjustScore option for results
This commit is contained in:
39
WinAlfred.Plugin.System/BaseSystemPlugin.cs
Normal file
39
WinAlfred.Plugin.System/BaseSystemPlugin.cs
Normal file
@@ -0,0 +1,39 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace WinAlfred.Plugin.System
|
||||
{
|
||||
public abstract class BaseSystemPlugin :ISystemPlugin
|
||||
{
|
||||
protected abstract List<Result> QueryInternal(Query query);
|
||||
protected abstract void InitInternal(PluginInitContext context);
|
||||
|
||||
public List<Result> Query(Query query)
|
||||
{
|
||||
return QueryInternal(query);
|
||||
}
|
||||
|
||||
public void Init(PluginInitContext context)
|
||||
{
|
||||
InitInternal(context);
|
||||
}
|
||||
|
||||
public string Name
|
||||
{
|
||||
get
|
||||
{
|
||||
return "System workflow";
|
||||
}
|
||||
}
|
||||
|
||||
public string Description
|
||||
{
|
||||
get
|
||||
{
|
||||
return "System workflow";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user