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>
|
2015-01-18 18:21:48 +08:00
|
|
|
|
/// <param name="clearBeforeInsert"></param>
|
|
|
|
|
void PushResults(Query query,PluginMetadata plugin, List<Result> results,bool clearBeforeInsert = false);
|
2014-07-05 23:10:34 +08:00
|
|
|
|
|
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();
|
|
|
|
|
|
2015-01-06 23:24:11 +08:00
|
|
|
|
string GetTranslation(string key);
|
|
|
|
|
|
2014-07-05 23:10:34 +08:00
|
|
|
|
List<PluginPair> GetAllPlugins();
|
2014-07-19 10:12:11 +08:00
|
|
|
|
|
|
|
|
|
event WoxKeyDownEventHandler BackKeyDownEvent;
|
2015-01-08 22:49:42 +08:00
|
|
|
|
|
|
|
|
|
event WoxGlobalKeyboardEventHandler GlobalKeyboardEvent;
|
2015-01-18 18:21:48 +08:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// fired after wox execute a query
|
|
|
|
|
/// </summary>
|
|
|
|
|
event AfterWoxQueryEventHandler AfterWoxQueryEvent;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// fired before wox start to execute a query
|
|
|
|
|
/// </summary>
|
|
|
|
|
event AfterWoxQueryEventHandler BeforeWoxQueryEvent;
|
2014-07-05 23:10:34 +08:00
|
|
|
|
}
|
|
|
|
|
}
|