sysresmonitoring/oommonitor/inc/oommemorymonitorsession.h
branchRCL_3
changeset 1 0fdb7f6b0309
child 18 0818dd463d41
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:  Main classes for Out of Memory Monitor.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef OOMMEMORYMONITORSESSION_H
       
    20 #define OOMMEMORYMONITORSESSION_H
       
    21 
       
    22 #include <e32base.h>
       
    23 
       
    24 class CMemoryMonitorServer;
       
    25 class CMemoryMonitor;
       
    26 class COomClientRequestQueue;
       
    27 
       
    28 NONSHARABLE_CLASS(CMemoryMonitorSession) : public CSession2
       
    29     {
       
    30 public:
       
    31     CMemoryMonitorSession();
       
    32 #ifndef CLIENT_REQUEST_QUEUE
       
    33     void CloseAppsFinished(TInt aBytesFree, TBool aMemoryGood);
       
    34 #endif
       
    35     
       
    36 private:
       
    37     ~CMemoryMonitorSession();
       
    38     CMemoryMonitorServer& Server();
       
    39 #ifdef CLIENT_REQUEST_QUEUE
       
    40     COomClientRequestQueue& ClientRequestQueue();
       
    41 #endif
       
    42     CMemoryMonitor& Monitor();
       
    43     void ServiceL(const RMessage2& aMessage);
       
    44 
       
    45 private:
       
    46     RMessagePtr2 iRequestFreeRam;
       
    47 #ifndef CLIENT_REQUEST_QUEUE
       
    48     TInt iFunction;
       
    49 #endif    
       
    50     TInt iMinimumMemoryRequested;
       
    51     };
       
    52 
       
    53 #endif /*OOMMEMORYMONITORSESSION_H*/