97 } |
97 } |
98 |
98 |
99 // ----------------------------------------------------------------------------- |
99 // ----------------------------------------------------------------------------- |
100 void CAudioPlugin::ConstructL() |
100 void CAudioPlugin::ConstructL() |
101 { |
101 { |
102 |
102 iObjectJobQueueManager = CMdeObjectQueueManager::NewL(this); |
103 } |
103 } |
104 |
104 |
105 // ----------------------------------------------------------------------------- |
105 // ----------------------------------------------------------------------------- |
106 void CAudioPlugin::StartPluginL() |
106 void CAudioPlugin::StartPluginL() |
107 { |
107 { |
114 databasePathTemp.Append(KPathTrailer); |
114 databasePathTemp.Append(KPathTrailer); |
115 iIndexerUtil->MountAllAvailableDriveL(_L(MEDIAGENERICAPPCLASS),databasePathTemp); |
115 iIndexerUtil->MountAllAvailableDriveL(_L(MEDIAGENERICAPPCLASS),databasePathTemp); |
116 //Instantiate all monitoring and harvesting class here |
116 //Instantiate all monitoring and harvesting class here |
117 iMdsUtils = CMdsSessionObjectUtils::NewL(); |
117 iMdsUtils = CMdsSessionObjectUtils::NewL(); |
118 iMdsUtils->InitializeL(); //Create valid session in it |
118 iMdsUtils->InitializeL(); //Create valid session in it |
119 iObjectJobQueueManager = CMdeObjectQueueManager::NewL(this); |
119 //iObjectJobQueueManager = CMdeObjectQueueManager::NewL(this); |
120 iMdeHarvester = CMdeHarvester::NewL(iMdsUtils->GetSession(), |
120 iMdeHarvester = CMdeHarvester::NewL(iMdsUtils->GetSession(), |
121 this,iObjectJobQueueManager); |
121 this,iObjectJobQueueManager); |
122 iMdsMonitor = CMdsMediaMonitor::NewL(iMdsUtils->GetSession(),iObjectJobQueueManager); |
122 iMdsMonitor = CMdsMediaMonitor::NewL(iMdsUtils->GetSession(),iObjectJobQueueManager); |
123 iMMcMonitor = CMMCMonitorUtil::NewL(this);//Observer is self |
123 iMMcMonitor = CMMCMonitorUtil::NewL(this);//Observer is self |
124 iMMcMonitor->StartMonitoring(); |
124 iMMcMonitor->StartMonitoring(); |
206 delete index_item;//Remove |
206 delete index_item;//Remove |
207 OstTrace0( TRACE_NORMAL, DUP2_CAUDIOPLUGIN_HANDLEMDEITEML, "CAudioPlugin::HandleMdeItemL(): Indexer not found" ); |
207 OstTrace0( TRACE_NORMAL, DUP2_CAUDIOPLUGIN_HANDLEMDEITEML, "CAudioPlugin::HandleMdeItemL(): Indexer not found" ); |
208 CPIXLOGSTRING("CAudioPlugin::HandleMdeItemL(): Indexer not found"); |
208 CPIXLOGSTRING("CAudioPlugin::HandleMdeItemL(): Indexer not found"); |
209 return; |
209 return; |
210 } |
210 } |
|
211 OstTrace0( TRACE_NORMAL, DUP12_CAUDIOPLUGIN_HANDLEMDEITEML, "CAudioPlugin::HandleMdeItemL Indexing Audio" ); |
|
212 |
211 // Send for indexing |
213 // Send for indexing |
212 if (aActionType == ECPixAddAction) |
214 if (aActionType == ECPixAddAction) |
213 { |
215 { |
214 #ifdef __PERFORMANCE_DATA |
216 #ifdef __PERFORMANCE_DATA |
215 ++count; |
217 ++count; |
328 } |
330 } |
329 iIndexer = NULL;//Assign to null not pointing to any memory |
331 iIndexer = NULL;//Assign to null not pointing to any memory |
330 } |
332 } |
331 } |
333 } |
332 |
334 |
|
335 void CAudioPlugin::PausePluginL() |
|
336 { |
|
337 OstTraceFunctionEntry0( CAUDIOPLUGIN_PAUSEPLUGINL_ENTRY ); |
|
338 iObjectJobQueueManager->PauseL(); |
|
339 OstTraceFunctionExit0( CAUDIOPLUGIN_PAUSEPLUGINL_EXIT ); |
|
340 } |
|
341 |
|
342 void CAudioPlugin::ResumePluginL() |
|
343 { |
|
344 OstTraceFunctionEntry0( CAUDIOPLUGIN_RESUMEPLUGINL_ENTRY ); |
|
345 iObjectJobQueueManager->ResumeL(); |
|
346 OstTraceFunctionExit0( CAUDIOPLUGIN_RESUMEPLUGINL_EXIT ); |
|
347 } |
|
348 |
333 #ifdef __PERFORMANCE_DATA |
349 #ifdef __PERFORMANCE_DATA |
334 void CAudioPlugin::UpdateLogL() |
350 void CAudioPlugin::UpdateLogL() |
335 { |
351 { |
336 UpdatePerformaceDataL(); |
352 UpdatePerformaceDataL(); |
337 } |
353 } |