sysresmonitoring/oommonitor/inc/oomcloseappconfig.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 OOMCLOSEAPPCONFIG_
       
    20 #define OOMCLOSEAPPCONFIG_
       
    21 
       
    22 #include "oomactionconfig.h"
       
    23 
       
    24 /*
       
    25  * 
       
    26  */
       
    27 /**
       
    28  *  The OOM action of closing an application in order to free up memory.
       
    29  *
       
    30  *  @lib oommonitor.lib
       
    31  *  @since S60 v5.0
       
    32  */
       
    33 NONSHARABLE_CLASS(COomCloseAppConfig) : public COomActionConfig
       
    34     {
       
    35 public:
       
    36     /**
       
    37      * Two-phased constructor.
       
    38      * @param aId The Uid of the applicaton
       
    39      */
       
    40     static COomCloseAppConfig* NewL(TInt32 aId);
       
    41     
       
    42     ~COomCloseAppConfig();
       
    43 
       
    44     /**
       
    45      * Calculates the priority of a close app action, based on its position on the window group list
       
    46      * 
       
    47      * @param aWindowGroupList a fully constructed, collapsed window group list
       
    48      * @param aAppIndexInWindowGroup the position in the window group list
       
    49      */
       
    50     inline TUint CalculateCloseAppPriority(const COomWindowGroupList& aWindowGroupList, TUint aAppIndexInWindowGroup);
       
    51     
       
    52 private:
       
    53     
       
    54     COomCloseAppConfig(TInt32 aId);
       
    55     };
       
    56 
       
    57 #include "oomcloseappconfig.inl"
       
    58 
       
    59 #endif /*OOMCLOSEAPPCONFIG_*/