PowerToys/Wox.Plugin/PluginInitContext.cs

36 lines
1017 B
C#
Raw Normal View History

2014-01-03 23:52:36 +08:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
2014-01-29 18:33:24 +08:00
namespace Wox.Plugin
2014-01-03 23:52:36 +08:00
{
public class PluginInitContext
{
public List<PluginPair> Plugins { get; set; }
public PluginMetadata CurrentPluginMetadata { get; set; }
2014-01-05 17:56:02 +08:00
2014-01-03 23:52:36 +08:00
public Action<string> ChangeQuery { get; set; }
2014-01-05 17:56:02 +08:00
public Action CloseApp { get; set; }
public Action HideApp { get; set; }
public Action ShowApp { get; set; }
2014-03-11 23:54:37 +08:00
public Action<string, string, string> ShowMsg { get; set; }
public Action OpenSettingDialog { get; set; }
2014-02-28 23:21:01 +08:00
public Action<string> ShowCurrentResultItemTooltip { get; set; }
2014-03-11 23:54:37 +08:00
/// <summary>
/// reload all plugins
/// </summary>
public Action ReloadPlugins { get; set; }
2014-03-13 22:31:44 +08:00
public Action<string> InstallPlugin { get; set; }
public Action StartLoadingBar { get; set; }
public Action StopLoadingBar { get; set; }
public Func<string, bool> ShellRun { get; set; }
2014-01-03 23:52:36 +08:00
}
}