harvester/common/src/harvesterplugin.cpp
branchRCL_3
changeset 46 63c982fb92f2
parent 22 ab88d4a85041
child 47 b73252188534
--- a/harvester/common/src/harvesterplugin.cpp	Mon Jun 21 16:09:02 2010 +0300
+++ b/harvester/common/src/harvesterplugin.cpp	Thu Jul 15 19:07:24 2010 +0300
@@ -65,7 +65,7 @@
     iDtor_ID_Key( KNullUid ),
     iOriginPropertyDef( NULL ),
     iTitlePropertyDef( NULL ),
-    iHarvesting( NULL )
+    iHarvesting( EFalse )
 	{
 	}
 
@@ -132,6 +132,11 @@
         {
         case EHarvesterIdle:
             {
+            if( iHarvesting )
+                {
+                TRAP_IGNORE( iFactory->SendHarvestingStatusEventL( EFalse ) );
+                iHarvesting = EFalse;     
+                }
             }
             break;
             
@@ -332,6 +337,19 @@
     }
 
 // ---------------------------------------------------------------------------
+// PluginInIdleState
+// ---------------------------------------------------------------------------
+//
+EXPORT_C TBool CHarvesterPlugin::PluginInIdleState()
+    {
+    if( iState == EHarvesterIdle )
+        {
+        return ETrue;
+        }
+    return EFalse;
+    }
+
+// ---------------------------------------------------------------------------
 // E32Dll
 // ---------------------------------------------------------------------------
 //