voiceui/voiceuivoicerecognition/inc/vuickeygrabber.h
branchRCL_3
changeset 19 e36f3802f733
parent 0 bf1d17376201
equal deleted inserted replaced
18:cad71a31b7fc 19:e36f3802f733
       
     1 /*
       
     2 * Copyright (c) 2007 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 #ifndef VUICKEYGRABBER_H
       
    20 #define VUICKEYGRABBER_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32base.h>
       
    24 #include <w32std.h>
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 class MKeyCallback;
       
    28 
       
    29 // CLASS DECLARATION
       
    30 /**
       
    31 * 
       
    32 *
       
    33 */
       
    34 NONSHARABLE_CLASS( CKeyGrabber ) : public CActive
       
    35 {
       
    36     public:     // Constructors and destructor
       
    37 
       
    38         /**
       
    39         * Symbian two-phased constructor.
       
    40         */
       
    41         static CKeyGrabber* NewL( MKeyCallback* aKeyObserver );
       
    42 
       
    43         /**
       
    44         * Destructor.
       
    45         */
       
    46         virtual ~CKeyGrabber();
       
    47                                 
       
    48     public:     // New functions    
       
    49     
       
    50     public:     // From base classes
       
    51     
       
    52         /**
       
    53         * From CActive 
       
    54         * @see CActive for more information
       
    55         */
       
    56         void DoCancel();
       
    57     
       
    58         /**
       
    59         * From CActive 
       
    60         * @see CActive for more information
       
    61         */
       
    62         void RunL();
       
    63     
       
    64          
       
    65     protected:  // New functions
       
    66         
       
    67         /**
       
    68         * C++ default constructor.
       
    69         */
       
    70         CKeyGrabber( MKeyCallback* aKeyObserver );
       
    71                 
       
    72         /**
       
    73         * Symbian OS 2nd phase constructor.
       
    74         */
       
    75         virtual void ConstructL();
       
    76         
       
    77         
       
    78     private:    // Data
       
    79 
       
    80         // Key callback
       
    81         MKeyCallback*                   iKeyObserver;
       
    82 
       
    83         // Window group
       
    84         RWindowGroup                    iWindowGroup;
       
    85         
       
    86         // Window server session
       
    87         RWsSession                      iWsSession;
       
    88         
       
    89         // Camera key handle
       
    90         TInt                            iCameraHandle;
       
    91         
       
    92         // Poc key handle
       
    93         TInt                            iPocHandle;
       
    94         
       
    95         // Power key handle
       
    96         TInt                            iPowerHandle;
       
    97         
       
    98         // Application key handle
       
    99         TInt                            iApplicationHandle;
       
   100 
       
   101 };
       
   102 
       
   103 #endif  // VUICKEYGRABBER_H
       
   104 
       
   105 // End of File