multimediacommsengine/tsrc/MMCTestDriver/MCETester/inc/TCmdAddAudioStream.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:    See class definition below.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef __TCmdAddAudioStream_H__
       
    21 #define __TCmdAddAudioStream_H__
       
    22 
       
    23 // INCLUDES
       
    24 #include "TTcMceCommandBase.h"
       
    25 #include "CSessionHelper.h"
       
    26 
       
    27 class CMceAudioCodec;
       
    28 
       
    29 // CLASS DEFINITION
       
    30 /**
       
    31  * Command class responsible for "SendAnswer" functionality.
       
    32  */
       
    33 class TCmdAddAudioStream
       
    34 	: public TTcMceCommandBase
       
    35 	{
       
    36 	public:	// Constructors and destructor
       
    37 
       
    38 		/**
       
    39 		 * Constructor.
       
    40 		 *
       
    41 		 * @param aContext MCE Test case context
       
    42 		 */
       
    43 		TCmdAddAudioStream( MTcTestContext& aContext )
       
    44 					: TTcMceCommandBase( aContext ) {};
       
    45 
       
    46 	public: // From TTcMceCommandBase
       
    47 
       
    48 		void ExecuteL();
       
    49 
       
    50 	public: // New methods
       
    51 
       
    52 		/**
       
    53 		 * Static function for matching the name of this command to
       
    54 		 * a function identifier.
       
    55 		 *
       
    56 		 * @param aId An initialized identifier containing a function name.
       
    57 		 * @return ETrue if this command matches the specified name.
       
    58 		 */
       
    59 		static TBool Match( const TTcIdentifier& aId );
       
    60 
       
    61 		/**
       
    62 		 * Static fuction for creating an instance of this class
       
    63 		 *
       
    64 		 * @param aContext MCE Test case context
       
    65 		 * @return An initialized instance of this class.
       
    66 		 */
       
    67 		static TTcCommandBase* CreateL( MTcTestContext& aContext );
       
    68 
       
    69     private: // Helper methods
       
    70     
       
    71         CMceAudioCodec* GetAudioCodecCloneL( const TDesC8& aParamCodecName );
       
    72     
       
    73     private:  	
       
    74     	CSessionHelper iSessionHelper;
       
    75 
       
    76 	};
       
    77 
       
    78 #endif // __TCmdAddAudioStream_H__