2013-03-31 14:09:38 +02:00
|
|
|
|
using ChanSort.Api;
|
|
|
|
|
|
|
2021-01-23 14:22:18 +01:00
|
|
|
|
namespace ChanSort.Loader.Samsung.Scm
|
2013-03-31 14:09:38 +02:00
|
|
|
|
{
|
2014-11-04 11:15:34 +01:00
|
|
|
|
public enum FavoritesIndexMode
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// D model uses values 0 and 1
|
|
|
|
|
|
/// </summary>
|
2015-11-27 23:47:09 +01:00
|
|
|
|
Boolean = 0,
|
2014-11-04 11:15:34 +01:00
|
|
|
|
/// <summary>
|
2015-11-27 23:47:09 +01:00
|
|
|
|
/// E model uses -1 for not-a-fav and 1..x for a fav program number
|
2014-11-04 11:15:34 +01:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
IndividuallySorted = 1,
|
|
|
|
|
|
/// <summary>
|
2015-11-27 23:47:09 +01:00
|
|
|
|
/// some F models and H series uses -1 for not-a-fav, but expects 1..x to match the main program number
|
2014-11-04 11:15:34 +01:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
MainProgramnrIndex = 2
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2013-03-31 14:09:38 +02:00
|
|
|
|
internal class ModelConstants
|
|
|
|
|
|
{
|
2013-05-16 21:06:44 +02:00
|
|
|
|
public readonly string series;
|
2013-03-31 14:09:38 +02:00
|
|
|
|
public readonly int dvbsSatelliteLength;
|
|
|
|
|
|
public readonly int dvbsTransponderLength;
|
|
|
|
|
|
public readonly int dvbsChannelLength;
|
|
|
|
|
|
public readonly int dvbtChannelLength;
|
|
|
|
|
|
public readonly int avbtChannelLength;
|
|
|
|
|
|
public readonly int hdplusChannelLength;
|
|
|
|
|
|
public readonly int avbtFineTuneLength;
|
|
|
|
|
|
public readonly int dvbtFineTuneLength;
|
2013-04-03 12:47:24 +02:00
|
|
|
|
public readonly int ptcLength;
|
2014-01-19 19:08:17 +01:00
|
|
|
|
public readonly int serviceProviderLength;
|
2021-03-14 22:13:22 +01:00
|
|
|
|
public readonly int numFavorites;
|
2014-11-04 11:15:34 +01:00
|
|
|
|
public readonly FavoritesIndexMode SortedFavorites;
|
2014-09-11 15:22:31 +02:00
|
|
|
|
public readonly int cyfraPlusChannelSize;
|
2013-03-31 14:09:38 +02:00
|
|
|
|
|
|
|
|
|
|
public ModelConstants(IniFile.Section iniSection)
|
|
|
|
|
|
{
|
2013-05-16 21:06:44 +02:00
|
|
|
|
this.series = iniSection.Name.Substring(iniSection.Name.Length - 1);
|
2013-03-31 14:09:38 +02:00
|
|
|
|
this.avbtChannelLength = iniSection.GetInt("map-AirA");
|
|
|
|
|
|
this.dvbtChannelLength = iniSection.GetInt("map-AirD");
|
|
|
|
|
|
this.dvbsChannelLength = iniSection.GetInt("map-SateD");
|
|
|
|
|
|
this.hdplusChannelLength = iniSection.GetInt("map-AstraHDPlusD");
|
2014-09-11 15:22:31 +02:00
|
|
|
|
this.cyfraPlusChannelSize = iniSection.GetInt("map-CyfraPlusD");
|
|
|
|
|
|
this.ptcLength = iniSection.GetInt("PTC");
|
2013-03-31 14:09:38 +02:00
|
|
|
|
this.dvbsSatelliteLength = iniSection.GetInt("SatDataBase.dat");
|
|
|
|
|
|
this.dvbsTransponderLength = iniSection.GetInt("TransponderDataBase.dat");
|
|
|
|
|
|
this.avbtFineTuneLength = iniSection.GetInt("FineTune");
|
|
|
|
|
|
this.dvbtFineTuneLength = iniSection.GetInt("FineTune_Digital");
|
2014-01-19 19:08:17 +01:00
|
|
|
|
this.serviceProviderLength = iniSection.GetInt("ServiceProvider", 108);
|
2021-03-14 22:13:22 +01:00
|
|
|
|
this.numFavorites = iniSection.GetInt("Favorites");
|
2014-11-04 11:15:34 +01:00
|
|
|
|
this.SortedFavorites = (FavoritesIndexMode)iniSection.GetInt("SortedFavorites");
|
2013-03-31 14:09:38 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|