|
1 /* |
|
2 * Copyright (c) 2004-2007 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: Defines data class structure for the API* |
|
15 */ |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CIPTVVODCONTENTCONTENTBRIEFDETAILS_H |
|
21 #define CIPTVVODCONTENTCONTENTBRIEFDETAILS_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32std.h> |
|
25 #include "CIptvUtil.h" |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class RWriteStream; |
|
29 class RReadStream; |
|
30 class CIptvMyVideosGlobalFileId; |
|
31 |
|
32 /** |
|
33 * VoD ECG content API |
|
34 * |
|
35 * @lib IptvClientApi.lib |
|
36 * @since Engine 1.0 |
|
37 */ |
|
38 |
|
39 // CLASS DECLARATION |
|
40 class CIptvVodContentContentBriefDetails : public CBase |
|
41 { |
|
42 public: |
|
43 |
|
44 /** |
|
45 * Two-phased constructor. |
|
46 * @param |
|
47 */ |
|
48 IMPORT_C static CIptvVodContentContentBriefDetails* NewL(); |
|
49 |
|
50 /** |
|
51 * Externalize. |
|
52 */ |
|
53 IMPORT_C void ExternalizeL(RWriteStream& aStream) const; |
|
54 |
|
55 /** |
|
56 * Internalize. |
|
57 */ |
|
58 IMPORT_C void InternalizeL(RReadStream& aStream); |
|
59 |
|
60 /** |
|
61 * Count externalized size. |
|
62 */ |
|
63 IMPORT_C TUint32 CountExternalizeSize(); |
|
64 |
|
65 /** |
|
66 * Set browser URL. |
|
67 */ |
|
68 IMPORT_C void SetBrowserUrlL(const TDesC& aBrowserUrl); |
|
69 |
|
70 /** |
|
71 * Get browser URL. |
|
72 */ |
|
73 IMPORT_C TPtrC GetBrowserUrlL(); |
|
74 |
|
75 /** |
|
76 * Destructor. |
|
77 */ |
|
78 virtual ~CIptvVodContentContentBriefDetails(); |
|
79 |
|
80 protected: |
|
81 |
|
82 /** |
|
83 * C++ default constructor. |
|
84 */ |
|
85 CIptvVodContentContentBriefDetails(); |
|
86 |
|
87 /** |
|
88 * By default Symbian 2nd phase constructor is private. |
|
89 * @param |
|
90 */ |
|
91 void ConstructL(); |
|
92 |
|
93 public: // Data members |
|
94 |
|
95 /** |
|
96 * Content ID indetifier. |
|
97 */ |
|
98 TIptvContentId iContentId; |
|
99 |
|
100 /** |
|
101 * Content name string. |
|
102 */ |
|
103 TBuf<KIptvEpgContentNameMaxLength> iName; |
|
104 |
|
105 /** |
|
106 * Complete thumbnail load path. |
|
107 */ |
|
108 TBuf<KIptvEpgContentIconFilePathMaxLength> iThumbnailPath; |
|
109 |
|
110 /** |
|
111 * Length in time. |
|
112 */ |
|
113 TUint32 iPlaytime; |
|
114 |
|
115 /** |
|
116 * Content download file size. |
|
117 */ |
|
118 TUint32 iSize; |
|
119 |
|
120 /** |
|
121 * Global file id. |
|
122 */ |
|
123 CIptvMyVideosGlobalFileId* iFileId; |
|
124 |
|
125 /** |
|
126 * Preview global file id. |
|
127 */ |
|
128 CIptvMyVideosGlobalFileId* iPreviewGlobalFileId; |
|
129 |
|
130 /** |
|
131 * Indicates when the item was published. In RSS 2.0 specification |
|
132 * <pubDate> |
|
133 */ |
|
134 TTime iPubDate; |
|
135 |
|
136 /** |
|
137 * Language |
|
138 */ |
|
139 TBuf<KIptvCALanguageLength> iLanguage; |
|
140 |
|
141 /** |
|
142 * Rating age. |
|
143 */ |
|
144 TUint16 iRatingAge; |
|
145 |
|
146 private: |
|
147 |
|
148 /** |
|
149 * Content home page, if exists. In RSS 2.0 specification <link> |
|
150 */ |
|
151 HBufC* iBrowserUrl; |
|
152 }; |
|
153 |
|
154 #endif // CIPTVVODCONTENTCONTENTBRIEFDETAILS_H |