add AutoAjustScore option for results

This commit is contained in:
qianlifeng
2014-01-15 22:45:02 +08:00
parent 93d8f66afc
commit 56118a7142
15 changed files with 106 additions and 147 deletions

View File

@@ -12,7 +12,7 @@ using WinAlfred.Plugin.System.Common;
namespace WinAlfred.Plugin.System
{
public class BrowserBookmarks : ISystemPlugin
public class BrowserBookmarks : BaseSystemPlugin
{
private List<Bookmark> bookmarks = new List<Bookmark>();
@@ -21,7 +21,7 @@ namespace WinAlfred.Plugin.System
static extern bool SHGetSpecialFolderPath(IntPtr hwndOwner, [Out] StringBuilder lpszPath, int nFolder, bool fCreate);
const int CSIDL_LOCAL_APPDATA = 0x001c;
public List<Result> Query(Query query)
protected override List<Result> QueryInternal(Query query)
{
if (string.IsNullOrEmpty(query.RawQuery) || query.RawQuery.EndsWith(" ") || query.RawQuery.Length <= 1) return new List<Result>();
@@ -55,7 +55,7 @@ namespace WinAlfred.Plugin.System
return false;
}
public void Init(PluginInitContext context)
protected override void InitInternal(PluginInitContext context)
{
LoadChromeBookmarks();
}
@@ -114,22 +114,6 @@ namespace WinAlfred.Plugin.System
Regex reg = new Regex(@"(?i)\\[uU]([0-9a-f]{4})");
return reg.Replace(dataStr, m => ((char)Convert.ToInt32(m.Groups[1].Value, 16)).ToString());
}
public string Name
{
get
{
return "BrowserBookmark";
}
}
public string Description
{
get
{
return "BrowserBookmark";
}
}
}
public class Bookmark