uiacceltk/hitchcock/goommonitor/inc/goommemorymonitorserver.h
changeset 0 15bf7259bb7c
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 GOOMMEMORYMONITORSERVER_H
       
    20 #define GOOMMEMORYMONITORSERVER_H
       
    21 
       
    22 #include <e32base.h>
       
    23 
       
    24 class CMemoryMonitor;
       
    25 
       
    26 NONSHARABLE_CLASS(CMemoryMonitorServer) : public CServer2
       
    27     {
       
    28 public:
       
    29     static CMemoryMonitorServer* NewL(CMemoryMonitor& aMonitor);
       
    30     ~CMemoryMonitorServer();
       
    31 
       
    32     CMemoryMonitor& Monitor();
       
    33     void CloseAppsFinished(TInt aBytesFree, TBool aMemoryGood);
       
    34 
       
    35 private:
       
    36     CMemoryMonitorServer(CMemoryMonitor& aMonitor);
       
    37     void ConstructL();
       
    38     CSession2* NewSessionL(const TVersion& aVersion,const RMessage2& aMessage) const;
       
    39     TInt RunError(TInt aError);
       
    40 
       
    41 private:
       
    42     CMemoryMonitor& iMonitor;
       
    43     };
       
    44 
       
    45 #endif /*GOOMMEMORYMONITORSERVER_H*/