srsf/vcommandhandler/inc/vcommandrecoghandler.h
branchRCL_3
changeset 18 cad71a31b7fc
parent 17 8ce15fced3a6
child 19 e36f3802f733
equal deleted inserted replaced
17:8ce15fced3a6 18:cad71a31b7fc
     1 /*
       
     2 * Copyright (c) 2006 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:  Engine to perform the action corresponding to
       
    15 *                the recognized and selected command
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20  
       
    21 #ifndef VCOMMANDRECOGHANDLER_H
       
    22 #define VCOMMANDRECOGHANDLER_H
       
    23 
       
    24 #include <nssvasmtagselecthandler.h>
       
    25 
       
    26 class CVCommand;
       
    27 
       
    28 /**
       
    29 * Manages the recognized command selection
       
    30 */
       
    31 class CVCRecognitionHandler : public CBase, public MNssTagSelectHandler 
       
    32 	{
       
    33 	public:
       
    34 		/**
       
    35 		* Factory function
       
    36 		*/ 
       
    37 		static CVCRecognitionHandler* NewL();
       
    38 		
       
    39 	public:
       
    40 		// From MNssTagSelectHandler
       
    41 		/**
       
    42 	    * Handle Tag Select Event - Event indicating a voice tag has been selected.
       
    43 	    * @param aClientTag The voice tag which has been selected. This object is
       
    44 		*                   resonsible for deleting aClientTag.
       
    45 	    * @return void
       
    46 	    */
       
    47 		virtual void HandleTagSelect( MNssTag* aClientTag );
       
    48 		
       
    49 	private:
       
    50 		/** 
       
    51 		* Execute a VCommand stored in the voice tag
       
    52 		* @leave If aTag does not contain a VCommand according to 
       
    53 		*			CVCommand::NewL codes
       
    54 		*/ 
       
    55 		void HandleTagSelectL( const MNssTag& aTag );
       
    56 		
       
    57 	};
       
    58 
       
    59 #endif // VCOMMANDRECOGHANDER_H