Refactoring Plugin.Feature

This commit is contained in:
bao-qian
2015-11-02 19:27:46 +00:00
parent 7a38143f5e
commit 86da8cbd17
13 changed files with 59 additions and 44 deletions

View File

@@ -1,9 +1,8 @@
using System.Collections.Generic;
using System;
namespace Wox.Plugin.Features
{
public interface IContextMenu
{
List<Result> LoadContextMenus(Result selectedResult);
}
[Obsolete("Delete Wox.Plugin.Features using directive, " +
"and use Wox.Plugin.Feature.IContextMenu instead, " +
"this method will be removed in v1.3.0")]
public interface IContextMenu { }
}

View File

@@ -1,7 +1,9 @@
namespace Wox.Plugin.Features
using System;
namespace Wox.Plugin.Features
{
public interface IExclusiveQuery
{
bool IsExclusiveQuery(Query query);
}
[Obsolete("Delete Wox.Plugin.Features using directive, " +
"and use Wox.Plugin.Feature.IInstantQuery instead, " +
"this method will be removed in v1.3.0")]
public interface IExclusiveQuery { }
}

View File

@@ -1,11 +1,9 @@
namespace Wox.Plugin.Features
using System;
namespace Wox.Plugin.Features
{
/// <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
{
bool IsInstantQuery(string query);
}
[Obsolete("Delete Wox.Plugin.Features using directive, " +
"and use Wox.Plugin.Feature.IInstantQuery instead, " +
"this method will be removed in v1.3.0")]
public interface IInstantQuery { }
}