equal
deleted
inserted
replaced
122 // ---------------------------------------------------------------------------- |
122 // ---------------------------------------------------------------------------- |
123 // |
123 // |
124 void CGlxContentHarvesterPluginCaptured::UpdateDataL() |
124 void CGlxContentHarvesterPluginCaptured::UpdateDataL() |
125 { |
125 { |
126 TRACER( "CGlxContentHarvesterPluginCaptured::UpdateDataL" ); |
126 TRACER( "CGlxContentHarvesterPluginCaptured::UpdateDataL" ); |
127 if(iMediaList && iMediaList->Count() && iPreviewItemCount.Count() ) |
127 |
|
128 if (!iMediaList) |
|
129 { |
|
130 return; |
|
131 } |
|
132 |
|
133 if (iMediaList->Count() && iPreviewItemCount.Count()) |
128 { |
134 { |
129 GLX_LOG_INFO1("CGlxContentHarvesterPluginCaptured::UpdateDataL(),iProgressIndex=%d",iProgressIndex); |
135 GLX_LOG_INFO1("CGlxContentHarvesterPluginCaptured::UpdateDataL(),iProgressIndex=%d",iProgressIndex); |
130 TInt ret = UpdateItem(iPreviewItemCount[iProgressIndex]); |
136 TInt ret = UpdateItem(iPreviewItemCount[iProgressIndex]); |
131 if(ret != KErrNotFound) |
137 if (ret != KErrNotFound) |
132 { |
138 { |
133 //Updates the thumbnail in the collection |
139 //Updates the thumbnail in the collection |
134 UpdateDataInCPSL(ret); |
140 UpdateDataInCPSL(ret); |
135 } |
141 } |
136 else |
142 else |
139 } |
145 } |
140 } |
146 } |
141 else |
147 else |
142 { |
148 { |
143 // Show previous thumbnail until the new thumbnail is |
149 // Show previous thumbnail until the new thumbnail is |
144 // fecthed.Added this check to avoid flicker |
150 // fecthed.Added this check to avoid flicker |
145 if(iMediaList->Count() == 0) |
151 if (iMediaList->Count() == 0) |
146 { |
152 { |
147 //Don't Show the Thumbnail/Show nothing |
153 //Don't Show the Thumbnail/Show nothing |
148 GLX_LOG_INFO("CGlxContentHarvesterPluginCaptured::UpdateDataL() --O"); |
154 GLX_LOG_INFO("CGlxContentHarvesterPluginCaptured::UpdateDataL() --O"); |
149 UpdateDataInCPSL(GetBitmapHandle()); |
155 UpdateDataInCPSL(GetBitmapHandle()); |
150 } |
156 } |
151 } |
157 } |
152 } |
158 } |
153 |
159 |
154 // ---------------------------------------------------------------------------- |
160 // ---------------------------------------------------------------------------- |
155 // CGlxContentHarvesterPluginCaptured::HandleNotifyL() |
161 // CGlxContentHarvesterPluginCaptured::HandleNotifyL() |