Flow.Launcher/Wox.Plugin/PluginInitContext.cs

36 lines
1,017 B
C#
Raw Normal View History

2014-01-03 15:52:36 +00:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
2014-01-29 10:33:24 +00:00
namespace Wox.Plugin
2014-01-03 15:52:36 +00:00
{
public class PluginInitContext
{
public List<PluginPair> Plugins { get; set; }
public PluginMetadata CurrentPluginMetadata { get; set; }
2014-01-05 09:56:02 +00:00
2014-01-03 15:52:36 +00:00
public Action<string> ChangeQuery { get; set; }
2014-01-05 09:56:02 +00:00
public Action CloseApp { get; set; }
public Action HideApp { get; set; }
public Action ShowApp { get; set; }
2014-03-11 15:54:37 +00:00
public Action<string, string, string> ShowMsg { get; set; }
public Action OpenSettingDialog { get; set; }
2014-02-28 15:21:01 +00:00
public Action<string> ShowCurrentResultItemTooltip { get; set; }
2014-03-11 15:54:37 +00:00
/// <summary>
/// reload all plugins
/// </summary>
public Action ReloadPlugins { get; set; }
2014-03-13 14:31:44 +00: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 15:52:36 +00:00
}
}