equal
deleted
inserted
replaced
30 #include "glxattributecontext.h" |
30 #include "glxattributecontext.h" |
31 #include "glxthumbnailcontext.h" |
31 #include "glxthumbnailcontext.h" |
32 #include "glxmedialist.h" |
32 #include "glxmedialist.h" |
33 #include "glxerrormanager.h" |
33 #include "glxerrormanager.h" |
34 #include "glxthumbnailutility.h" |
34 #include "glxthumbnailutility.h" |
35 //#include "mglxcache.h" |
|
36 #include "glxlistutils.h" |
35 #include "glxlistutils.h" |
37 |
36 |
38 /** |
37 /** |
39 * Scoring for thumbnail provision order |
38 * Scoring for thumbnail provision order |
40 * Having no thumbnail is the most important, so it gets the highest bit |
39 * Having no thumbnail is the most important, so it gets the highest bit |
78 // ----------------------------------------------------------------------------- |
77 // ----------------------------------------------------------------------------- |
79 // |
78 // |
80 void CGlxThumbnailContext::ConstructL() |
79 void CGlxThumbnailContext::ConstructL() |
81 { |
80 { |
82 TRACER( "CGlxThumbnailContext::ConstructL"); |
81 TRACER( "CGlxThumbnailContext::ConstructL"); |
83 |
|
84 //iCache = MGlxCache::InstanceL(); |
|
85 iResolutionUtility = CGlxResolutionUtility::InstanceL(); |
82 iResolutionUtility = CGlxResolutionUtility::InstanceL(); |
86 // iResolutionUtility->AddObserverL( *this ); |
|
87 |
83 |
88 iDrmUtility = CGlxDRMUtility::InstanceL(); |
84 iDrmUtility = CGlxDRMUtility::InstanceL(); |
89 |
85 |
90 // create attribute context for DRM attributes |
86 // create attribute context for DRM attributes |
91 iDrmFetchContext = new (ELeave) CGlxAttributeContext(iIterator); |
87 iDrmFetchContext = new (ELeave) CGlxAttributeContext(iIterator); |
128 iDrmUtility->Close(); |
124 iDrmUtility->Close(); |
129 } |
125 } |
130 |
126 |
131 iSpecs.Close(); |
127 iSpecs.Close(); |
132 |
128 |
133 if ( iResolutionUtility ) |
129 |
134 { |
130 |
135 // iResolutionUtility->RemoveObserver( *this ); |
131 |
136 iResolutionUtility->Close(); |
|
137 } |
|
138 |
|
139 /*if ( iCache ) |
|
140 { |
|
141 iCache->Close(); |
|
142 }*/ |
|
143 } |
132 } |
144 |
133 |
145 // ----------------------------------------------------------------------------- |
134 // ----------------------------------------------------------------------------- |
146 // Adds a new fetch specification for an item |
135 // Adds a new fetch specification for an item |
147 // ----------------------------------------------------------------------------- |
136 // ----------------------------------------------------------------------------- |
361 CleanupStack::PopAndDestroy(&itemIndices); |
350 CleanupStack::PopAndDestroy(&itemIndices); |
362 |
351 |
363 return requestCount; |
352 return requestCount; |
364 } |
353 } |
365 |
354 |
366 // ----------------------------------------------------------------------------- |
355 |
367 // HandleResolutionChanged |
|
368 // ----------------------------------------------------------------------------- |
|
369 // |
|
370 /*void CGlxThumbnailContext::HandleResolutionChangedL() |
|
371 { |
|
372 TRACER( "CGlxThumbnailContext::HandleResolutionChanged"); |
|
373 |
|
374 // Ask cache manager to refresh, to fetch thumbnails in new size |
|
375 iCache->RefreshL(); |
|
376 }*/ |
|
377 |
356 |
378 // ----------------------------------------------------------------------------- |
357 // ----------------------------------------------------------------------------- |
379 // SelectItemL |
358 // SelectItemL |
380 // ----------------------------------------------------------------------------- |
359 // ----------------------------------------------------------------------------- |
381 // |
360 // |