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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 49 - (show annotations) (download)
Fri Mar 8 05:20:12 2013 UTC (7 years, 8 months ago) by william
File size: 978 byte(s)

1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
5 using libxmltv.Interfaces;
6 using System.ComponentModel;
7
8 namespace libxmltv.Core
9 {
10 /// <summary>
11 /// Main class: Creates the XMLTV Loader
12 /// </summary>
13 public static class XMLTV
14 {
15 static XMLTV() { xmltv_logger.Initialize(); }
16
17 private static XMLTVRuntimeInstance instance;
18 public static IXMLTVRuntimeInstance GetInstance() { return InternalGetInstance(); }
19 internal static XMLTVRuntimeInstance InternalGetInstance() { return instance; }
20 public static void CreateInstance(string xml_file) { CreateInstance(xml_file, null); }
21 public static void CreateInstance(string xml_file, EventHandler<CancelEventArgs> t) { instance = new XMLTVRuntimeInstance(xml_file, t); }
22 public static IXMLTVSerializer<IXMLTVRuntimeInstance> GetSerializer() {return InternalGetInstance().Serializer; }
23 }
24 }
25
26

  ViewVC Help
Powered by ViewVC 1.1.22