ximpfw/core/srcrootserver/ximprootserversessionadapter.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:  XIMP Framework Root server session adapter
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef XIMPROOTSESSIONADAPTER_H
       
    20 #define XIMPROOTSESSIONADAPTER_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 Root server. 
       
    32  */
       
    33 class CXIMPRootServerSessionAdapter : public CXIMPSrvSessionAdapter
       
    34     {
       
    35 public:     // Constructors and destructors
       
    36     static CXIMPRootServerSessionAdapter* NewL( MXIMPSrv& aServer );
       
    37     virtual ~CXIMPRootServerSessionAdapter();
       
    38 
       
    39 protected:  // C++ constructors
       
    40     CXIMPRootServerSessionAdapter( MXIMPSrv& aServer );
       
    41 
       
    42 
       
    43 public:     // From CXIMPSrvSessionAdapter
       
    44 
       
    45     /**
       
    46      * Template method to instantiate concrete 
       
    47      * Root session objects.
       
    48      *
       
    49      * @param aMessage The session instantiation message.
       
    50      *
       
    51      * @return Session implementation object or NULL if the message
       
    52      *         isn't valid session instantiation request.
       
    53      */
       
    54     MXIMPSrvSession* DoInstantiateSessionL( const MXIMPSrvMessage& aMessage );
       
    55 
       
    56     };
       
    57 
       
    58 #endif      //  XIMPROOTSESSIONADAPTER_H
       
    59 
       
    60