/[xmltv_parser]/trunk/GBPVRProgramDatabaseFixer/Program.cs
ViewVC logotype

Diff of /trunk/GBPVRProgramDatabaseFixer/Program.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 155 by william, Thu Mar 14 17:10:09 2013 UTC revision 158 by william, Thu Mar 14 19:41:32 2013 UTC
# Line 12  namespace GBPVRProgramDatabaseFixer Line 12  namespace GBPVRProgramDatabaseFixer
12  {  {
13      class Program      class Program
14      {      {
15            static SQLLITE sqlite;
16          static string XMLTV_FILE = "";          static string XMLTV_FILE = "";
17          static string GBPVR_DATABASE = "";          static string GBPVR_DATABASE = "";
18    
# Line 85  namespace GBPVRProgramDatabaseFixer Line 86  namespace GBPVRProgramDatabaseFixer
86    
87              LoadXMLTVFile();              LoadXMLTVFile();
88              LoadGBPVRDatabase();              LoadGBPVRDatabase();
89                PerformDatabaseProcessing();      
90          }          }
91    
92          static void ConsoleOverwritePreviosLine(string format, params object[] args)          static void ConsoleOverwritePreviosLine(string format, params object[] args)
# Line 160  namespace GBPVRProgramDatabaseFixer Line 162  namespace GBPVRProgramDatabaseFixer
162                  return;                  return;
163              }              }
164    
165                sqlite = new SQLLITE(fi_GBPVRDATABASE.FullName, new EventHandler<EventArgs>(SQLLITE_OnInstanceCreated));
166                while (!SQLLIST_INSTANCE_CREATED) { Application.DoEvents(); }
167              LOADING_GBPVR_DATABASE = false;              LOADING_GBPVR_DATABASE = false;
168          }          }
169            static void SQLLITE_OnInstanceCreated(object sender, EventArgs e) { SQLLIST_INSTANCE_CREATED = true; }
170    
171    
172            static List<SQLLITE.IPROGRAMME> gbpvr_programs;
173            static List<SQLLITE.IRECORDING_SCHEDULE> gbpvr_recordings;
174            static List<libxmltv.Interfaces.IXMLTVProgram> xmltv_programs;
175            static void PerformDatabaseProcessing()
176            {
177                gbpvr_programs = sqlite.Programs;
178                gbpvr_recordings = sqlite.Recordings;
179                xmltv_programs = XMLTV.GetPrograms();
180                CheckScheduledRecordingsForDiscrepancies();
181                CheckProgramsForDiscrepancies();
182            }
183    
184            static void CheckScheduledRecordingsForDiscrepancies()
185            {
186                gLog.Warn.WriteLine("CheckScheduledRecordingsForDiscrepancies() has not been implemented");
187            }
188            static void CheckProgramsForDiscrepancies()
189            {
190                gLog.Warn.WriteLine("CheckProgramsForDiscrepancies() has not been implemented");
191            }
192      }      }
193  }  }

Legend:
Removed from v.155  
changed lines
  Added in v.158

  ViewVC Help
Powered by ViewVC 1.1.22