2014-03-19 04:05:27 +08:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
2015-01-05 22:41:17 +08:00
|
|
|
|
namespace Wox.Plugin.Program
|
2014-03-19 04:05:27 +08:00
|
|
|
|
{
|
|
|
|
|
[Serializable]
|
|
|
|
|
public class ProgramSource
|
|
|
|
|
{
|
|
|
|
|
public string Location { get; set; }
|
|
|
|
|
public string Type { get; set; }
|
2014-03-19 20:16:20 +08:00
|
|
|
|
public int BonusPoints { get; set; }
|
2014-03-19 04:05:27 +08:00
|
|
|
|
public bool Enabled { get; set; }
|
2016-04-25 01:34:49 +08:00
|
|
|
|
// happlebao todo: temp hack for program suffixes
|
|
|
|
|
public string[] Suffixes { get; set; } = {"bat", "appref-ms", "exe", "lnk"};
|
2016-03-28 10:09:57 +08:00
|
|
|
|
public const char SuffixSeperator = ';';
|
2015-04-21 08:32:10 +08:00
|
|
|
|
public int MaxDepth { get; set; }
|
2014-03-19 04:05:27 +08:00
|
|
|
|
public Dictionary<string, string> Meta { get; set; }
|
2014-03-19 20:16:20 +08:00
|
|
|
|
|
|
|
|
|
public override string ToString()
|
|
|
|
|
{
|
2016-01-07 05:34:42 +08:00
|
|
|
|
return (Type ?? "") + ":" + Location ?? "";
|
2014-03-19 20:16:20 +08:00
|
|
|
|
}
|
2014-03-19 04:05:27 +08:00
|
|
|
|
}
|
|
|
|
|
}
|