uiacceltk/hitchcock/goommonitor/inc/goommemorymonitorsession.h
changeset 0 15bf7259bb7c
child 41 cd0ae4656946
equal deleted inserted replaced
-1:000000000000 0:15bf7259bb7c
       
     1 /*
       
     2 * Copyright (c) 2009 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:  Main classes for Graphics Out of Memory Monitor
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef GOOMMEMORYMONITORSESSION_H
       
    20 #define GOOMMEMORYMONITORSESSION_H
       
    21 
       
    22 #include <e32base.h>
       
    23 
       
    24 class CMemoryMonitorServer;
       
    25 class CMemoryMonitor;
       
    26 
       
    27 NONSHARABLE_CLASS(CMemoryMonitorSession) : public CSession2
       
    28     {
       
    29 public:
       
    30     CMemoryMonitorSession();
       
    31     void CreateL();
       
    32     void CloseAppsFinished(TInt aBytesFree, TBool aMemoryGood);
       
    33 
       
    34 private:
       
    35     ~CMemoryMonitorSession();
       
    36     CMemoryMonitorServer& Server();
       
    37     CMemoryMonitor& Monitor();
       
    38     void ServiceL(const RMessage2& aMessage);
       
    39 
       
    40 private:
       
    41     RMessagePtr2 iRequestFreeRam;
       
    42     TInt iFunction;
       
    43     TInt iMinimumMemoryRequested;
       
    44     TBool iUseAbsoluteTargets;
       
    45     };
       
    46 
       
    47 #endif /*GOOMMEMORYMONITORSESSION_H*/