mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-15 20:19:17 +08:00
48 lines
1.1 KiB
C#
48 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Windows.Documents;
|
|
|
|
namespace Wox.Plugin
|
|
{
|
|
public interface IPublicAPI
|
|
{
|
|
/// <summary>
|
|
/// Push result to query window
|
|
/// </summary>
|
|
/// <param name="query"></param>
|
|
/// <param name="plugin"></param>
|
|
/// <param name="results"></param>
|
|
void PushResults(Query query,PluginMetadata plugin, List<Result> results);
|
|
|
|
bool ShellRun(string cmd, bool runAsAdministrator = false);
|
|
|
|
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();
|
|
|
|
string GetTranslation(string key);
|
|
|
|
List<PluginPair> GetAllPlugins();
|
|
|
|
event WoxKeyDownEventHandler BackKeyDownEvent;
|
|
|
|
event WoxGlobalKeyboardEventHandler GlobalKeyboardEvent;
|
|
}
|
|
}
|