/[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 00:59:05	64
+++ trunk/libxmltv/Interfaces/Interfaces.cs	2013/03/09 09:29:40	72
@@ -9,17 +9,17 @@
 
 namespace libxmltv.Interfaces
 {
-    public interface IXMLTVLoader
-    {
-        FileInfo XmlFile { get; }
-        string XmlDoc { get; }
-    }
-    public interface IXMLTVParser
-    {
-        IXMLTVSource Source { get; }
-        Dictionary<string, IXMLTVChannel> Channels { get; }
-        Dictionary<int, IXMLTVProgram> Programs { get; }
-    }
+    //public interface IXMLTVLoader
+    //{
+    //    FileInfo XmlFile { get; }
+    //    string XmlDoc { get; }
+    //}
+    //public interface IXMLTVParser
+    //{
+    //    IXMLTVSource Source { get; }
+    //    Dictionary<string, IXMLTVChannel> Channels { get; }
+    //    Dictionary<int, IXMLTVProgram> Programs { get; }
+    //}
 
     public interface IXMLTVSource
     {
@@ -47,7 +47,25 @@
         string Description { get; }
         string ToString();
     }
-    public interface IXMLTVRuntimeInstance : IXMLTVLoader, IXMLTVParser { }
+
+    public interface IXMLTVProgramCollection : IXMLTVCollection<int, IXMLTVProgram> { }
+    public interface IXMLTVChannelCollection : IXMLTVCollection<string, IXMLTVChannel> { }
+    public interface IXMLTVCollection<TKey, TValue> { Dictionary<TKey, TValue> Collection { get; } }
+
+    //public interface IXMLTVBase : IXMLTVBase<object> { }
+    public interface IXMLTVBase<T> : IGetInstance<T> { }
+    public interface IXMLTVRuntimeInstance : IOnInstanceCreated
+    {
+        bool IsAborting { get; } 
+        //FileInfo XmlFile { get; }
+        string XmlFile_Name { get; }
+        string XmlFile_FullName { get; }
+        string XmlDoc { get; }
+        IXMLTVSource Source { get; }
+        Dictionary<string, IXMLTVChannel> Channels { get; }
+        Dictionary<int, IXMLTVProgram> Programs { get; }
+        
+    }
     public interface IXMLTVSerializer : IXMLTVSerializer<object> { }
     public interface IXMLTVSerializer<T>
     {
@@ -60,10 +78,17 @@
     public interface IXMLTV<INTERFACE, CLASS, INSTANCECREATED_EVENTAGS> : IXMLTVSerializer<INTERFACE>, IDestroyInstance, IOnInstanceCreated, IGetInstance<INTERFACE>
         where CLASS : class,INTERFACE
         where INSTANCECREATED_EVENTAGS : EventArgs { }
+
+    public interface IInstance : IInstance<object> { }
+    public interface IInstance<T> { T Instance { get; set; } }
     public interface ICreateSerializer : ICreateSerializer<object> { }
     public interface ICreateSerializer<CLASS> { IXMLTVSerializer<CLASS> CreateSerializer(); }
+
+    //public interface IGetInstanceT : IGetInstanceT<object> { }
+    //public interface IGetInstanceT<T> { T GetInstance<T>();  }
     public interface IGetInstance : IGetInstance<object> { }
     public interface IGetInstance<T> { T GetInstance();    }
+
     public interface IOnInstanceCreated : IOnInstanceCreated<EventArgs> { }
     public interface IOnInstanceCreated<T> where T : EventArgs { EventHandler<T> OnInstanceCreated { get; set; } }
     public interface ISerializer<T> { IXMLTVSerializer<T> Serializer { get; } }

 

  ViewVC Help
Powered by ViewVC 1.1.22