/[xmltv_parser]/trunk/libxmltv/Core/XMLTV.cs
ViewVC logotype

Annotation of /trunk/libxmltv/Core/XMLTV.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 46 - (hide annotations) (download)
Fri Mar 8 04:01:25 2013 UTC (7 years, 7 months ago) by william
File size: 1556 byte(s)
+ add support to cancel parseing when main form is closed

1 william 22 using System;
2     using System.Collections.Generic;
3     using System.Linq;
4     using System.Text;
5     using libxmltv.Interfaces;
6 william 46 using System.ComponentModel;
7 william 22
8     namespace libxmltv.Core
9     {
10     /// <summary>
11     /// Main class: Creates the XMLTV Loader
12     /// </summary>
13     public static class XMLTV
14     {
15 william 46 static XMLTV() { xmltv_logger.Initialize(); }
16 william 23
17 william 36
18 william 46 public static IXMLTVRuntimeInstance CreateInstance(string xml_file) { return CreateInstance(xml_file, null); }
19     public static IXMLTVRuntimeInstance CreateInstance(string xml_file, EventHandler<CancelEventArgs> t) { return new XMLTVRuntimeInstance(xml_file,t); }
20 william 36 //private static void CreateLoader(string xml_file, out XMLTVRuntimeInstance xmltv)
21     //{
22     // //XMLTV_LOADER loader = new XMLTV_LOADER(xml_file);
23     // //return loader;
24     // //XMLTVRuntimeInstance instance = CreateInstance(xml_file);
25     // //return instance;
26     // //xmltv = CreateInstance(xml_file);
27     // xmltv = null;
28     //}
29     //private static void CreateParser(out XMLTVRuntimeInstance xmltv)
30     //{
31     // //XMLTV_PARSER parser = new XMLTV_PARSER(xmltv);
32     // //return parser;
33     // xmltv = null;
34     //}
35    
36     ////private static IXMLTV_PARSER GetParser(object xmltv)
37     ////{
38     //// IXMLTV_PARSER _xmltv;
39     //// if (!Internals.VerifyInstance<IXMLTV_PARSER>(xmltv, out _xmltv)) { return null; }
40     //// return _xmltv;
41     ////}
42 william 22 }
43     }
44 william 46

  ViewVC Help
Powered by ViewVC 1.1.22