Add IExclusivePlugin

This commit is contained in:
qianlifeng
2015-02-05 22:20:42 +08:00
parent 7b0a643de3
commit ad11ca0a87
21 changed files with 254 additions and 279 deletions

View File

@@ -5,8 +5,8 @@ using System.Text;
namespace Wox.Plugin.Features
{
public interface IExclusiveSearch
public interface IExclusiveQuery
{
bool IsExclusiveSearch(Query query);
bool IsExclusiveQuery(Query query);
}
}

View File

@@ -0,0 +1,7 @@
namespace Wox.Plugin.Features
{
public interface IInstantQuery
{
bool IsInstantQuery(string query);
}
}

View File

@@ -1,13 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Wox.Plugin.Features;
namespace Wox.Plugin
{
public interface IInstantSearch
{
bool IsInstantSearch(string query);
}
}

View File

@@ -24,10 +24,10 @@ namespace Wox.Plugin
}
public string ExecuteFileName { get; set; }
public string PluginDirectory { get; set; }
public string ActionKeyword { get; set; }
public PluginType PluginType { get; set; }
public string IcoPath { get; set; }

View File

@@ -1,13 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Wox.Plugin
{
public enum PluginType
{
System,
User
}
}

View File

@@ -46,8 +46,8 @@
<ItemGroup>
<Compile Include="AllowedLanguage.cs" />
<Compile Include="EventHandler.cs" />
<Compile Include="Features\IExclusiveSearch.cs" />
<Compile Include="IInstantSearch.cs" />
<Compile Include="Features\IExclusiveQuery.cs" />
<Compile Include="Features\IInstantQuery.cs" />
<Compile Include="IHttpProxy.cs" />
<Compile Include="IPluginI18n.cs" />
<Compile Include="IPlugin.cs" />
@@ -56,7 +56,6 @@
<Compile Include="PluginPair.cs" />
<Compile Include="PluginInitContext.cs" />
<Compile Include="PluginMetadata.cs" />
<Compile Include="PluginType.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Query.cs" />
<Compile Include="Result.cs" />