harvesterplugins/media/image/src/imageplugin.cpp
changeset 26 367228f82b66
parent 19 08315a312857
child 27 7a8855317cbd
--- a/harvesterplugins/media/image/src/imageplugin.cpp	Tue Sep 28 11:50:55 2010 +0530
+++ b/harvesterplugins/media/image/src/imageplugin.cpp	Tue Oct 05 13:32:14 2010 +0530
@@ -97,7 +97,7 @@
 // -----------------------------------------------------------------------------
 void CImagePlugin::ConstructL()
 	{
-	
+    iObjectJobQueueManager = CMdeObjectQueueManager::NewL(this);
 	}
 
 // -----------------------------------------------------------------------------
@@ -114,7 +114,7 @@
 	//Instantiate all monitoring and harvesting class here
 	iMdsUtils = CMdsSessionObjectUtils::NewL();
 	iMdsUtils->InitializeL(); //Create valid session in it
-	iObjectJobQueueManager = CMdeObjectQueueManager::NewL(this);
+	//iObjectJobQueueManager = CMdeObjectQueueManager::NewL(this);
 	iMdeHarvester = CMdeHarvester::NewL(iMdsUtils->GetSession(),
 	                                    this,iObjectJobQueueManager);
 	iMdsMonitor = CMdsMediaMonitor::NewL(iMdsUtils->GetSession(),iObjectJobQueueManager);
@@ -204,6 +204,8 @@
             CPIXLOGSTRING("CImagePlugin::HandleMdeItemL(): Indexer not found");
             return;
             }
+        OstTrace0( TRACE_NORMAL, DUP12_CIMAGEPLUGIN_HANDLEMDEITEML, "CImagePlugin::Indexing Image" );
+        
         // Send for indexing
         if (aActionType == ECPixAddAction)
             {
@@ -328,6 +330,20 @@
         }    
     }
 
+void CImagePlugin::PausePluginL()
+    {
+    OstTraceFunctionEntry0( CIMAGEPLUGIN_PAUSEPLUGINL_ENTRY );
+    iObjectJobQueueManager->PauseL();
+    OstTraceFunctionExit0( CIMAGEPLUGIN_PAUSEPLUGINL_EXIT );
+    }
+
+void CImagePlugin::ResumePluginL()
+    {
+    OstTraceFunctionEntry0( CIMAGEPLUGIN_RESUMEPLUGINL_ENTRY );
+    iObjectJobQueueManager->ResumeL();    
+    OstTraceFunctionExit0( CIMAGEPLUGIN_RESUMEPLUGINL_EXIT );
+    }
+
 #ifdef __PERFORMANCE_DATA
 void CImagePlugin::UpdateLogL()
     {