PowerToys/Wox.Plugin/PluginInitContext.cs
Yeechan Lu 9a2ffc1d7c Add Google suggestions for web searches
Fix issues with push results
2014-03-27 16:56:50 +08:00

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; }
}
}