ximpfw/core/srcrootserver/ximprootsession.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 server root session
       
    15  *
       
    16 */
       
    17 
       
    18 #ifndef XIMPROOTSESSION_H
       
    19 #define XIMPROOTSESSION_H
       
    20 
       
    21 #include <e32base.h>
       
    22 #include "ximpsrvsession.h"
       
    23 
       
    24 class MXIMPSrvMessage;
       
    25 
       
    26 
       
    27 /**
       
    28  * Root session implementation.
       
    29  */
       
    30 class CXIMPRootSession : public CBase,
       
    31                          public MXIMPSrvSession
       
    32     {
       
    33 public:     // Constructors and destructors
       
    34     static CXIMPRootSession* NewL();
       
    35     virtual ~CXIMPRootSession();
       
    36 
       
    37 protected:  // C++ constructors
       
    38     CXIMPRootSession();
       
    39 
       
    40 
       
    41 public: // From MXIMPSrvSession
       
    42 
       
    43     /**
       
    44      * @see MXIMPSrvSession
       
    45      */
       
    46     void TryHandleMessageL( MXIMPSrvMessage& aMessage );
       
    47 
       
    48 
       
    49 
       
    50 private:
       
    51 
       
    52     void DoPrepareProtocolListL( const MXIMPSrvMessage& aMessage );
       
    53     void DoPrepareSupportedFeaturesL( const MXIMPSrvMessage& aMessage );
       
    54     void DoFetchServerDataL( const MXIMPSrvMessage& aMessage );
       
    55 
       
    56 
       
    57 private:    // Data
       
    58 
       
    59     /**
       
    60      * Common buffer for server operations
       
    61      */
       
    62     HBufC8* iBuffer;
       
    63 
       
    64     };
       
    65 
       
    66 #endif      //  XIMPROOTSESSION_H_
       
    67 
       
    68