multimediacommsengine/tsrc/MCETestUI/MCETestUIEngine/inc/CMCETestUIEngineInRefer.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 __CMCETESTUIENGINEINREFER_H__
       
    22 #define __CMCETESTUIENGINEINREFER_H__
       
    23 
       
    24 // INCLUDES
       
    25 #include <e32base.h>
       
    26 #include "TMCETestUIEngineCmdBase.h"
       
    27 #include "CMCETestUIEngineRefer.h"
       
    28 
       
    29 // FORWARD DECLARATIONS
       
    30 
       
    31 class CMceInRefer;
       
    32 
       
    33 
       
    34 // CLASS DECLARATION
       
    35 /**
       
    36 * 
       
    37 * CMCETestUIEngineInSession provides a wrapper for CMCEInSession.
       
    38 * Class is not the traditional wrapper in a sense that it would 
       
    39 * conform to interface provided by CMCEInSession. Instead class
       
    40 * implements interface MMCETestUIEngineCmdProvider to provide
       
    41 * same kind of functionality in controlled way on different levels 
       
    42 * of abstraction.
       
    43 *
       
    44 */
       
    45 class CMCETestUIEngineInRefer : public CMCETestUIEngineRefer
       
    46     {
       
    47         
       
    48     public: // Constructors and destructors
       
    49 
       
    50 
       
    51         /**
       
    52         * Two-phased constructor. Not imported.
       
    53         */
       
    54         static CMCETestUIEngineInRefer* NewL(
       
    55             CMCETestUIEngine& aEngine, 
       
    56             CMceInRefer* aInRefer );
       
    57             
       
    58     	/**
       
    59     	* Destructor.
       
    60     	*/
       
    61     	IMPORT_C ~CMCETestUIEngineInRefer();
       
    62 
       
    63     public: // From MMCETestUICommandProvider
       
    64 
       
    65         /**
       
    66         * Gets the commands applicaple to this insession object.
       
    67         *
       
    68         * @return reference to array of commands
       
    69         */
       
    70         IMPORT_C const RPointerArray<TMCETestUIEngineCmdBase>& 
       
    71                     GetCommandsL();
       
    72 	
       
    73     public: // From base class 
       
    74     
       
    75         /**
       
    76         * @return Id of this particular insession object
       
    77         */    
       
    78         IMPORT_C TInt Id() const;        	
       
    79 	    
       
    80     public: // New functions, internal
       
    81 
       
    82         /**
       
    83         * Gets wrapped MCEInSession object
       
    84         * 
       
    85         * @return wrapped MCEInSession
       
    86         */    
       
    87 	    CMceInRefer& InRefer();
       
    88     
       
    89     private:  // private constructors
       
    90 	    
       
    91         /**
       
    92         * C++ default constructor. Not implemented.
       
    93         */
       
    94         CMCETestUIEngineInRefer();	
       
    95 
       
    96         /**
       
    97         * C++ first phase constructor.
       
    98         */
       
    99         CMCETestUIEngineInRefer( 
       
   100                 CMCETestUIEngine& aEngine,
       
   101                 CMceInRefer* aInRefer );
       
   102 
       
   103        	/**
       
   104         * Symbian second-phase constructor
       
   105         */
       
   106         void ConstructL();	   
       
   107         
       
   108         
       
   109     private:  // owned data
       
   110 
       
   111         // Wrapped CMCEInSession object
       
   112         CMceInRefer* iInRefer;
       
   113        
       
   114         // Id of this insession object
       
   115         TInt iId;   
       
   116         
       
   117     };
       
   118 
       
   119 #endif // __CMCETESTUIENGINEINSESSION_H__