sysresmonitoring/oommonitor/inc/oomglobalconfig.h
changeset 35 13fd6fd25fe7
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 OOMGLOBALCONFIG_
       
    20 #define OOMGLOBALCONFIG_
       
    21 
       
    22 #include <e32base.h>
       
    23 #include <e32hashtab.h>
       
    24 
       
    25 /**
       
    26  *  Class presenting the parts of the configuration that are global defaults rather than specific
       
    27  *  to the current state of the device
       
    28  *
       
    29  *  @lib oommonitor.lib
       
    30  *  @since S60 v5.0
       
    31  */
       
    32 NONSHARABLE_CLASS(COomGlobalConfig) : public CBase
       
    33     {
       
    34 public:
       
    35     ~COomGlobalConfig();
       
    36     
       
    37     inline void AddForceCheckPriorityL(TUint aPriority);
       
    38     
       
    39     // Return ETrue if a force check has been added for this priority, return EFalse otherwise
       
    40     inline TBool ForceCheckAtPriority(TUint aPriority) const;
       
    41     
       
    42 public:
       
    43     TInt iLowRamThreshold;
       
    44     TInt iGoodRamThreshold;
       
    45     TBool iSwapUsageMonitored;
       
    46     TInt iLowSwapThreshold;
       
    47     TInt iGoodSwapThreshold;
       
    48     TUint iMaxCloseAppBatch;
       
    49     TInt iDefaultWaitAfterPlugin;
       
    50     TInt iMaxAppExitTime;
       
    51     
       
    52     RHashSet<TUint> iForceCheckPriorities;
       
    53     };
       
    54 
       
    55 #include "oomglobalconfig.inl"
       
    56 
       
    57 #endif /*OOMGLOBALCONFIG_*/