srsfenginestub/recognitionhwdevice/src/asrsrecognitionhwdevice.cpp
changeset 39 65e91466a14b
parent 31 931072794a66
child 40 b7e5ed8c1342
equal deleted inserted replaced
31:931072794a66 39:65e91466a14b
     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:     Recognition HW device
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 // INCLUDE FILES
       
    23 #include "asrsrecognitionhwdevice.h"
       
    24 #include <nsssispeechrecognitiondatadevasr.h>
       
    25 
       
    26 
       
    27 // ============================ MEMBER FUNCTIONS ===============================
       
    28 
       
    29 // -----------------------------------------------------------------------------
       
    30 // CASRSRecognitionHwDevice::CASRSRecognitionHwDevice
       
    31 // C++ default constructor can NOT contain any code, that
       
    32 // might leave.
       
    33 // -----------------------------------------------------------------------------
       
    34 //
       
    35 CASRSRecognitionHwDevice::CASRSRecognitionHwDevice()
       
    36  : iRecAlgorithm( NULL ),
       
    37    iReserved( NULL )
       
    38     {
       
    39     }
       
    40 
       
    41 // -----------------------------------------------------------------------------
       
    42 // CASRSRecognitionHwDevice::ConstructL
       
    43 // Symbian 2nd phase constructor can leave.
       
    44 // -----------------------------------------------------------------------------
       
    45 //
       
    46 void CASRSRecognitionHwDevice::ConstructL(
       
    47     MASRSRecognitionHwDeviceObserver& /*aObserver*/ )
       
    48     {
       
    49     User::Leave( KErrNotSupported );
       
    50     }
       
    51 
       
    52 // -----------------------------------------------------------------------------
       
    53 // CASRSRecognitionHwDevice::NewL
       
    54 // Two-phased constructor.
       
    55 // -----------------------------------------------------------------------------
       
    56 //
       
    57 EXPORT_C CASRSRecognitionHwDevice* CASRSRecognitionHwDevice::NewL(
       
    58     MASRSRecognitionHwDeviceObserver& aObserver )
       
    59     {
       
    60     CASRSRecognitionHwDevice* self = new( ELeave ) CASRSRecognitionHwDevice;
       
    61     
       
    62     CleanupStack::PushL( self );
       
    63     self->ConstructL( aObserver );
       
    64     CleanupStack::Pop();
       
    65     
       
    66     return self;
       
    67     }
       
    68 
       
    69 // -----------------------------------------------------------------------------
       
    70 // CASRSRecognitionHwDevice::~CASRSRecognitionHwDevice
       
    71 // Destructor.
       
    72 // -----------------------------------------------------------------------------
       
    73 //
       
    74 EXPORT_C CASRSRecognitionHwDevice::~CASRSRecognitionHwDevice()
       
    75     {
       
    76     }
       
    77 
       
    78 // -----------------------------------------------------------------------------
       
    79 // CASRSRecognitionHwDevice::InitRecognizerBEL
       
    80 // Calls equivalent function of CRecognitionAlgorithm
       
    81 // (other items were commented in a header).
       
    82 // -----------------------------------------------------------------------------
       
    83 //
       
    84 EXPORT_C void CASRSRecognitionHwDevice::InitRecognizerBEL( 
       
    85     const TDesC8& /*aRecognitionData*/, 
       
    86     const CSIModelBank& /*aModels*/ )
       
    87     {
       
    88     User::Leave( KErrNotSupported );
       
    89     }
       
    90 
       
    91 // -----------------------------------------------------------------------------
       
    92 // CASRSRecognitionHwDevice::InitRecognizerFEL
       
    93 // Calls equivalent function of CRecognitionAlgorithm
       
    94 // (other items were commented in a header).
       
    95 // -----------------------------------------------------------------------------
       
    96 //
       
    97 EXPORT_C void CASRSRecognitionHwDevice::InitRecognizerFEL(
       
    98     TBool /*aSendFeatureVectors*/ )
       
    99     {
       
   100     User::Leave( KErrNotSupported );
       
   101     }
       
   102 
       
   103 // -----------------------------------------------------------------------------
       
   104 // CASRSRecognitionHwDevice::SetNBest
       
   105 // Calls equivalent function of CRecognitionAlgorithm
       
   106 // (other items were commented in a header).
       
   107 // -----------------------------------------------------------------------------
       
   108 //
       
   109 EXPORT_C void CASRSRecognitionHwDevice::SetNBest( 
       
   110     TUint32 /*aNBest*/ )
       
   111     {
       
   112     }
       
   113 
       
   114 // -----------------------------------------------------------------------------
       
   115 // CASRSRecognitionHwDevice::StartRecognitionL
       
   116 // Calls equivalent function of CRecognitionAlgorithm
       
   117 // (other items were commented in a header).
       
   118 // -----------------------------------------------------------------------------
       
   119 //
       
   120 EXPORT_C void CASRSRecognitionHwDevice::StartRecognitionL( 
       
   121     RArray<TUint>& /*aNBestList*/, 
       
   122     RArray<TInt>&  /*aScore*/ )
       
   123     {
       
   124     User::Leave( KErrNotSupported );
       
   125     }
       
   126 
       
   127 // -----------------------------------------------------------------------------
       
   128 // CASRSRecognitionHwDevice::StopRecognition
       
   129 // Calls equivalent function of CRecognitionAlgorithm
       
   130 // (other items were commented in a header).
       
   131 // -----------------------------------------------------------------------------
       
   132 //
       
   133 EXPORT_C void CASRSRecognitionHwDevice::StopRecognition()
       
   134     {
       
   135     }
       
   136  
       
   137 // -----------------------------------------------------------------------------
       
   138 // CASRSRecognitionHwDevice::SendSpeechData
       
   139 // Calls equivalent function of CRecognitionAlgorithm
       
   140 // (other items were commented in a header).
       
   141 // -----------------------------------------------------------------------------
       
   142 //
       
   143 EXPORT_C void CASRSRecognitionHwDevice::SendSpeechData( 
       
   144     TPtrC8& /*aBuffer*/, 
       
   145     TBool /*aEnd*/ )
       
   146     {
       
   147     }
       
   148         
       
   149 
       
   150 // -----------------------------------------------------------------------------
       
   151 // CASRSRecognitionHwDevice::InitializeL
       
   152 // Calls equivalent function of CRecognitionAlgorithm
       
   153 // (other items were commented in a header).
       
   154 // -----------------------------------------------------------------------------
       
   155 //
       
   156 EXPORT_C void CASRSRecognitionHwDevice::InitializeL()
       
   157     {
       
   158     User::Leave( KErrNotSupported );
       
   159     }
       
   160 
       
   161 // -----------------------------------------------------------------------------
       
   162 // CASRSRecognitionHwDevice::Clear
       
   163 // Calls equivalent function of CRecognitionAlgorithm
       
   164 // (other items were commented in a header).
       
   165 // -----------------------------------------------------------------------------
       
   166 //
       
   167 EXPORT_C void CASRSRecognitionHwDevice::Clear()
       
   168     {
       
   169     }
       
   170 
       
   171 // -----------------------------------------------------------------------------
       
   172 // CASRSRecognitionHwDevice::CustomInterface
       
   173 // Calls equivalent function of CRecognitionAlgorithm
       
   174 // (other items were commented in a header).
       
   175 // -----------------------------------------------------------------------------
       
   176 //
       
   177 EXPORT_C TAny* CASRSRecognitionHwDevice::CustomInterface(
       
   178     TUid /*aInterfaceId*/ )
       
   179     {
       
   180     return NULL;
       
   181     }
       
   182 
       
   183 // -----------------------------------------------------------------------------
       
   184 // CASRSRecognitionHwDevice::SetRejection
       
   185 // Calls equivalent function of CRecognitionAlgorithm
       
   186 // (other items were commented in a header).
       
   187 // -----------------------------------------------------------------------------
       
   188 //
       
   189 EXPORT_C void CASRSRecognitionHwDevice::SetRejection( TUint32 /*aRejection*/ )
       
   190     {
       
   191     }
       
   192     	
       
   193 // -----------------------------------------------------------------------------
       
   194 // CASRSRecognitionHwDevice::GetRejection
       
   195 // Calls equivalent function of CRecognitionAlgorithm
       
   196 // (other items were commented in a header).
       
   197 // -----------------------------------------------------------------------------
       
   198 //
       
   199 EXPORT_C TUint32 CASRSRecognitionHwDevice::GetRejection()
       
   200     {
       
   201     return 0;
       
   202     }
       
   203 
       
   204 // End of File