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; }
|
2014-03-01 07:42:33 +00:00
|
|
|
|
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; }
|
2014-01-25 10:00:13 +00:00
|
|
|
|
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; }
|
2014-03-20 19:53:18 +00:00
|
|
|
|
|
|
|
|
|
|
public Func<string, bool> ShellRun { get; set; }
|
2014-01-03 15:52:36 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|