srsf/vcommandmanager/src/vcmanagervoicekeylauncher.h
branchRCL_3
changeset 18 cad71a31b7fc
parent 17 8ce15fced3a6
child 19 e36f3802f733
equal deleted inserted replaced
17:8ce15fced3a6 18:cad71a31b7fc
     1 /*
       
     2 * Copyright (c) 2004-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:  Voice key observer
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef VCMANAGERVOICEKEYLAUNCHER_H
       
    20 #define VCMANAGERVOICEKEYLAUNCHER_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include <e32base.h>
       
    24 #include <w32std.h> 
       
    25 #include <eikenv.h>
       
    26 
       
    27 // CONSTANTS
       
    28 
       
    29 // MACROS
       
    30 
       
    31 // FORWARD DECLARATIONS
       
    32 
       
    33 
       
    34 /**
       
    35 * Class for starting Voice UI
       
    36 * @since 5.0
       
    37 */
       
    38 NONSHARABLE_CLASS( CVCommandManagerVoiceKeyLauncher ) : public CActive
       
    39     {
       
    40     public:
       
    41         /** 
       
    42         *  Factory construction
       
    43         *  @return Constructed and already started observer
       
    44         */
       
    45         static CVCommandManagerVoiceKeyLauncher* NewL();
       
    46         
       
    47         /** 
       
    48         * Destructor 
       
    49         */
       
    50         ~CVCommandManagerVoiceKeyLauncher();
       
    51 
       
    52     public:     // From base classes
       
    53     
       
    54         /**
       
    55         * From CActive 
       
    56         * @see CActive for more information
       
    57         */
       
    58         void DoCancel();
       
    59     
       
    60         /**
       
    61         * From CActive 
       
    62         * @see CActive for more information
       
    63         */
       
    64         void RunL();
       
    65         
       
    66     private:
       
    67         /**
       
    68         * C++ constructor 
       
    69         */
       
    70         CVCommandManagerVoiceKeyLauncher();
       
    71         
       
    72         /**
       
    73         * Symbian second phase constructor 
       
    74         */
       
    75         void ConstructL();
       
    76         
       
    77         /**
       
    78         * Start voice ui 
       
    79         */        
       
    80         void LaunchVoiceUiL();
       
    81         
       
    82         
       
    83     private:
       
    84         
       
    85         // is key capture enabled
       
    86         TBool iKeyEnabled;
       
    87         
       
    88         // key handle for window group
       
    89         TInt32 iKeyCaptureHandle;
       
    90         TInt32 iLongKeyCaptureHandle;
       
    91         
       
    92         // window group
       
    93         RWindowGroup iWindowGroup;
       
    94         
       
    95         RWsSession iWsSession;
       
    96     };
       
    97 
       
    98 #endif // VCMANAGERVOICEKEYLAUNCHER_H
       
    99             
       
   100 // End of File