harvester/common/src/harvesterplugin.cpp
changeset 36 aa5a574040a4
parent 23 33ae025ac1e8
child 43 c5e73110f733
child 54 a3cc46f37772
--- a/harvester/common/src/harvesterplugin.cpp	Wed Jun 23 18:41:19 2010 +0300
+++ b/harvester/common/src/harvesterplugin.cpp	Tue Jul 06 14:44:37 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
 // ---------------------------------------------------------------------------
 //