2020-08-12 04:41:41 +08:00
|
|
|
|
// Copyright (c) Microsoft Corporation
|
|
|
|
|
// The Microsoft Corporation licenses this file to you under the MIT license.
|
|
|
|
|
// See the LICENSE file in the project root for more information.
|
|
|
|
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace Wox.Plugin
|
|
|
|
|
{
|
2020-10-27 06:14:33 +08:00
|
|
|
|
public interface IContextMenu
|
2020-08-12 04:41:41 +08:00
|
|
|
|
{
|
|
|
|
|
List<ContextMenuResult> LoadContextMenus(Result selectedResult);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Represent plugins that support internationalization
|
|
|
|
|
/// </summary>
|
2020-10-27 06:14:33 +08:00
|
|
|
|
public interface IPluginI18n
|
2020-08-12 04:41:41 +08:00
|
|
|
|
{
|
|
|
|
|
string GetTranslatedPluginTitle();
|
|
|
|
|
|
|
|
|
|
string GetTranslatedPluginDescription();
|
|
|
|
|
}
|
|
|
|
|
|
2020-10-27 06:14:33 +08:00
|
|
|
|
public interface IResultUpdated
|
2020-08-12 04:41:41 +08:00
|
|
|
|
{
|
|
|
|
|
event ResultUpdatedEventHandler ResultsUpdated;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public delegate void ResultUpdatedEventHandler(IResultUpdated sender, ResultUpdatedEventArgs e);
|
|
|
|
|
}
|