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

Contents of /trunk/libxmltv/Interfaces/Interfaces.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 51 - (show annotations) (download)
Fri Mar 8 06:39:56 2013 UTC (6 years, 9 months ago) by william
File size: 2098 byte(s)

1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
5 using System.IO;
6 using System.Xml.Linq;
7 using libxmltv.Core;
8
9 namespace libxmltv.Interfaces
10 {
11 public interface IXMLTVLoader
12 {
13 FileInfo XmlFile { get; }
14 string XmlDoc { get; }
15 }
16 public interface IXMLTVParser
17 {
18 //IXMLTV_LOADER XMLTV_LOADER { get; }
19 //void TestParse();
20 IXMLTVSource Source { get; }
21 Dictionary<string, IXMLTVChannel> Channels { get; }
22 Dictionary<int, IXMLTVProgram> Programs { get; }
23 }
24
25 public interface IXMLTVSource
26 {
27 string SourceName { get; }
28 string GeneratorName { get; }
29 string GeneratorUrl { get; }
30 string ToString();
31 }
32 public interface IXMLTVChannel
33 {
34 string Id { get; }
35 int Number { get; }
36 string CallSign { get; }
37 string Name { get; }
38 string ToString();
39 }
40 public interface IXMLTVProgram
41 {
42 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 }
51 public interface IXMLTVRuntimeInstance : IXMLTVLoader, IXMLTVParser
52 {
53 //bool IsDisposing { get; }
54 //IXMLTVSerializer<IXMLTVRuntimeInstance> Serializer { get; }
55 }
56
57 public interface IXMLTVSerializer<T>
58 {
59 bool Serialize(string file);
60 bool Serialize(Stream stream);
61 T DeSerialize(string file, out bool status);
62 T DeSerialize(Stream stream, out bool status);
63 }
64
65 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 public interface ISerializer<T>
73 {
74 IXMLTVSerializer<T> Serializer { get; }
75 }
76 }

  ViewVC Help
Powered by ViewVC 1.1.22