2015-11-03 03:27:46 +08:00
|
|
|
|
using System.Collections.Generic;
|
2015-11-03 08:34:27 +08:00
|
|
|
|
using System;
|
2015-11-03 03:27:46 +08:00
|
|
|
|
|
|
|
|
|
namespace Wox.Plugin
|
|
|
|
|
{
|
|
|
|
|
public interface IFeatures { }
|
|
|
|
|
|
|
|
|
|
public interface IContextMenu : IFeatures
|
|
|
|
|
{
|
|
|
|
|
List<Result> LoadContextMenus(Result selectedResult);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public interface IExclusiveQuery : IFeatures
|
|
|
|
|
{
|
|
|
|
|
bool IsExclusiveQuery(Query query);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Represent plugin query will be executed in UI thread directly. Don't do long-running operation in Query method if you implement this interface
|
|
|
|
|
/// <remarks>This will improve the performance of instant search like websearch or cmd plugin</remarks>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public interface IInstantQuery : IFeatures
|
|
|
|
|
{
|
2015-11-03 08:34:27 +08:00
|
|
|
|
[Obsolete("Empty interface is enough. it will be removed in v1.3.0 and possibly replaced by attribute")]
|
2015-11-03 03:27:46 +08:00
|
|
|
|
bool IsInstantQuery(string query);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Represent plugins that support internationalization
|
|
|
|
|
/// </summary>
|
|
|
|
|
public interface IPluginI18n : IFeatures
|
|
|
|
|
{
|
|
|
|
|
string GetLanguagesFolder();
|
|
|
|
|
|
|
|
|
|
string GetTranslatedPluginTitle();
|
|
|
|
|
|
|
|
|
|
string GetTranslatedPluginDescription();
|
|
|
|
|
}
|
|
|
|
|
}
|