hti/HtiAutoStart/inc/HtiAutoStart.h
changeset 0 a03f92240627
equal deleted inserted replaced
-1:000000000000 0:a03f92240627
       
     1 /*
       
     2 * Copyright (c) 2009 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:  Implementation of recognizer that automatically starts HTI
       
    15 *               on device start-up if the device is configured to load
       
    16 *               data recognizers during start-up.
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 #ifndef __HTIAUTOSTART_H
       
    22 #define __HTIAUTOSTART_H
       
    23 
       
    24 
       
    25 //  INCLUDES
       
    26 #include <apmrec.h>
       
    27 #include <e32std.h>
       
    28 
       
    29 // CONSTANTS
       
    30 
       
    31 // MACROS
       
    32 
       
    33 // DATA TYPES
       
    34 
       
    35 // FUNCTION PROTOTYPES
       
    36 
       
    37 // FORWARD DECLARATIONS
       
    38 
       
    39 // CLASS DECLARATION
       
    40 
       
    41 /**
       
    42 *  Implements CHtiAutostart
       
    43 */
       
    44 class CHtiAutostart : public CApaDataRecognizerType
       
    45     {
       
    46     public: // new functions
       
    47         static CApaDataRecognizerType* CreateRecognizerL();
       
    48         CHtiAutostart();
       
    49         static void StartThread();
       
    50         static TInt StartAppThreadFunction( TAny* aParam );
       
    51         static void StartAppThreadFunctionL();
       
    52 
       
    53     public: // from CApaDataRecognizerType
       
    54 
       
    55         TUint PreferredBufSize();
       
    56         TDataType SupportedDataTypeL( TInt aIndex ) const;
       
    57 
       
    58     private: // from CApaDataRecognizerType
       
    59 
       
    60         void DoRecognizeL( const TDesC& aName, const TDesC8& aBuffer );
       
    61     };
       
    62 
       
    63 #endif // __HTIAUTOSTART_H
       
    64 
       
    65 // End of File