sysresmonitoring/oommonitor/inc/oomactionlist.h
branchRCL_3
changeset 18 0818dd463d41
parent 1 0fdb7f6b0309
equal deleted inserted replaced
17:5e7d68cc22e0 18:0818dd463d41
     1 /*
     1 /*
     2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). 
     2 * Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). 
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
   137     /**
   137     /**
   138      * Sets the target; the maximum prioirity up to which actions are run when an OomMonitor event 
   138      * Sets the target; the maximum prioirity up to which actions are run when an OomMonitor event 
   139      * occurs
   139      * occurs
   140      * 
   140      * 
   141      * @since S60 5.0
   141      * @since S60 5.0
   142      * @param aCurrentTarget the prio
   142      * @param aCurrentRamTarget the desired amount of free unpaged memory
       
   143 	 * @param aCurrentSwapTarget the desired amount of free paged memory
   143      */    
   144      */    
   144     inline void SetCurrentTarget(TUint aCurrentTarget);
   145     inline void SetCurrentTargets(TUint aCurrentRamTarget, TUint aCurrentSwapTarget);
   145     
   146     
   146     /**
   147     /**
   147      * Switch all plugins to Off (Memory Good) state
   148      * Switch all plugins to Off (Memory Good) state
   148      * Should be called when the memory situation is good, i.e. the actions run have released enough memory 
   149      * Should be called when the memory situation is good, i.e. the actions run have released enough memory 
   149      * so that the device is above the current target.
   150      * so that the device is above the current target.
   200     RPointerArray<COomRunPlugin> iRunPluginActions;
   201     RPointerArray<COomRunPlugin> iRunPluginActions;
   201     RArray<TActionRef> iActionRefs;
   202     RArray<TActionRef> iActionRefs;
   202     
   203     
   203     TInt iCurrentActionIndex;
   204     TInt iCurrentActionIndex;
   204         
   205         
   205     TUint iCurrentTarget;
   206     TUint iCurrentRamTarget;
       
   207     TBool iSwapUsageMonitored;
       
   208     TUint iCurrentSwapTarget;
   206 
   209 
   207     /*
   210     /*
   208      * Flag specifying that a OomMonitor event is in progress.
   211      * Flag specifying that a OomMonitor event is in progress.
   209      */
   212      */
   210     TBool iFreeingMemory;
   213     TBool iFreeingMemory;