|
1 /* |
|
2 * Copyright (c) 2006-2009 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: Content information.* |
|
15 */ |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CIPTVEPGCONTENT_H |
|
21 #define CIPTVEPGCONTENT_H |
|
22 |
|
23 #include <e32std.h> |
|
24 #include "CIptvUtil.h" |
|
25 |
|
26 /** |
|
27 * Content information data class. |
|
28 * |
|
29 * @lib IptvUtil.lib |
|
30 * @since Video Center 1.0 |
|
31 */ |
|
32 class CIptvEpgContent : public CBase |
|
33 { |
|
34 public: |
|
35 |
|
36 /** |
|
37 * Two-phased constructor. |
|
38 * @param |
|
39 */ |
|
40 IMPORT_C static CIptvEpgContent* NewL(); |
|
41 |
|
42 /** |
|
43 * Destructor. |
|
44 */ |
|
45 virtual ~CIptvEpgContent(); |
|
46 |
|
47 private: // New functions |
|
48 |
|
49 /** |
|
50 * C++ default constructor. |
|
51 */ |
|
52 CIptvEpgContent(); |
|
53 |
|
54 /** |
|
55 * By default Symbian 2nd phase constructor is private. |
|
56 * @param |
|
57 */ |
|
58 void ConstructL(); |
|
59 |
|
60 public: // Data members |
|
61 |
|
62 /** |
|
63 * Unique key for database indexing. |
|
64 */ |
|
65 TUint32 iKey; |
|
66 |
|
67 /** |
|
68 * Content Id from service provider. |
|
69 */ |
|
70 TBuf<KIptvIdMaxLength> iId; |
|
71 |
|
72 /** |
|
73 * Content name. |
|
74 */ |
|
75 TBuf<KIptvEpgContentNameMaxLength> iName; |
|
76 |
|
77 /** |
|
78 * Content protection. |
|
79 */ |
|
80 TUint32 iContentProtection; |
|
81 |
|
82 /** |
|
83 * Icon file id. |
|
84 */ |
|
85 TUint32 iIconFileId; |
|
86 |
|
87 /** |
|
88 * If iIsIconFilePathUrl == ETrue, |
|
89 * iIconFilePath is URL where icon can be downloaded. |
|
90 * If iIsIconFilePathUrl == EFalse, |
|
91 * iIconFilePath is icons path to local filesystem. |
|
92 */ |
|
93 TBool iIsIconFilePathUrl; |
|
94 |
|
95 /** |
|
96 * Icon file path, see iUrl. |
|
97 */ |
|
98 TBuf<KIptvEpgContentIconFilePathMaxLength> iIconFilePath; |
|
99 |
|
100 /** |
|
101 * Content file id. |
|
102 */ |
|
103 TUint32 iContentFileId; |
|
104 |
|
105 /** |
|
106 * Description. |
|
107 */ |
|
108 TBuf<KIptvEpgContentDescriptionMaxLength> iDescription; |
|
109 |
|
110 /** |
|
111 * Indicates when the item was published. In RSS 2.0 specification |
|
112 * <pubDate> |
|
113 */ |
|
114 TTime iPubDate; |
|
115 |
|
116 /** |
|
117 * Content home page, if exists. In RSS 2.0 specification <link> |
|
118 */ |
|
119 TBuf<KIptvEpgContentBrowserUrlMaxLength> iBrowserUrl; |
|
120 |
|
121 /** |
|
122 * Order number. |
|
123 */ |
|
124 TInt iOrder; |
|
125 |
|
126 /** |
|
127 * Author. In RSS 2.0 specification <author> |
|
128 */ |
|
129 TBuf<KIptvEpgContentAuthorLength> iAuthor; |
|
130 |
|
131 /** |
|
132 * Copyright. In Yahoo MRSS <media:copyright> |
|
133 */ |
|
134 TBuf<KIptvEpgContentCopyrightLength> iCopyright; |
|
135 |
|
136 /** |
|
137 * Size. |
|
138 */ |
|
139 TUint32 iSize; |
|
140 |
|
141 /** |
|
142 * Duration. |
|
143 */ |
|
144 TUint32 iDuration; |
|
145 |
|
146 /** |
|
147 * Language |
|
148 */ |
|
149 TBuf<KIptvCALanguageLength> iLanguage; |
|
150 |
|
151 /** |
|
152 * Rating age. |
|
153 * This parameter defines in years the age limit. |
|
154 * 0 means unlimited. |
|
155 * 18 means adult. |
|
156 */ |
|
157 TUint16 iRatingAge; |
|
158 }; |
|
159 |
|
160 #endif // CIPTVEPGCONTENT_H |