PowerToys/Wox.Plugin/IPublicAPI.cs

44 lines
998 B
C#
Raw Normal View History

2014-07-05 23:10:34 +08:00
using System;
using System.Collections.Generic;
using System.Windows.Documents;
namespace Wox.Plugin
{
public interface IPublicAPI
{
2014-12-26 22:51:04 +08:00
/// <summary>
/// Push result to query window
/// </summary>
/// <param name="query"></param>
/// <param name="plugin"></param>
/// <param name="results"></param>
2014-07-05 23:10:34 +08:00
void PushResults(Query query,PluginMetadata plugin, List<Result> results);
2014-10-24 13:09:51 +08:00
bool ShellRun(string cmd, bool runAsAdministrator = false);
2014-07-05 23:10:34 +08:00
void ChangeQuery(string query, bool requery = false);
void CloseApp();
void HideApp();
void ShowApp();
void ShowMsg(string title, string subTitle, string iconPath);
void OpenSettingDialog();
void StartLoadingBar();
void StopLoadingBar();
void InstallPlugin(string path);
void ReloadPlugins();
List<PluginPair> GetAllPlugins();
2014-07-19 10:12:11 +08:00
event WoxKeyDownEventHandler BackKeyDownEvent;
2014-07-05 23:10:34 +08:00
}
}