uiacceltk/hitchcock/goommonitor/inc/goomconfig.inl
changeset 0 15bf7259bb7c
equal deleted inserted replaced
-1:000000000000 0:15bf7259bb7c
       
     1 /*
       
     2 * Copyright (c) 2008 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 Graphics Out of Memory Monitor
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef GOOMCONFIGINL_H_
       
    20 #define GOOMCONFIGINL_H_
       
    21 
       
    22 inline CGOomGlobalConfig& CGOomConfig::GlobalConfig()
       
    23     {
       
    24     return iGlobalConfig;
       
    25     }
       
    26 
       
    27 void CGOomConfig::SetDefaultLowRamThreshold(TInt aLowRamThreshold)
       
    28     {
       
    29     iGlobalConfig.iLowRamThreshold = aLowRamThreshold;
       
    30     }
       
    31 
       
    32 void CGOomConfig::SetDefaultGoodRamThreshold(TInt aGoodRamThreshold)
       
    33     {
       
    34     iGlobalConfig.iGoodRamThreshold = aGoodRamThreshold;
       
    35     }
       
    36 
       
    37 void CGOomConfig::SetMaxCloseAppBatch(TUint aMaxCloseAppBatch)
       
    38     {
       
    39     iGlobalConfig.iMaxCloseAppBatch = aMaxCloseAppBatch;
       
    40     }
       
    41 void CGOomConfig::SetDefaultWaitAfterPlugin(TInt aMilliseconds)
       
    42     {
       
    43     iGlobalConfig.iDefaultWaitAfterPlugin = aMilliseconds;
       
    44     }
       
    45 
       
    46 #endif /*OOMCONFIGINL_H_*/