ximpfw/core/srcpscserver/ximpserversessionadapter.h
changeset 0 e6b17d312c8b
equal deleted inserted replaced
-1:000000000000 0:e6b17d312c8b
       
     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:  PSC server session adapter
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef XIMPPSCSERVERSESSIONADAPTER_H
       
    20 #define XIMPPSCSERVERSESSIONADAPTER_H
       
    21 
       
    22 #include <e32base.h>
       
    23 #include "ximpsrvsessionadapter.h"
       
    24 
       
    25 class MXIMPSrv;
       
    26 class MXIMPSrvSession;
       
    27 class MXIMPSrvMessage;
       
    28 
       
    29 
       
    30 /**
       
    31  * Session adapter for XIMP Framework PSC server. 
       
    32  */
       
    33 class CXIMPServerSessionAdapter : public CXIMPSrvSessionAdapter
       
    34     {
       
    35 public:     // Constructors and destructors
       
    36     static CXIMPServerSessionAdapter* NewL( TUint32 aSessionId,
       
    37                                                MXIMPSrv& aServer );
       
    38     virtual ~CXIMPServerSessionAdapter();
       
    39 
       
    40 protected:  // C++ constructors
       
    41     CXIMPServerSessionAdapter( TUint32 aSessionId,
       
    42                                   MXIMPSrv& aServer );
       
    43 
       
    44 
       
    45 public:     // From CXIMPSrvSessionAdapter
       
    46 
       
    47     /**
       
    48      * Template method to instantiate concrete 
       
    49      * PSC session objects.
       
    50      *
       
    51      * @param aMessage The session instantiation message.
       
    52      *
       
    53      * @return Session implementation object or NULL if the message
       
    54      *         isn't valid session instantiation request.
       
    55      */
       
    56     MXIMPSrvSession* DoInstantiateSessionL( const MXIMPSrvMessage& aMessage );
       
    57 
       
    58 
       
    59 private:    // Data
       
    60 
       
    61     /**
       
    62      * Identifier for this session. 
       
    63      */
       
    64     TUint32 iSessionId;
       
    65     };
       
    66 
       
    67 #endif      //  XIMPPSCSERVERSESSIONADAPTER_H
       
    68