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; }
|
2014-03-01 15:42:33 +08:00
|
|
|
|
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; }
|
2014-01-25 18:00:13 +08:00
|
|
|
|
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; }
|
2014-03-21 03:53:18 +08:00
|
|
|
|
|
|
|
|
|
public Func<string, bool> ShellRun { get; set; }
|
2014-03-27 14:50:42 +08:00
|
|
|
|
|
2014-03-27 16:56:50 +08:00
|
|
|
|
public Action<Query, List<Result>> PushResults { get; set; }
|
2014-01-03 23:52:36 +08:00
|
|
|
|
}
|
|
|
|
|
}
|