mmserv/radioutility/radioserver/Server/Src/RadioServerSession.h
changeset 0 71ca22bcf22a
child 6 e35735ece90c
equal deleted inserted replaced
-1:000000000000 0:71ca22bcf22a
       
     1 /*
       
     2 * Copyright (c) 2002-2004 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:  This class implements the server-side session.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef RADIOSERVERSESSION_H
       
    21 #define RADIOSERVERSESSION_H
       
    22 
       
    23 //  INCLUDES
       
    24 
       
    25 #include <mcustominterfacecustomcommandimplementor.h>
       
    26 
       
    27 #include "RadioServerData.h"
       
    28 
       
    29 // FORWARD DECLARATIONS
       
    30 class CRadioServer;
       
    31 class CCustomInterfaceBuilder;
       
    32 class CMMFObjectContainer;
       
    33 class CMMFCustomCommandParserManager;
       
    34 
       
    35 // CLASS DECLARATION
       
    36 
       
    37 /**
       
    38 *  This class implements the server-side session.
       
    39 *
       
    40 *  @lib RadioServer.exe
       
    41 *  @since S60 3.0
       
    42 */
       
    43 class CRadioServerSession : public CSession2,
       
    44 							public MCustomInterfaceCustomCommandImplementor
       
    45     {
       
    46 public:  // Constructors and destructor
       
    47 
       
    48 	/**
       
    49 	 * Two-phased constructor.
       
    50 	 */
       
    51 	static CRadioServerSession* NewL( CRadioServer& aServer );
       
    52 
       
    53 	/**
       
    54 	 * Destructor.
       
    55 	 */
       
    56 	virtual ~CRadioServerSession();
       
    57 
       
    58 private:  // Functions from base classes
       
    59 
       
    60 	/**
       
    61 	 * From CSession2
       
    62 	 * Handles the servicing of a client request that has been passed to the server.
       
    63 	 */
       
    64 	void ServiceL( const RMessage2& aMessage );
       
    65 
       
    66 	/**
       
    67 	 * From MCustomInterfaceCustomCommandImplementor
       
    68 	 * Creates a Custom Interface Builder.
       
    69 	 */
       
    70 	const TMMFMessageDestination& GetCustomInterfaceBuilderL();
       
    71 
       
    72 private:
       
    73 
       
    74 	/**
       
    75 	 * C++ default constructor.
       
    76 	 */
       
    77 	CRadioServerSession( CRadioServer& aServer );
       
    78 
       
    79 	/**
       
    80 	 * By default Symbian 2nd phase constructor is private.
       
    81 	 */
       
    82 	void ConstructL();
       
    83 
       
    84 	/**
       
    85 	 * Returns a CMMFObjectContainer reference to CMMFObjectContainer.
       
    86 	 * @return Reference to CMMFObjectContainer
       
    87 	 */
       
    88 	CMMFObjectContainer& MMFObjectContainerL();
       
    89 
       
    90 private:    // Data
       
    91 
       
    92 	// Reference to the radio server
       
    93 	CRadioServer& iServer;
       
    94 	// Pointer to the custom interface builder
       
    95 	CCustomInterfaceBuilder* iCustomInterfaceBuilder;
       
    96 	// Container for Custom Interface builder and message handlers created by it
       
    97 	CMMFObjectContainer* iObjectContainer;
       
    98 	// Container for Custom Interface Custom Command Parser object
       
    99 	CMMFCustomCommandParserManager* iCustomCommandParserManager;
       
   100     };
       
   101 
       
   102 #endif      // RADIOSERVERSESSION_H
       
   103 
       
   104 // End of File