/[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 126 by william, Sun Mar 10 20:19:33 2013 UTC revision 256 by william, Sat May 18 02:45:35 2013 UTC
# Line 31  namespace libxmltv.Interfaces Line 31  namespace libxmltv.Interfaces
31          string ToString();          string ToString();
32      }      }
33    
34      //internal interface IChannelList : IDataSourceBindable      public interface IRawDataSource : IRawDataSource<object> { }
35      //{      public interface IRawDataSource<T> {
36      //}           [Browsable(false)]
37      //internal interface IProgramList : IDataSourceBindable          T RawDataSource { get; } }
38      //{      public interface IProgramDefinitionList : IList<IProgramDefinition>, IDataSourceSortable, IDataSourceFilterable { } //, IRawDataSource<IProgramDefinitionList> { }
39      //}      public interface IChannelDefintionList : IList<IChannelDefintion>, IDataSourceSortable, IDataSourceFilterable { }//, IRawDataSource<IChannelDefintionList> { }
40    
41    
42        public interface IChannelDefintion : IEquatable<IChannelDefintion>, IRawDataSource<IXMLTVChannel>
43        {
44            string ChannelId { get; }
45            string ChannelName { get; }
46            string ToString();
47        }
48        public interface IProgramDefinition : IEquatable<IProgramDefinition>, IRawDataSource<IXMLTVProgram>
49        {
50            //string ChannelId { get;  }
51            int ChannelNumber { get; } // column index: 0
52            string ChannelName { get; }// column index: 1
53            string Start { get; }// column index: 2
54            string Stop { get; }// column index: 3
55            string Title { get; }// column index: 4
56            string SubTitle { get; }// column index: 5
57            string Description { get; }// column index: 6
58            string Rating { get; }// column index: 7
59            string ToString();
60        }
61      public interface IXMLTVChannel      public interface IXMLTVChannel
62      {      {
63          string Id { get; }          string Id { get; }
# Line 49  namespace libxmltv.Interfaces Line 70  namespace libxmltv.Interfaces
70      public interface IXMLTVProgram      public interface IXMLTVProgram
71      {      {
72          IPropertyDictionary MetaData { get; }          IPropertyDictionary MetaData { get; }
73          ExtraList GetExtraMetaData();          List<IExtraMetaData> GetExtraMetaData();
74      }      }
75    
76      public interface IExtraMetaData : IExtraMetaData<string, string> { }      public interface IExtraMetaData : IExtraMetaData<string, string> { }
# Line 58  namespace libxmltv.Interfaces Line 79  namespace libxmltv.Interfaces
79          XElement AsXElement();          XElement AsXElement();
80      }      }
81    
82      public interface IDataSourceBindable      //public interface IDataConverter { object ConvertObjectData(object source); }
83        //public interface IDataConverter<T>
84        //{
85        //    T ConvertData(object source);
86        //}
87        public interface IDataSourceBindable //: IDataConverter
88      {      {
89          object CreateBindableDataSource();          object CreateBindableDataSource(out Type type);
90      }      }
91    
92      public interface IDataSourceFilterable      public interface IDataSourceFilterable
# Line 69  namespace libxmltv.Interfaces Line 95  namespace libxmltv.Interfaces
95      }      }
96      public interface IDataSourceSortable      public interface IDataSourceSortable
97      {      {
98          void Sort(ref object source, params string[] args);          void Sort(ref object source, bool descending, params string[] args);
99      }      }
100    
101      internal interface IXMLTVProgramCollection : IXMLTVDictionaryCollection<string, IXMLTVProgram> { }      internal interface IXMLTVProgramCollection : IXMLTVDictionaryCollection<string, IXMLTVProgram> { }

Legend:
Removed from v.126  
changed lines
  Added in v.256

  ViewVC Help
Powered by ViewVC 1.1.22