equal
deleted
inserted
replaced
58 // CVcxHgMyVideosCollectionClient::CVcxHgMyVideosCollectionClient() |
58 // CVcxHgMyVideosCollectionClient::CVcxHgMyVideosCollectionClient() |
59 // ----------------------------------------------------------------------------- |
59 // ----------------------------------------------------------------------------- |
60 // |
60 // |
61 CVcxHgMyVideosCollectionClient::CVcxHgMyVideosCollectionClient() |
61 CVcxHgMyVideosCollectionClient::CVcxHgMyVideosCollectionClient() |
62 : iCollectionOpenStatus( EVcxHgCollectionNotOpen ), |
62 : iCollectionOpenStatus( EVcxHgCollectionNotOpen ), |
63 iPendingCommand( EVcxHgMyVideosCollectionCommandNone ) |
63 iPendingCommand( EVcxHgMyVideosCollectionCommandNone ), |
|
64 iCollectionLevel( KErrNotFound ) |
64 { |
65 { |
65 } |
66 } |
66 |
67 |
67 // ----------------------------------------------------------------------------- |
68 // ----------------------------------------------------------------------------- |
68 // CVcxHgMyVideosCollectionClient::NewL() |
69 // CVcxHgMyVideosCollectionClient::NewL() |
183 |
184 |
184 iCollectionOpenStatus = EVcxHgCollectionOpening; |
185 iCollectionOpenStatus = EVcxHgCollectionOpening; |
185 } |
186 } |
186 else |
187 else |
187 { |
188 { |
188 if ( CollectionLevelL() == KVcxMpxLevelVideos ) |
189 if ( iCollectionLevel == KErrNotFound ) |
|
190 { |
|
191 iCollectionLevel = CollectionLevelL(); |
|
192 } |
|
193 if ( iCollectionLevel == KVcxMpxLevelVideos ) |
189 { |
194 { |
190 iCollectionUtility->Collection().BackL(); |
195 iCollectionUtility->Collection().BackL(); |
191 } |
196 } |
192 } |
197 } |
193 } |
198 } |
199 void CVcxHgMyVideosCollectionClient::GetVideoListL( TInt aIndex ) |
204 void CVcxHgMyVideosCollectionClient::GetVideoListL( TInt aIndex ) |
200 { |
205 { |
201 IPTVLOGSTRING2_LOW_LEVEL( |
206 IPTVLOGSTRING2_LOW_LEVEL( |
202 "MPX My Videos UI # GetVideoListL(%d)", aIndex ); |
207 "MPX My Videos UI # GetVideoListL(%d)", aIndex ); |
203 |
208 |
204 TInt collectionLevel = CollectionLevelL(); |
209 if ( iCollectionLevel == KErrNotFound ) |
205 |
210 { |
206 if ( collectionLevel == KVcxMpxLevelCategories ) |
211 iCollectionLevel = CollectionLevelL(); |
|
212 } |
|
213 if ( iCollectionLevel == KVcxMpxLevelCategories ) |
207 { |
214 { |
208 iCollectionUtility->Collection().OpenL( aIndex ); |
215 iCollectionUtility->Collection().OpenL( aIndex ); |
209 } |
216 } |
210 else if ( collectionLevel == KVcxMpxLevelVideos ) |
217 else if ( iCollectionLevel == KVcxMpxLevelVideos ) |
211 { |
218 { |
212 iCollectionUtility->Collection().BackL(); |
219 iCollectionUtility->Collection().BackL(); |
213 iCollectionUtility->Collection().OpenL( aIndex ); |
220 iCollectionUtility->Collection().OpenL( aIndex ); |
214 } |
221 } |
215 else |
222 else |
566 { |
573 { |
567 iCollectionOpenStatus = EVcxHgCollectionOpened; |
574 iCollectionOpenStatus = EVcxHgCollectionOpened; |
568 } |
575 } |
569 iCollectionUtility->Collection().OpenL(); |
576 iCollectionUtility->Collection().OpenL(); |
570 } |
577 } |
|
578 iCollectionLevel = CollectionLevelL(); |
571 } |
579 } |
572 break; |
580 break; |
573 case TMPXCollectionMessage::ECollectionChanged: |
581 case TMPXCollectionMessage::ECollectionChanged: |
574 { |
582 { |
575 // NOP, called when My Videos collection initially opened. |
583 // NOP, called when My Videos collection initially opened. |