multimediacommsengine/mmcesrv/mmceserver/inc/mcecsserver.h
changeset 0 1bce908db942
equal deleted inserted replaced
-1:000000000000 0:1bce908db942
       
     1 /*
       
     2 * Copyright (c) 2005 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:    
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef CMCECSSERVER_H
       
    22 #define CMCECSSERVER_H
       
    23 
       
    24 //  INCLUDES
       
    25 #include <e32base.h>
       
    26 #include "mceserver.pan"
       
    27 
       
    28 //  FORWARD DECLARATION
       
    29 class CMceServerCore;
       
    30 
       
    31 // CLASS DECLARATION
       
    32 
       
    33 /**
       
    34 *  MCE server.
       
    35 *
       
    36 *  @lib 
       
    37 *  @since
       
    38 */
       
    39 class CMceCsServer : public CPolicyServer
       
    40 	{
       
    41 	public: // Constructors and destructor
       
    42     
       
    43 		/**
       
    44 		* Two-phased constructor.
       
    45 		* @param aServerCore, reference to server core.
       
    46 		*/
       
    47 		static CMceCsServer* NewL (CMceServerCore& aServerCore);
       
    48 
       
    49 		/**
       
    50 		* Two-phased constructor.
       
    51 		* @param aServerCore, reference to server core.
       
    52 		*/
       
    53 		static CMceCsServer* NewLC (CMceServerCore& aServerCore);
       
    54 
       
    55 		/**
       
    56 		* Destructor
       
    57 		*/
       
    58 		~CMceCsServer ();
       
    59 
       
    60 	protected:
       
    61     
       
    62 		TInt RunError (TInt aError);
       
    63 
       
    64 	private:
       
    65 
       
    66 		CMceCsServer (TInt aPriority, CMceServerCore& aServerCore);
       
    67 
       
    68 		void ConstructL ();
       
    69 
       
    70 		CSession2* NewSessionL (const TVersion &aVersion,
       
    71 								   const RMessage2& aMessage) const;
       
    72 
       
    73 	private:
       
    74 
       
    75 		CMceServerCore& iServerCore;
       
    76 	};
       
    77 
       
    78 #endif
       
    79 
       
    80 // End of File