/[xmltv_parser]/trunk/libxmltv/Interfaces/Interfaces.cs
ViewVC logotype

Diff of /trunk/libxmltv/Interfaces/Interfaces.cs

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

--- trunk/libxmltv/Interfaces/Interfaces.cs	2013/03/09 09:29:40	72
+++ trunk/libxmltv/Interfaces/Interfaces.cs	2013/03/09 10:27:39	73
@@ -48,12 +48,15 @@
         string ToString();
     }
 
-    public interface IXMLTVProgramCollection : IXMLTVCollection<int, IXMLTVProgram> { }
-    public interface IXMLTVChannelCollection : IXMLTVCollection<string, IXMLTVChannel> { }
-    public interface IXMLTVCollection<TKey, TValue> { Dictionary<TKey, TValue> Collection { get; } }
+    public interface IXMLTVProgramCollection : IXMLTVDictionaryCollection<string, IXMLTVProgram> { }
+    public interface IXMLTVChannelCollection : IXMLTVDictionaryCollection<string, IXMLTVChannel> { }
+    public interface IXMLTVDictionaryCollection<TKey, TValue> { Dictionary<TKey, TValue> Collection { get; } }
+    public interface IXMLTVListCollection<TValue> { List<TValue> Collection { get; } }
+
+    public interface IXMLTVHandler<T> { T Handler { get; } }
 
     //public interface IXMLTVBase : IXMLTVBase<object> { }
-    public interface IXMLTVBase<T> : IGetInstance<T> { }
+    public interface IXMLTVBase<T> : IGetInstance<T>, IXMLTVHandler<object> { }
     public interface IXMLTVRuntimeInstance : IOnInstanceCreated
     {
         bool IsAborting { get; } 
@@ -61,9 +64,9 @@
         string XmlFile_Name { get; }
         string XmlFile_FullName { get; }
         string XmlDoc { get; }
-        IXMLTVSource Source { get; }
-        Dictionary<string, IXMLTVChannel> Channels { get; }
-        Dictionary<int, IXMLTVProgram> Programs { get; }
+        List<IXMLTVSource> Source { get; }
+        List<IXMLTVChannel> Channels { get; }
+        List<IXMLTVProgram> Programs { get; }
         
     }
     public interface IXMLTVSerializer : IXMLTVSerializer<object> { }

 

  ViewVC Help
Powered by ViewVC 1.1.22