javamanager/javacaptain/systemams/src/legacyserver.h
branchRCL_3
changeset 19 04becd199f91
equal deleted inserted replaced
16:f5050f1da672 19:04becd199f91
       
     1 /*
       
     2 * Copyright (c) 2008 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:  CLegacyServer
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef LEGACYSERVER_H
       
    19 #define LEGACYSERVER_H
       
    20 
       
    21 #include <e32base.h>
       
    22 
       
    23 #include "legacyserverhandler.h"
       
    24 
       
    25 NONSHARABLE_CLASS(CLegacyServer): public CServer2
       
    26 {
       
    27 public:
       
    28     CLegacyServer(const int serverId,
       
    29     MLegacyServerHandler* aHandler);
       
    30     virtual ~CLegacyServer();
       
    31 
       
    32     void StartL();
       
    33 
       
    34     void HandleMessageL(const RMessage2& aMessage) const;
       
    35 
       
    36 private:
       
    37     virtual CSession2* NewSessionL(const TVersion&, const RMessage2& aMessage) const;
       
    38 
       
    39     const int       mServerId;
       
    40     MLegacyServerHandler*   mHandler;
       
    41 };
       
    42 
       
    43 #endif // LEGACYSERVER_H