memspy/MemSpyServer/Include/MemSpyServer.h
changeset 26 4fde310f06fe
equal deleted inserted replaced
21:f5d4820de50d 26:4fde310f06fe
       
     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:
       
    15 * MemSpyServer headder file to declare MemSpyServer class
       
    16 *
       
    17 */
       
    18 
       
    19 #ifndef MEMSPYSERVER_H
       
    20 #define MEMSPYSERVER_H
       
    21 
       
    22 // System includes
       
    23 #include <e32base.h>
       
    24 
       
    25 #include <flogger.h>
       
    26 
       
    27 // User includes
       
    28 #include <memspyengineclientinterface.h>
       
    29 
       
    30 // Classes referenced
       
    31 class CMemSpyEngine;
       
    32 
       
    33 // Literal constants 
       
    34 //_LIT( KMemSpyServer2, "MemSpyServer.exe" );
       
    35 
       
    36 // MemSpyServer class declaration
       
    37 NONSHARABLE_CLASS( CMemSpyServer ) : public CServer2
       
    38     {
       
    39     public:
       
    40         static CMemSpyServer* NewL( CMemSpyEngine& aEngine );
       
    41         static CMemSpyServer* NewLC( CMemSpyEngine& aEngine );
       
    42         ~CMemSpyServer();
       
    43 
       
    44     private:
       
    45         CMemSpyServer( CMemSpyEngine& aEngine );
       
    46     	void ConstructL();
       
    47 
       
    48     protected: // From CServer2
       
    49     	CSession2* NewSessionL(const TVersion& aVersion, const RMessage2& aMessage) const;
       
    50 
       
    51     private:
       
    52         CMemSpyEngine& iEngine;
       
    53         
       
    54         RFileLogger iLog;
       
    55     };
       
    56 
       
    57 #endif