memspy/MemSpyServer/Include/MemSpyServer.h
author hgs
Mon, 14 Jun 2010 11:37:33 +0300
changeset 26 4fde310f06fe
permissions -rw-r--r--
201023
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
26
hgs
parents:
diff changeset
     1
/*
hgs
parents:
diff changeset
     2
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 
hgs
parents:
diff changeset
     3
* All rights reserved.
hgs
parents:
diff changeset
     4
* This component and the accompanying materials are made available
hgs
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
hgs
parents:
diff changeset
     6
* which accompanies this distribution, and is available
hgs
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
hgs
parents:
diff changeset
     8
*
hgs
parents:
diff changeset
     9
* Initial Contributors:
hgs
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
hgs
parents:
diff changeset
    11
*
hgs
parents:
diff changeset
    12
* Contributors:
hgs
parents:
diff changeset
    13
*
hgs
parents:
diff changeset
    14
* Description:
hgs
parents:
diff changeset
    15
* MemSpyServer headder file to declare MemSpyServer class
hgs
parents:
diff changeset
    16
*
hgs
parents:
diff changeset
    17
*/
hgs
parents:
diff changeset
    18
hgs
parents:
diff changeset
    19
#ifndef MEMSPYSERVER_H
hgs
parents:
diff changeset
    20
#define MEMSPYSERVER_H
hgs
parents:
diff changeset
    21
hgs
parents:
diff changeset
    22
// System includes
hgs
parents:
diff changeset
    23
#include <e32base.h>
hgs
parents:
diff changeset
    24
hgs
parents:
diff changeset
    25
#include <flogger.h>
hgs
parents:
diff changeset
    26
hgs
parents:
diff changeset
    27
// User includes
hgs
parents:
diff changeset
    28
#include <memspyengineclientinterface.h>
hgs
parents:
diff changeset
    29
hgs
parents:
diff changeset
    30
// Classes referenced
hgs
parents:
diff changeset
    31
class CMemSpyEngine;
hgs
parents:
diff changeset
    32
hgs
parents:
diff changeset
    33
// Literal constants 
hgs
parents:
diff changeset
    34
//_LIT( KMemSpyServer2, "MemSpyServer.exe" );
hgs
parents:
diff changeset
    35
hgs
parents:
diff changeset
    36
// MemSpyServer class declaration
hgs
parents:
diff changeset
    37
NONSHARABLE_CLASS( CMemSpyServer ) : public CServer2
hgs
parents:
diff changeset
    38
    {
hgs
parents:
diff changeset
    39
    public:
hgs
parents:
diff changeset
    40
        static CMemSpyServer* NewL( CMemSpyEngine& aEngine );
hgs
parents:
diff changeset
    41
        static CMemSpyServer* NewLC( CMemSpyEngine& aEngine );
hgs
parents:
diff changeset
    42
        ~CMemSpyServer();
hgs
parents:
diff changeset
    43
hgs
parents:
diff changeset
    44
    private:
hgs
parents:
diff changeset
    45
        CMemSpyServer( CMemSpyEngine& aEngine );
hgs
parents:
diff changeset
    46
    	void ConstructL();
hgs
parents:
diff changeset
    47
hgs
parents:
diff changeset
    48
    protected: // From CServer2
hgs
parents:
diff changeset
    49
    	CSession2* NewSessionL(const TVersion& aVersion, const RMessage2& aMessage) const;
hgs
parents:
diff changeset
    50
hgs
parents:
diff changeset
    51
    private:
hgs
parents:
diff changeset
    52
        CMemSpyEngine& iEngine;
hgs
parents:
diff changeset
    53
        
hgs
parents:
diff changeset
    54
        RFileLogger iLog;
hgs
parents:
diff changeset
    55
    };
hgs
parents:
diff changeset
    56
hgs
parents:
diff changeset
    57
#endif