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