sysresmonitoring/oommonitor/src/oomaction.cpp
branchRCL_3
changeset 1 0fdb7f6b0309
child 2 7645e9ce10dc
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:  Classes for executing OOM actions (e.g. closing applications and running plugins).
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include "oomaction.h"
       
    20 #include "oomactionlist.h"
       
    21 #include "oomtraces.h"
       
    22 
       
    23 COomAction::~COomAction()
       
    24     {
       
    25     FUNC_LOG;
       
    26     }
       
    27 
       
    28 // To be called by the derived class after the memory has been freed (or if it fails)
       
    29 void COomAction::MemoryFreed(TInt)
       
    30     {
       
    31     FUNC_LOG;
       
    32     
       
    33     iState = EOomIdle;
       
    34     iStateChangeObserver.StateChanged();
       
    35     }
       
    36 
       
    37 COomAction::COomAction(MOomActionObserver& aStateChangeObserver) : iStateChangeObserver(aStateChangeObserver)
       
    38     {
       
    39     FUNC_LOG;
       
    40     }