/[xmltv_parser]/trunk/libxmltv/Interfaces/Interfaces.cs
ViewVC logotype

Annotation of /trunk/libxmltv/Interfaces/Interfaces.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 50 - (hide annotations) (download)
Fri Mar 8 06:15:44 2013 UTC (6 years, 9 months ago) by william
File size: 2000 byte(s)

1 william 10 using System;
2     using System.Collections.Generic;
3     using System.Linq;
4     using System.Text;
5 william 11 using System.IO;
6 william 22 using System.Xml.Linq;
7 william 26 using libxmltv.Core;
8 william 10
9     namespace libxmltv.Interfaces
10     {
11 william 45 public interface IXMLTVLoader
12 william 11 {
13     FileInfo XmlFile { get; }
14 william 49 string XmlDoc { get; }
15 william 11 }
16 william 45 public interface IXMLTVParser
17 william 22 {
18 william 36 //IXMLTV_LOADER XMLTV_LOADER { get; }
19     //void TestParse();
20 william 25 IXMLTVSource Source { get; }
21 william 26 Dictionary<string, IXMLTVChannel> Channels { get; }
22 william 27 Dictionary<int, IXMLTVProgram> Programs { get; }
23 william 22 }
24 william 25
25     public interface IXMLTVSource
26     {
27     string SourceName { get; }
28     string GeneratorName { get; }
29     string GeneratorUrl { get; }
30     string ToString();
31     }
32 william 26 public interface IXMLTVChannel
33     {
34 william 28 string Id { get; }
35     int Number { get; }
36     string CallSign { get; }
37     string Name { get; }
38     string ToString();
39 william 31 }
40 william 27 public interface IXMLTVProgram
41     {
42 william 28 int Id { get; }
43     DateTime Start { get; }
44     DateTime Stop { get; }
45     IXMLTVChannel Channel { get; }
46     string Title { get; }
47     string SubTitle { get; }
48     string Description { get; }
49     string ToString();
50 william 27 }
51 william 45 public interface IXMLTVRuntimeInstance : IXMLTVLoader, IXMLTVParser
52 william 44 {
53 william 46 //bool IsDisposing { get; }
54 william 49 //IXMLTVSerializer<IXMLTVRuntimeInstance> Serializer { get; }
55 william 44 }
56 william 49
57     public interface IXMLTVSerializer<T>
58     {
59     bool Serialize(string file);
60     bool Serialize(Stream stream);
61 william 50 T DeSerialize(string file, out bool status);
62     T DeSerialize(Stream stream, out bool status);
63 william 49 }
64    
65 william 50 public interface IXMLTV<INTERFACE, CLASS> : IXMLTVSerializer<INTERFACE>
66     where CLASS : class,INTERFACE
67     {
68     //IXMLTVSerializer<CLASS> CreateSerializer();
69     INTERFACE GetInstance();
70     //CLASS GetInternalInstance();
71     }
72 william 28 }

  ViewVC Help
Powered by ViewVC 1.1.22