uiacceltk/hitchcock/goommonitor/inc/goomidletimerule.h
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 Out of Memory Monitor
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef GOOMIDLETIMERULE_
       
    20 #define GOOMIDLETIMERULE_
       
    21 
       
    22 #include <e32base.h>
       
    23 
       
    24 #include "goomruleconfig.h"
       
    25 
       
    26 NONSHARABLE_CLASS(CGOomIdleTimeRule) : public CBase, public MGOomRuleConfig
       
    27     {
       
    28 public:
       
    29     static CGOomIdleTimeRule* NewL(TTimeIntervalSeconds aIdleTime, TInt aPriority);
       
    30     
       
    31     TBool RuleIsApplicable(const CGOomWindowGroupList& aWindowGroupList, TInt aAppIndexInWindowGroup) const;
       
    32 
       
    33     inline TUint Priority() const;
       
    34     
       
    35     ~CGOomIdleTimeRule();
       
    36     
       
    37 private:
       
    38     CGOomIdleTimeRule(TTimeIntervalSeconds aIdleTime, TInt aPriority);
       
    39     
       
    40 private:
       
    41     TTimeIntervalSeconds iIdleTime; // The idle time after which to apply the given priority
       
    42     TInt iPriority; // The priority to apply after the given idle time
       
    43     };
       
    44 
       
    45 #include "goomidletimerule.inl"
       
    46 
       
    47 #endif /*GOOMIDLETIMERULE_*/