ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/xmltv_parser/trunk/libxmltv/Core/XMLTVParser.cs
(Generate patch)

Comparing trunk/libxmltv/Core/XMLTVParser.cs (file contents):
Revision 43 by william, Fri Mar 8 02:13:59 2013 UTC vs.
Revision 44 by william, Fri Mar 8 03:36:44 2013 UTC

# Line 9 | Line 9 | using System.Xml.Linq;
9  
10   namespace libxmltv.Core
11   {
12 <    internal class XMLTVParser //: IXMLTV_PARSER
12 >    internal class XMLTVParser : IDisposable
13      {
14          private XMLTVRuntimeInstance instance;
15 <        public XMLTVParser(XMLTVRuntimeInstance xmltv)
15 >
16 >        internal static void CreateInstance(XMLTVRuntimeInstance xmltv)
17 >        {
18 >            using (XMLTVParser g = new XMLTVParser(xmltv)) { }
19 >        }
20 >
21 >
22 >        protected XMLTVParser(XMLTVRuntimeInstance xmltv)
23          {
24              XMLTV_LOGGER.Log.Verbose.Debug.WriteLine("Creating Instance of XMLTVParser");
25              //IXMLTV_LOADER _xmltv;
# Line 118 | Line 125 | namespace libxmltv.Core
125          }
126          private void CreateXMLTVSource()
127          {
128 <            XMLTVSource source = new XMLTVSource(instance);
129 <            instance.Source = source;
128 >            //XMLTVSource source = new XMLTVSource(instance);
129 >            //instance.Source = source;
130 >            XMLTVSource.CreateInstance(instance);
131          }
132          private void CreateXMLTVChannels()
133          {
134 <            XMLTVChannelCollection channels = new XMLTVChannelCollection(instance);
135 <            instance.Channels = channels.Collection;            
134 >            //XMLTVChannelCollection channels = new XMLTVChannelCollection(instance);
135 >            //instance.Channels = channels.Collection;            
136 >            XMLTVChannelCollection.CreateInstance(instance);
137          }
138          private void CreateXMLTVPrograms()
139          {
140 <            XMLTVProgramCollection programs = new XMLTVProgramCollection(instance);
141 <            instance.Programs = programs.Collection;
140 >            //XMLTVProgramCollection programs = new XMLTVProgramCollection(instance);
141 >            //instance.Programs = programs.Collection;
142 >            XMLTVProgramCollection.CreateInstance(instance);
143          }
144          #endregion
145 +
146 +        public void Dispose()
147 +        {
148 +            //throw new NotImplementedException();
149 +        }
150      }
151   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines