sysresmonitoring/oommonitor/inc/oomrunplugin.h
branchRCL_3
changeset 18 0818dd463d41
parent 1 0fdb7f6b0309
child 19 924385140d98
--- a/sysresmonitoring/oommonitor/inc/oomrunplugin.h	Thu Jul 15 18:49:38 2010 +0300
+++ b/sysresmonitoring/oommonitor/inc/oomrunplugin.h	Thu Aug 19 10:05:08 2010 +0300
@@ -1,5 +1,5 @@
 /*
-* Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). 
+* Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). 
 * All rights reserved.
 * This component and the accompanying materials are made available
 * under the terms of "Eclipse Public License v1.0"
@@ -44,7 +44,7 @@
     
     // Run the OOM plugin in order to free memory
     // Call the COomAction::MemoryFreed when it is done
-    virtual void FreeMemory(TInt aBytesRequested);
+    virtual void FreeMemory(TInt aBytesRequested, TBool aIsDataPaged);
     
     // Call the memory good function on the plugin but...
     // only if there is an outstanding FreeMemory request
@@ -63,8 +63,20 @@
     
 private:
     
-    COomRunPlugin(TUint aPluginId, COomRunPluginConfig& aConfig, MOomActionObserver& aStateChangeObserver, COomMonitorPlugin& aPlugin, COomMonitorPluginV2* aV2Plugin);
+    COomRunPlugin(TUint aPluginId, COomRunPluginConfig& aConfig, 
+            MOomActionObserver& aStateChangeObserver, 
+            COomMonitorPlugin& aPlugin, COomMonitorPluginV2* aV2Plugin);
     
+    /**
+     * Function: IsAppDataPaged
+     * Checks whether the application which implements the given 
+     * COomMonitorPlugin is data paged
+     * @param instance of the monitor plugin.
+     * @return ETrue if the application is data paged, else EFalse;
+     */
+    TBool IsAppDataPaged( COomMonitorPlugin& aPlugin ) const;
+    
+private:   
     TUint iPluginId;
     
     COomMonitorPlugin& iPlugin;