start issue#11

This commit is contained in:
qianlifeng
2014-01-07 23:27:05 +08:00
parent a5f3359d32
commit 70339423d0
17 changed files with 139 additions and 33 deletions

View File

@@ -24,9 +24,9 @@ namespace WinAlfred.PluginLoader
Plugins = plugins,
ChangeQuery = s => window.ChangeQuery(s),
CloseApp = window.CloseApp,
HideApp = window.HideApp,
HideApp = window.HideApp,
ShowApp = window.ShowApp,
ShowMsg = (title,subTitle,iconPath) => window.ShowMsg(title,subTitle,iconPath)
ShowMsg = (title, subTitle, iconPath) => window.ShowMsg(title, subTitle, iconPath)
}));
}
}
@@ -35,5 +35,12 @@ namespace WinAlfred.PluginLoader
{
get { return plugins; }
}
public static bool HitThirdpartyKeyword(Query query)
{
if (string.IsNullOrEmpty(query.ActionName)) return false;
return plugins.Any(o => o.Metadata.PluginType == PluginType.ThirdParty && o.Metadata.ActionKeyword == query.ActionName);
}
}
}