sysresmonitoring/oommonitor/inc/oomidletimerule.h
branchRCL_3
changeset 1 0fdb7f6b0309
child 19 924385140d98
equal deleted inserted replaced
0:2e3d3ce01487 1:0fdb7f6b0309
       
     1 /*
       
     2 * Copyright (c) 2006 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 OOMIDLETIMERULE_
       
    20 #define OOMIDLETIMERULE_
       
    21 
       
    22 #include <e32base.h>
       
    23 
       
    24 #include "oomruleconfig.h"
       
    25 
       
    26 /**
       
    27  *  A rule to modify the priority of an app close action if it has been idle for a period of time
       
    28  *
       
    29  *  @lib oommonitor.lib
       
    30  *  @since S60 v5.0
       
    31  */
       
    32 NONSHARABLE_CLASS(COomIdleTimeRule) : public CBase, public MOomRuleConfig
       
    33     {
       
    34 public:
       
    35     static COomIdleTimeRule* NewL(TTimeIntervalSeconds aIdleTime, TInt aPriority);
       
    36     
       
    37     TBool RuleIsApplicable(const COomWindowGroupList& aWindowGroupList, TInt aAppIndexInWindowGroup) const;
       
    38 
       
    39     inline TUint Priority() const;
       
    40     
       
    41     ~COomIdleTimeRule();
       
    42     
       
    43 private:
       
    44     COomIdleTimeRule(TTimeIntervalSeconds aIdleTime, TInt aPriority);
       
    45     
       
    46 private:
       
    47     TTimeIntervalSeconds iIdleTime; // The idle time after which to apply the given priority
       
    48     TInt iPriority; // The priority to apply after the given idle time
       
    49     };
       
    50 
       
    51 #include "oomidletimerule.inl"
       
    52 
       
    53 #endif /*OOMIDLETIMERULE_*/