/[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 20:19:33	126
+++ trunk/libxmltv/Interfaces/Interfaces.cs	2013/03/13 13:45:05	128
@@ -31,12 +31,25 @@
         string ToString();
     }
 
-    //internal interface IChannelList : IDataSourceBindable
-    //{
-    //}
-    //internal interface IProgramList : IDataSourceBindable
-    //{
-    //}
+    public interface IProgramDefinitionList : IList<IProgramDefinition>, IDataSourceSortable, IDataSourceFilterable { }
+    public interface IChannelDefintionList : IList<IChannelDefintion>, IDataSourceSortable, IDataSourceFilterable { }
+
+
+    public interface IChannelDefintion
+    {
+        string ChannelId { get; }
+        string ChannelName { get; }
+    }
+    public interface IProgramDefinition
+    {
+        //string ChannelId { get;  }
+        string ChannelName { get; }
+        DateTime Start { get; }
+        DateTime Stop { get; }
+        string Title { get; }
+        string SubTitle { get; }
+        string Description { get; }
+    }
     public interface IXMLTVChannel
     {
         string Id { get; }
@@ -58,9 +71,14 @@
         XElement AsXElement();
     }
 
-    public interface IDataSourceBindable
+    //public interface IDataConverter { object ConvertObjectData(object source); }
+    //public interface IDataConverter<T>
+    //{
+    //    T ConvertData(object source);
+    //}
+    public interface IDataSourceBindable //: IDataConverter
     {
-        object CreateBindableDataSource();
+        object CreateBindableDataSource(out Type type);
     }
 
     public interface IDataSourceFilterable

 

  ViewVC Help
Powered by ViewVC 1.1.22