|
1 /* |
|
2 * Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Classes to provide carriers of schedule data to* |
|
15 */ |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 #ifndef __CIPTVEPGSCHEDULE_H__ |
|
21 #define __CIPTVEPGSCHEDULE_H__ |
|
22 |
|
23 #include <e32std.h> |
|
24 #include <e32base.h> |
|
25 |
|
26 #include "IptvLiveEpgConstants.h" |
|
27 |
|
28 class CIptvEpgProgram; |
|
29 |
|
30 /** |
|
31 * "Carrier" class to contain data for single program occurence in EPG xml |
|
32 * file. This class is used to communicate data from xml content handler |
|
33 * to EPG manager to be stored to the database. |
|
34 */ |
|
35 class CIptvEpgSchedule : public CBase |
|
36 { |
|
37 public: |
|
38 /** |
|
39 * Default constructor |
|
40 */ |
|
41 IMPORT_C static CIptvEpgSchedule* NewL(); |
|
42 |
|
43 virtual ~CIptvEpgSchedule(); |
|
44 |
|
45 static TInt LinearOrderOfSchedulesByTime(const CIptvEpgSchedule &s1, const CIptvEpgSchedule &s2); |
|
46 |
|
47 public: // Getter methods |
|
48 /** |
|
49 * @return program id. |
|
50 */ |
|
51 IMPORT_C TInt64 GetProgramId(); |
|
52 |
|
53 /** |
|
54 * @return program's channel id. |
|
55 */ |
|
56 IMPORT_C TInt64 GetChannelId(); |
|
57 |
|
58 /** |
|
59 * @return program's service provider id. |
|
60 */ |
|
61 IMPORT_C TUint32 GetServiceId(); |
|
62 |
|
63 /** |
|
64 * @return program start time. |
|
65 */ |
|
66 IMPORT_C TTime GetStartTime(); |
|
67 |
|
68 /** |
|
69 * @return program end time. |
|
70 */ |
|
71 IMPORT_C TTime GetEndTime(); |
|
72 |
|
73 /** |
|
74 * @return program URI address. |
|
75 */ |
|
76 IMPORT_C TPtrC GetURI(); |
|
77 |
|
78 /** |
|
79 * @return program SDP data. |
|
80 */ |
|
81 IMPORT_C TPtrC GetSDP(); |
|
82 |
|
83 /** |
|
84 * @return program genre. |
|
85 */ |
|
86 IMPORT_C TPtrC GetGenre(); |
|
87 |
|
88 /** |
|
89 * @return program name. |
|
90 */ |
|
91 IMPORT_C TPtrC GetName(); |
|
92 |
|
93 /** |
|
94 * @return program description. |
|
95 */ |
|
96 IMPORT_C TPtrC GetDescription(); |
|
97 |
|
98 /** |
|
99 * @return program language. |
|
100 */ |
|
101 IMPORT_C TPtrC GetLanguage(); |
|
102 |
|
103 /** |
|
104 * @return program parental rating. |
|
105 */ |
|
106 IMPORT_C TPtrC GetParentalRating(); |
|
107 |
|
108 |
|
109 public: // Setter methods |
|
110 |
|
111 /** |
|
112 * @param aProgramId Program id. |
|
113 */ |
|
114 IMPORT_C void SetProgramId( const TInt64& aProgramId ); |
|
115 |
|
116 /** |
|
117 * @param aChannelId Program's channel id. |
|
118 */ |
|
119 IMPORT_C void SetChannelId( const TInt64& aChannelId ); |
|
120 |
|
121 /** |
|
122 * @param aServiceId Program's service provider id. |
|
123 */ |
|
124 IMPORT_C void SetServiceId( const TUint32& aServiceId ); |
|
125 |
|
126 /** |
|
127 * @param aStartTime Program start time. |
|
128 */ |
|
129 IMPORT_C void SetStartTime( const TTime& aStartTime ); |
|
130 |
|
131 /** |
|
132 * @param aEndTime Program end time. |
|
133 */ |
|
134 IMPORT_C void SetEndTime( const TTime& aEndTime ); |
|
135 |
|
136 /** |
|
137 * @param aURI Program URI. |
|
138 */ |
|
139 IMPORT_C void SetURIL( const TDesC& aURI ); |
|
140 |
|
141 /** |
|
142 * @param aSDP Program SDP. |
|
143 */ |
|
144 IMPORT_C void SetSDPL( const TDesC& aSDP ); |
|
145 |
|
146 /** |
|
147 * @param aGenre Program genre. |
|
148 */ |
|
149 IMPORT_C void SetGenreL( const TDesC& aGenre ); |
|
150 |
|
151 /** |
|
152 * @param aName Program name. |
|
153 */ |
|
154 IMPORT_C void SetNameL( const TDesC& aName ); |
|
155 |
|
156 /** |
|
157 * @param aDescription Program description. |
|
158 */ |
|
159 IMPORT_C void SetDescriptionL( const TDesC& aDescription ); |
|
160 |
|
161 /** |
|
162 * @param aLanguage Program language. |
|
163 */ |
|
164 IMPORT_C void SetLanguageL( const TDesC& aLanguage ); |
|
165 |
|
166 /** |
|
167 * @param aParentalRating Program parental rating. |
|
168 */ |
|
169 IMPORT_C void SetParentalRatingL( const TDesC& aParentalRating ); |
|
170 |
|
171 private: |
|
172 CIptvEpgSchedule(); |
|
173 |
|
174 void ConstructL(); |
|
175 |
|
176 public: // Public instance variables |
|
177 |
|
178 TUint32 iServiceId; |
|
179 |
|
180 TInt64 iChannelId; |
|
181 |
|
182 TInt64 iProgramId; |
|
183 |
|
184 TTime iStartTime; |
|
185 |
|
186 TTime iEndTime; |
|
187 |
|
188 CIptvEpgProgram* iProgram; |
|
189 |
|
190 }; |
|
191 |
|
192 #endif //__CIPTVEPGSCHEDULE_H__ |
|
193 |
|
194 // End of file |