uiacceltk/hitchcock/goommonitor/inc/goomforegroundrule.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 Graphics Out of Memory Monitor
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef GOOMFOREGROUNDRULE_
       
    20 #define GOOMFOREGROUNDRULE_
       
    21 
       
    22 #include <e32base.h>
       
    23 #include "goomruleconfig.h"
       
    24 
       
    25 // A class to modify the priority if a particular application is in the foreground
       
    26 NONSHARABLE_CLASS(CGOomForegroundRule) : public CBase, public MGOomRuleConfig
       
    27     {
       
    28 public:
       
    29     // If the specified target app is in the foreground then apply the specified priority
       
    30     CGOomForegroundRule(TInt aTargetAppId, TInt aPriority);
       
    31     
       
    32     TBool RuleIsApplicable(const CGOomWindowGroupList& aWindowGroupList, TInt aAppIndexInWindowGroup) const;
       
    33 
       
    34     inline TUint Priority() const;
       
    35         
       
    36 private:
       
    37     TInt iTargetAppId;
       
    38     TInt iPriority; // The priority to apply if the specified app is in the foreground
       
    39     };
       
    40 
       
    41 #include "goomforegroundrule.inl"
       
    42 
       
    43 #endif /*GOOMFOREGROUNDRULE_*/