22 #include <AknUtils.h> |
22 #include <AknUtils.h> |
23 #include <centralrepository.h> |
23 #include <centralrepository.h> |
24 #include "IptvDebug.h" |
24 #include "IptvDebug.h" |
25 #include "vcxhgmyvideosmodel.h" |
25 #include "vcxhgmyvideosmodel.h" |
26 #include "vcxhgmyvideoscollectionclient.h" |
26 #include "vcxhgmyvideoscollectionclient.h" |
27 #include "vcxhgmyvideosdownloadclient.h" |
|
28 #include "thumbnaildata.h" |
27 #include "thumbnaildata.h" |
29 #include "vcxhgmyvideoscenrepkeys.h" |
28 #include "vcxhgmyvideoscenrepkeys.h" |
30 #include "vcxhgmyvideosthumbnailmanager.h" |
29 #include "vcxhgmyvideosthumbnailmanager.h" |
31 |
30 |
32 // ============================ MEMBER FUNCTIONS =============================== |
31 // ============================ MEMBER FUNCTIONS =============================== |
110 // ----------------------------------------------------------------------------- |
109 // ----------------------------------------------------------------------------- |
111 // |
110 // |
112 CVcxHgMyVideosCollectionClient& CVcxHgMyVideosModel::CollectionClient() |
111 CVcxHgMyVideosCollectionClient& CVcxHgMyVideosModel::CollectionClient() |
113 { |
112 { |
114 return *iCollection; |
113 return *iCollection; |
115 } |
|
116 |
|
117 // ----------------------------------------------------------------------------- |
|
118 // CVcxHgMyVideosModel::DownloadClient() |
|
119 // ----------------------------------------------------------------------------- |
|
120 // |
|
121 CVcxHgMyVideosDownloadClient& CVcxHgMyVideosModel::DownloadClient() |
|
122 { |
|
123 return iCollection->DownloadClient(); |
|
124 } |
114 } |
125 |
115 |
126 // ----------------------------------------------------------------------------- |
116 // ----------------------------------------------------------------------------- |
127 // CVcxHgMyVideosModel::FileServerSessionL() |
117 // CVcxHgMyVideosModel::FileServerSessionL() |
128 // ----------------------------------------------------------------------------- |
118 // ----------------------------------------------------------------------------- |
218 { |
208 { |
219 iCollectionCenRep = CRepository::NewL( TUid::Uid( KVcxMyVideosCollectionCenrepUid ) ); |
209 iCollectionCenRep = CRepository::NewL( TUid::Uid( KVcxMyVideosCollectionCenrepUid ) ); |
220 } |
210 } |
221 |
211 |
222 return iCollectionCenRep->Get( KVcxMyVideosCollectionCenrepKeyLastWatchedMpxId, aId ); |
212 return iCollectionCenRep->Get( KVcxMyVideosCollectionCenrepKeyLastWatchedMpxId, aId ); |
|
213 } |
|
214 |
|
215 // ----------------------------------------------------------------------------- |
|
216 // CVcxHgMyVideosModel::GetLastWatchedNameL |
|
217 // ----------------------------------------------------------------------------- |
|
218 // |
|
219 TInt CVcxHgMyVideosModel::GetLastWatchedNameL( TDes& aName ) |
|
220 { |
|
221 if ( ! iCollectionCenRep ) |
|
222 { |
|
223 iCollectionCenRep = CRepository::NewL( TUid::Uid( KVcxMyVideosCollectionCenrepUid ) ); |
|
224 } |
|
225 |
|
226 return iCollectionCenRep->Get( KVcxMyVideosCollectionCenrepKeyLastWatchedName, aName ); |
|
227 } |
|
228 |
|
229 // ----------------------------------------------------------------------------- |
|
230 // CVcxHgMyVideosModel::GetLastWatchedPath |
|
231 // ----------------------------------------------------------------------------- |
|
232 // |
|
233 TInt CVcxHgMyVideosModel::GetLastWatchedPathL( TDes& aPath ) |
|
234 { |
|
235 if ( ! iCollectionCenRep ) |
|
236 { |
|
237 iCollectionCenRep = CRepository::NewL( TUid::Uid( KVcxMyVideosCollectionCenrepUid ) ); |
|
238 } |
|
239 |
|
240 return iCollectionCenRep->Get( KVcxMyVideosCollectionCenrepKeyLastWatchedPath, aPath ); |
|
241 } |
|
242 |
|
243 // ----------------------------------------------------------------------------- |
|
244 // CVcxHgMyVideosModel::GetLastWatchedPath |
|
245 // ----------------------------------------------------------------------------- |
|
246 // |
|
247 TInt CVcxHgMyVideosModel::GetLastWatchedIndicatorL( TInt& aValue ) |
|
248 { |
|
249 if ( ! iCollectionCenRep ) |
|
250 { |
|
251 iCollectionCenRep = CRepository::NewL( TUid::Uid( KVcxMyVideosCollectionCenrepUid ) ); |
|
252 } |
|
253 |
|
254 return iCollectionCenRep->Get( KVcxMyVideosCollectionCenrepKeyLastWatchedIndicator, aValue ); |
223 } |
255 } |
224 |
256 |
225 // ----------------------------------------------------------------------------- |
257 // ----------------------------------------------------------------------------- |
226 // CVcxHgMyVideosModel::VideolistSortOrderL() |
258 // CVcxHgMyVideosModel::VideolistSortOrderL() |
227 // ----------------------------------------------------------------------------- |
259 // ----------------------------------------------------------------------------- |