/[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/07 11:58:34	26
+++ trunk/libxmltv/Interfaces/Interfaces.cs	2013/03/08 03:36:44	44
@@ -8,17 +8,18 @@
 
 namespace libxmltv.Interfaces
 {
-    public interface IXMLTV_LOADER
+    public interface IXMLTVLoader : IDisposable
     {
         FileInfo XmlFile { get; }
         XDocument XmlDoc { get; }
     }
-    public interface IXMLTV_PARSER
+    public interface IXMLTVParser : IDisposable
     {
-        IXMLTV_LOADER XMLTV_LOADER { get; }
-        void TestParse();
+        //IXMLTV_LOADER XMLTV_LOADER { get; }
+        //void TestParse();
         IXMLTVSource Source { get; }
         Dictionary<string, IXMLTVChannel> Channels { get; }
+        Dictionary<int, IXMLTVProgram> Programs { get; }
     }
 
     public interface IXMLTVSource
@@ -30,9 +31,25 @@
     }
     public interface IXMLTVChannel
     {
-        string ChannelId { get; }
-        int ChannelNumber { get; }
-        string ChannelCallSign { get; }
-        string ChannelName { get; }
+        string Id { get; }
+        int Number { get; }
+        string CallSign { get; }
+        string Name { get; }
+        string ToString();
+    }    
+    public interface IXMLTVProgram
+    {
+        int Id { get; }
+        DateTime Start { get; }
+        DateTime Stop { get; }
+        IXMLTVChannel Channel { get; }
+        string Title { get; }
+        string SubTitle { get; }
+        string Description { get; }
+        string ToString();
+    }
+    public interface IXMLTVRuntimeInstance : IXMLTVLoader, IXMLTVParser, IDisposable 
+    {
+        bool IsDisposing { get; }
     }
-}
+}
\ No newline at end of file

 

  ViewVC Help
Powered by ViewVC 1.1.22