/[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/10 17:41:52	118
+++ trunk/libxmltv/Interfaces/Interfaces.cs	2013/03/10 18:19:12	120
@@ -23,13 +23,20 @@
     //    Dictionary<int, IXMLTVProgram> Programs { get; }
     //}
 
-    public interface IXMLTVSource
+    public interface IXMLTVSource : IDataSourceBindable
     {
         string SourceName { get; }
         string GeneratorName { get; }
         string GeneratorUrl { get; }
         string ToString();
     }
+
+    //internal interface IChannelList : IDataSourceBindable
+    //{
+    //}
+    //internal interface IProgramList : IDataSourceBindable
+    //{
+    //}
     public interface IXMLTVChannel
     {
         string Id { get; }
@@ -39,10 +46,10 @@
         IPropertyList MetaData { get; }
         string ToString();
     }
-    public interface IXMLTVProgram
+    public interface IXMLTVProgram 
     {
         IPropertyDictionary MetaData { get; }
-        List<IExtraMetaData> GetExtraMetaData();
+        ExtraList GetExtraMetaData();
     }
 
     public interface IExtraMetaData : IExtraMetaData<string, string> { }
@@ -50,6 +57,12 @@
     {
         XElement AsXElement();
     }
+
+    public interface IDataSourceBindable
+    {
+        object CreateBindableDataSource();
+    }
+
     internal interface IXMLTVProgramCollection : IXMLTVDictionaryCollection<string, IXMLTVProgram> { }
     internal interface IXMLTVChannelCollection : IXMLTVDictionaryCollection<string, IXMLTVChannel> { }
     internal interface IXMLTVDictionaryCollection<TKey, TValue> { Dictionary<TKey, TValue> Collection { get; } }
@@ -68,9 +81,9 @@
         string XmlFile_FullName { get; }
         string XmlDoc { get; }
         IXMLTVSource Source { get; }
-        List<IXMLTVChannel> Channels { get; }
-        List<IXMLTVProgram> Programs { get; }
-        List<IExtraMetaData> ExtraEntries { get; }
+        ChannelList Channels { get; }
+        ProgramList Programs { get; }
+       ExtraList ExtraEntries { get; }
     }
     internal interface IXMLTVSerializer : IXMLTVSerializer<object> { }
     internal interface IXMLTVSerializer<T>

 

  ViewVC Help
Powered by ViewVC 1.1.22