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; |
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 |
|
} |