mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-14 03:37:10 +08:00
9a2ffc1d7c
Fix issues with push results
38 lines
1.1 KiB
C#
38 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace Wox.Plugin
|
|
{
|
|
public class PluginInitContext
|
|
{
|
|
public List<PluginPair> Plugins { get; set; }
|
|
public PluginMetadata CurrentPluginMetadata { get; set; }
|
|
|
|
|
|
public Action<string> ChangeQuery { get; set; }
|
|
public Action CloseApp { get; set; }
|
|
public Action HideApp { get; set; }
|
|
public Action ShowApp { get; set; }
|
|
public Action<string, string, string> ShowMsg { get; set; }
|
|
public Action OpenSettingDialog { get; set; }
|
|
|
|
public Action<string> ShowCurrentResultItemTooltip { get; set; }
|
|
|
|
/// <summary>
|
|
/// reload all plugins
|
|
/// </summary>
|
|
public Action ReloadPlugins { get; set; }
|
|
|
|
public Action<string> InstallPlugin { get; set; }
|
|
|
|
public Action StartLoadingBar { get; set; }
|
|
public Action StopLoadingBar { get; set; }
|
|
|
|
public Func<string, bool> ShellRun { get; set; }
|
|
|
|
public Action<Query, List<Result>> PushResults { get; set; }
|
|
}
|
|
}
|