sysresmonitoring/oommonitor/inc/oomconfig.inl
changeset 35 13fd6fd25fe7
child 81 676b6116ca93
equal deleted inserted replaced
29:6a787171e1de 35:13fd6fd25fe7
       
     1 /*
       
     2 * Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Configuration representation classes for Out of Memory Monitor.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef OOMCONFIGINL_H_
       
    20 #define OOMCONFIGINL_H_
       
    21 
       
    22 inline COomGlobalConfig& COomConfig::GlobalConfig()
       
    23     {
       
    24     return iGlobalConfig;
       
    25     }
       
    26 
       
    27 void COomConfig::SetDefaultLowRamThreshold(TInt aLowRamThreshold)
       
    28     {
       
    29     iGlobalConfig.iLowRamThreshold = aLowRamThreshold;
       
    30     }
       
    31 
       
    32 void COomConfig::SetDefaultGoodRamThreshold(TInt aGoodRamThreshold)
       
    33     {
       
    34     iGlobalConfig.iGoodRamThreshold = aGoodRamThreshold;
       
    35     }
       
    36 
       
    37 void COomConfig::SetSwapUsageMonitored(TBool aMonitored)
       
    38     {
       
    39     iGlobalConfig.iSwapUsageMonitored = aMonitored;
       
    40     }
       
    41 
       
    42 void COomConfig::SetDefaultLowSwapThreshold(TInt aLowSwapThreshold)
       
    43     {
       
    44     iGlobalConfig.iLowSwapThreshold = aLowSwapThreshold;
       
    45     }
       
    46 
       
    47 void COomConfig::SetDefaultGoodSwapThreshold(TInt aGoodSwapThreshold)
       
    48     {
       
    49     iGlobalConfig.iGoodSwapThreshold = aGoodSwapThreshold;
       
    50     }
       
    51 
       
    52 void COomConfig::SetMaxCloseAppBatch(TUint aMaxCloseAppBatch)
       
    53     {
       
    54     iGlobalConfig.iMaxCloseAppBatch = aMaxCloseAppBatch;
       
    55     }
       
    56 void COomConfig::SetDefaultWaitAfterPlugin(TInt aMilliseconds)
       
    57     {
       
    58     iGlobalConfig.iDefaultWaitAfterPlugin = aMilliseconds;
       
    59     }
       
    60 
       
    61 void COomConfig::SetMaxAppExitTime(TInt aMilliseconds)
       
    62     {
       
    63     iGlobalConfig.iMaxAppExitTime = aMilliseconds;
       
    64     }
       
    65 
       
    66 #endif /*OOMCONFIGINL_H_*/