equal
deleted
inserted
replaced
149 // |
149 // |
150 CMPXMedia* CVcxHgMyVideosVideoListItem::Media() |
150 CMPXMedia* CVcxHgMyVideosVideoListItem::Media() |
151 { |
151 { |
152 return iMedia; |
152 return iMedia; |
153 } |
153 } |
154 |
|
155 // ----------------------------------------------------------------------------- |
|
156 // CVcxHgMyVideosVideoListItem::DownloadState() |
|
157 // ----------------------------------------------------------------------------- |
|
158 // |
|
159 TVcxMyVideosDownloadState CVcxHgMyVideosVideoListItem::DownloadState() |
|
160 { |
|
161 TVcxMyVideosDownloadState state( EVcxMyVideosDlStateNone ); |
|
162 |
|
163 if ( iMedia && iMedia->IsSupported( KVcxMediaMyVideosDownloadId ) ) |
|
164 { |
|
165 // Download ID is non-zero if download status exists. |
|
166 if ( *( iMedia->Value<TUint32>( KVcxMediaMyVideosDownloadId ) ) != 0 ) |
|
167 { |
|
168 if ( iMedia->IsSupported( KVcxMediaMyVideosDownloadState ) ) |
|
169 { |
|
170 state = static_cast<TVcxMyVideosDownloadState>( |
|
171 *( iMedia->Value<TUint8>( KVcxMediaMyVideosDownloadState ) ) ); |
|
172 |
|
173 if ( state == EVcxMyVideosDlStateDownloaded ) |
|
174 { |
|
175 state = EVcxMyVideosDlStateNone; |
|
176 } |
|
177 } |
|
178 } |
|
179 } |
|
180 return state; |
|
181 } |
|