/[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

revision 64 by william, Sat Mar 9 00:59:05 2013 UTC revision 72 by william, Sat Mar 9 09:29:40 2013 UTC
# Line 9  using System.ComponentModel; Line 9  using System.ComponentModel;
9    
10  namespace libxmltv.Interfaces  namespace libxmltv.Interfaces
11  {  {
12      public interface IXMLTVLoader      //public interface IXMLTVLoader
13      {      //{
14          FileInfo XmlFile { get; }      //    FileInfo XmlFile { get; }
15          string XmlDoc { get; }      //    string XmlDoc { get; }
16      }      //}
17      public interface IXMLTVParser      //public interface IXMLTVParser
18      {      //{
19          IXMLTVSource Source { get; }      //    IXMLTVSource Source { get; }
20          Dictionary<string, IXMLTVChannel> Channels { get; }      //    Dictionary<string, IXMLTVChannel> Channels { get; }
21          Dictionary<int, IXMLTVProgram> Programs { get; }      //    Dictionary<int, IXMLTVProgram> Programs { get; }
22      }      //}
23    
24      public interface IXMLTVSource      public interface IXMLTVSource
25      {      {
# Line 47  namespace libxmltv.Interfaces Line 47  namespace libxmltv.Interfaces
47          string Description { get; }          string Description { get; }
48          string ToString();          string ToString();
49      }      }
50      public interface IXMLTVRuntimeInstance : IXMLTVLoader, IXMLTVParser { }  
51        public interface IXMLTVProgramCollection : IXMLTVCollection<int, IXMLTVProgram> { }
52        public interface IXMLTVChannelCollection : IXMLTVCollection<string, IXMLTVChannel> { }
53        public interface IXMLTVCollection<TKey, TValue> { Dictionary<TKey, TValue> Collection { get; } }
54    
55        //public interface IXMLTVBase : IXMLTVBase<object> { }
56        public interface IXMLTVBase<T> : IGetInstance<T> { }
57        public interface IXMLTVRuntimeInstance : IOnInstanceCreated
58        {
59            bool IsAborting { get; }
60            //FileInfo XmlFile { get; }
61            string XmlFile_Name { get; }
62            string XmlFile_FullName { get; }
63            string XmlDoc { get; }
64            IXMLTVSource Source { get; }
65            Dictionary<string, IXMLTVChannel> Channels { get; }
66            Dictionary<int, IXMLTVProgram> Programs { get; }
67            
68        }
69      public interface IXMLTVSerializer : IXMLTVSerializer<object> { }      public interface IXMLTVSerializer : IXMLTVSerializer<object> { }
70      public interface IXMLTVSerializer<T>      public interface IXMLTVSerializer<T>
71      {      {
# Line 60  namespace libxmltv.Interfaces Line 78  namespace libxmltv.Interfaces
78      public interface IXMLTV<INTERFACE, CLASS, INSTANCECREATED_EVENTAGS> : IXMLTVSerializer<INTERFACE>, IDestroyInstance, IOnInstanceCreated, IGetInstance<INTERFACE>      public interface IXMLTV<INTERFACE, CLASS, INSTANCECREATED_EVENTAGS> : IXMLTVSerializer<INTERFACE>, IDestroyInstance, IOnInstanceCreated, IGetInstance<INTERFACE>
79          where CLASS : class,INTERFACE          where CLASS : class,INTERFACE
80          where INSTANCECREATED_EVENTAGS : EventArgs { }          where INSTANCECREATED_EVENTAGS : EventArgs { }
81    
82        public interface IInstance : IInstance<object> { }
83        public interface IInstance<T> { T Instance { get; set; } }
84      public interface ICreateSerializer : ICreateSerializer<object> { }      public interface ICreateSerializer : ICreateSerializer<object> { }
85      public interface ICreateSerializer<CLASS> { IXMLTVSerializer<CLASS> CreateSerializer(); }      public interface ICreateSerializer<CLASS> { IXMLTVSerializer<CLASS> CreateSerializer(); }
86    
87        //public interface IGetInstanceT : IGetInstanceT<object> { }
88        //public interface IGetInstanceT<T> { T GetInstance<T>();  }
89      public interface IGetInstance : IGetInstance<object> { }      public interface IGetInstance : IGetInstance<object> { }
90      public interface IGetInstance<T> { T GetInstance();    }      public interface IGetInstance<T> { T GetInstance();    }
91    
92      public interface IOnInstanceCreated : IOnInstanceCreated<EventArgs> { }      public interface IOnInstanceCreated : IOnInstanceCreated<EventArgs> { }
93      public interface IOnInstanceCreated<T> where T : EventArgs { EventHandler<T> OnInstanceCreated { get; set; } }      public interface IOnInstanceCreated<T> where T : EventArgs { EventHandler<T> OnInstanceCreated { get; set; } }
94      public interface ISerializer<T> { IXMLTVSerializer<T> Serializer { get; } }      public interface ISerializer<T> { IXMLTVSerializer<T> Serializer { get; } }

Legend:
Removed from v.64  
changed lines
  Added in v.72

  ViewVC Help
Powered by ViewVC 1.1.22