uiacceltk/hitchcock/goommonitor/src/goomrunpluginconfig.cpp
changeset 0 15bf7259bb7c
child 19 e5af45d51884
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 #include "goomrunpluginconfig.h"
       
    20 #include "goomwindowgrouplist.h"
       
    21 #include "goomtraces.h"
       
    22 
       
    23 CGOomRunPluginConfig* CGOomRunPluginConfig::NewL(TUint aPluginId, TGOomPluginType aPluginType)
       
    24     {
       
    25     FUNC_LOG;
       
    26 
       
    27     CGOomRunPluginConfig* self = new (ELeave) CGOomRunPluginConfig(aPluginId, aPluginType);
       
    28     return self;
       
    29     }
       
    30 
       
    31 TUint CGOomRunPluginConfig::CalculatePluginPriority(const CGOomWindowGroupList& aWindowGroupList)
       
    32     {
       
    33     FUNC_LOG;
       
    34 
       
    35     // Call the Priority function on the CActionConfig base class
       
    36     // This function will check if any rules match the current system state and then adjust the priority if they do
       
    37     // Rules may apply to system plugins or application plugins
       
    38     return Priority(aWindowGroupList, aWindowGroupList.GetIndexFromAppId(iTargetAppId));
       
    39     }
       
    40 
       
    41 
       
    42 CGOomRunPluginConfig::~CGOomRunPluginConfig()
       
    43     {
       
    44     FUNC_LOG;
       
    45     }
       
    46     
       
    47 
       
    48 CGOomRunPluginConfig::CGOomRunPluginConfig(TUint aPluginId, TGOomPluginType aPluginType) : CGOomActionConfig(aPluginId), iPluginId(aPluginId), iPluginType(aPluginType)
       
    49     {
       
    50     FUNC_LOG;
       
    51 
       
    52     iSyncMode = EContinueIgnoreMaxBatchSize;
       
    53     }