equal
deleted
inserted
replaced
66 { |
66 { |
67 MPX_FUNC("CVcxMyVideosVideoCache::~CVcxMyVideosVideoCache"); |
67 MPX_FUNC("CVcxMyVideosVideoCache::~CVcxMyVideosVideoCache"); |
68 |
68 |
69 delete iVideoList; |
69 delete iVideoList; |
70 delete iDownloadCache; |
70 delete iDownloadCache; |
|
71 delete iCenRep; |
|
72 |
71 DeletePartialList(); |
73 DeletePartialList(); |
72 } |
74 } |
73 |
75 |
74 // ---------------------------------------------------------------------------- |
76 // ---------------------------------------------------------------------------- |
75 // Constructor. |
77 // Constructor. |
1315 // CVcxMyVideosVideoCache::SortingOrderL |
1317 // CVcxMyVideosVideoCache::SortingOrderL |
1316 // ---------------------------------------------------------------------------- |
1318 // ---------------------------------------------------------------------------- |
1317 // |
1319 // |
1318 TVcxMyVideosSortingOrder CVcxMyVideosVideoCache::SortingOrderL() |
1320 TVcxMyVideosSortingOrder CVcxMyVideosVideoCache::SortingOrderL() |
1319 { |
1321 { |
1320 TUid uid; |
1322 |
1321 uid.iUid = KVcxMyVideosCollectionCenrepUid; |
1323 if( !iCenRep ) |
1322 CRepository* cenRep = CRepository::NewL( uid ); |
1324 { |
1323 CleanupStack::PushL( cenRep ); // 1-> |
1325 TUid uid; |
|
1326 uid.iUid = KVcxMyVideosCollectionCenrepUid; |
|
1327 iCenRep = CRepository::NewL( uid ); |
|
1328 } |
1324 |
1329 |
1325 TInt sortingOrderInCenrep; |
1330 TInt sortingOrderInCenrep; |
1326 |
1331 |
1327 TInt cenRepError = cenRep->Get( KVcxMyVideosCollectionCenrepKeySortingOrder, |
1332 TInt cenRepError = iCenRep->Get( KVcxMyVideosCollectionCenrepKeySortingOrder, |
1328 sortingOrderInCenrep ); |
1333 sortingOrderInCenrep ); |
1329 |
|
1330 CleanupStack::PopAndDestroy( cenRep ); // <-1 |
|
1331 |
1334 |
1332 TVcxMyVideosSortingOrder sortingOrder; |
1335 TVcxMyVideosSortingOrder sortingOrder; |
1333 |
1336 |
1334 if ( cenRepError != KErrNone ) |
1337 if ( cenRepError != KErrNone ) |
1335 { |
1338 { |