95 } |
95 } |
96 |
96 |
97 // ----------------------------------------------------------------------------- |
97 // ----------------------------------------------------------------------------- |
98 void CImagePlugin::ConstructL() |
98 void CImagePlugin::ConstructL() |
99 { |
99 { |
100 |
100 iObjectJobQueueManager = CMdeObjectQueueManager::NewL(this); |
101 } |
101 } |
102 |
102 |
103 // ----------------------------------------------------------------------------- |
103 // ----------------------------------------------------------------------------- |
104 void CImagePlugin::StartPluginL() |
104 void CImagePlugin::StartPluginL() |
105 { |
105 { |
112 databasePathTemp.Append(KPathTrailer); |
112 databasePathTemp.Append(KPathTrailer); |
113 iIndexerUtil->MountAllAvailableDriveL(_L(MEDIAGENERICAPPCLASS),databasePathTemp); |
113 iIndexerUtil->MountAllAvailableDriveL(_L(MEDIAGENERICAPPCLASS),databasePathTemp); |
114 //Instantiate all monitoring and harvesting class here |
114 //Instantiate all monitoring and harvesting class here |
115 iMdsUtils = CMdsSessionObjectUtils::NewL(); |
115 iMdsUtils = CMdsSessionObjectUtils::NewL(); |
116 iMdsUtils->InitializeL(); //Create valid session in it |
116 iMdsUtils->InitializeL(); //Create valid session in it |
117 iObjectJobQueueManager = CMdeObjectQueueManager::NewL(this); |
117 //iObjectJobQueueManager = CMdeObjectQueueManager::NewL(this); |
118 iMdeHarvester = CMdeHarvester::NewL(iMdsUtils->GetSession(), |
118 iMdeHarvester = CMdeHarvester::NewL(iMdsUtils->GetSession(), |
119 this,iObjectJobQueueManager); |
119 this,iObjectJobQueueManager); |
120 iMdsMonitor = CMdsMediaMonitor::NewL(iMdsUtils->GetSession(),iObjectJobQueueManager); |
120 iMdsMonitor = CMdsMediaMonitor::NewL(iMdsUtils->GetSession(),iObjectJobQueueManager); |
121 iMMcMonitor = CMMCMonitorUtil::NewL(this);//Observer is self |
121 iMMcMonitor = CMMCMonitorUtil::NewL(this);//Observer is self |
122 iMMcMonitor->StartMonitoring(); |
122 iMMcMonitor->StartMonitoring(); |
202 delete index_item; |
202 delete index_item; |
203 OstTrace0( TRACE_NORMAL, DUP2_CIMAGEPLUGIN_HANDLEMDEITEML, "CImagePlugin::HandleMdeItemL(): Indexer not found" ); |
203 OstTrace0( TRACE_NORMAL, DUP2_CIMAGEPLUGIN_HANDLEMDEITEML, "CImagePlugin::HandleMdeItemL(): Indexer not found" ); |
204 CPIXLOGSTRING("CImagePlugin::HandleMdeItemL(): Indexer not found"); |
204 CPIXLOGSTRING("CImagePlugin::HandleMdeItemL(): Indexer not found"); |
205 return; |
205 return; |
206 } |
206 } |
|
207 OstTrace0( TRACE_NORMAL, DUP12_CIMAGEPLUGIN_HANDLEMDEITEML, "CImagePlugin::Indexing Image" ); |
|
208 |
207 // Send for indexing |
209 // Send for indexing |
208 if (aActionType == ECPixAddAction) |
210 if (aActionType == ECPixAddAction) |
209 { |
211 { |
210 #ifdef __PERFORMANCE_DATA |
212 #ifdef __PERFORMANCE_DATA |
211 ++count; |
213 ++count; |
326 } |
328 } |
327 iIndexer = NULL;//Assign to null not pointing to any memory |
329 iIndexer = NULL;//Assign to null not pointing to any memory |
328 } |
330 } |
329 } |
331 } |
330 |
332 |
|
333 void CImagePlugin::PausePluginL() |
|
334 { |
|
335 OstTraceFunctionEntry0( CIMAGEPLUGIN_PAUSEPLUGINL_ENTRY ); |
|
336 iObjectJobQueueManager->PauseL(); |
|
337 OstTraceFunctionExit0( CIMAGEPLUGIN_PAUSEPLUGINL_EXIT ); |
|
338 } |
|
339 |
|
340 void CImagePlugin::ResumePluginL() |
|
341 { |
|
342 OstTraceFunctionEntry0( CIMAGEPLUGIN_RESUMEPLUGINL_ENTRY ); |
|
343 iObjectJobQueueManager->ResumeL(); |
|
344 OstTraceFunctionExit0( CIMAGEPLUGIN_RESUMEPLUGINL_EXIT ); |
|
345 } |
|
346 |
331 #ifdef __PERFORMANCE_DATA |
347 #ifdef __PERFORMANCE_DATA |
332 void CImagePlugin::UpdateLogL() |
348 void CImagePlugin::UpdateLogL() |
333 { |
349 { |
334 UpdatePerformaceDataL(); |
350 UpdatePerformaceDataL(); |
335 } |
351 } |