srsfenginestub/nlphwdevice/src/asrsnlphwdevice.cpp
changeset 39 65e91466a14b
parent 31 931072794a66
child 40 b7e5ed8c1342
equal deleted inserted replaced
31:931072794a66 39:65e91466a14b
     1 /*
       
     2 * Copyright (c) 2005 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:     HW device stub of NLP
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 // INCLUDE FILES
       
    23 #include    "asrsnlphwdevice.h"
       
    24 
       
    25 // ============================ MEMBER FUNCTIONS ===============================
       
    26 
       
    27 // -----------------------------------------------------------------------------
       
    28 // CNlpHwDevice::CNlpHwDevice
       
    29 // C++ default constructor can NOT contain any code, that
       
    30 // might leave.
       
    31 // -----------------------------------------------------------------------------
       
    32 //
       
    33 CNlpHwDevice::CNlpHwDevice():
       
    34 	iAlgorithm( NULL ),
       
    35     iReserved( NULL )
       
    36     {
       
    37     // nothing
       
    38     }
       
    39 
       
    40 // -----------------------------------------------------------------------------
       
    41 // CNlpHwDevice::ConstructL
       
    42 // Symbian 2nd phase constructor can leave.
       
    43 // -----------------------------------------------------------------------------
       
    44 //
       
    45 void CNlpHwDevice::ConstructL( MNlpHwDeviceObserver& /*aObserver*/ )
       
    46     {
       
    47     User::Leave( KErrNotSupported );
       
    48     }
       
    49 
       
    50 // -----------------------------------------------------------------------------
       
    51 // CNlpHwDevice::NewL
       
    52 // Two-phased constructor.
       
    53 // -----------------------------------------------------------------------------
       
    54 //
       
    55 EXPORT_C CNlpHwDevice* CNlpHwDevice::NewL( MNlpHwDeviceObserver& aObserver )
       
    56     {
       
    57     CNlpHwDevice* self = new( ELeave ) CNlpHwDevice;
       
    58     
       
    59     CleanupStack::PushL( self );
       
    60     self->ConstructL( aObserver);
       
    61     CleanupStack::Pop();
       
    62 
       
    63     return self;
       
    64     }
       
    65     
       
    66 // -----------------------------------------------------------------------------
       
    67 // CNlpHwDevice::~CNlpHwDevice
       
    68 // Destructor.
       
    69 // -----------------------------------------------------------------------------
       
    70 //
       
    71 EXPORT_C CNlpHwDevice::~CNlpHwDevice()
       
    72 	{
       
    73     }
       
    74 
       
    75 // -----------------------------------------------------------------------------
       
    76 // CNlpHwDevice::IsLanguageSupported
       
    77 // Tells if given language is supported by NLP module or not.
       
    78 // -----------------------------------------------------------------------------
       
    79 //
       
    80 EXPORT_C TBool CNlpHwDevice::IsLanguageSupported( TLanguage /*aLanguage*/ )
       
    81     {
       
    82     return EFalse;
       
    83     }
       
    84 
       
    85 // -----------------------------------------------------------------------------
       
    86 // CNlpHwDevice::NormalizeTextL
       
    87 // Processes text.
       
    88 // -----------------------------------------------------------------------------
       
    89 //
       
    90 EXPORT_C void CNlpHwDevice::NormalizeTextL( CTtsParsedText& /*aText*/ )
       
    91     {
       
    92     User::Leave( KErrNotSupported );
       
    93     }
       
    94 
       
    95 // -----------------------------------------------------------------------------
       
    96 // CNlpHwDevice::NormalizeAndSegmentTextL
       
    97 // Processes text and divides it to segments.
       
    98 // -----------------------------------------------------------------------------
       
    99 //    
       
   100 EXPORT_C void CNlpHwDevice::NormalizeAndSegmentTextL( CTtsParsedText& /*aText*/ )
       
   101     {
       
   102     User::Leave( KErrNotSupported );
       
   103     }
       
   104 
       
   105 // -----------------------------------------------------------------------------
       
   106 // CNlpHwDevice::NormalizeTextL
       
   107 // Processes text.
       
   108 // -----------------------------------------------------------------------------
       
   109 //
       
   110 EXPORT_C void CNlpHwDevice::NormalizeTextAsyncL( CTtsParsedText& /*aText*/ )
       
   111     {
       
   112     User::Leave( KErrNotSupported );
       
   113     }
       
   114     
       
   115 // -----------------------------------------------------------------------------
       
   116 // CNlpHwDevice::NormalizeAndSegmentTextL
       
   117 // Processes text and divides it to segments.
       
   118 // -----------------------------------------------------------------------------
       
   119 //    
       
   120 EXPORT_C void CNlpHwDevice::NormalizeAndSegmentTextAsyncL( CTtsParsedText& /*aText*/ )
       
   121     {
       
   122     User::Leave( KErrNotSupported );
       
   123     }
       
   124 
       
   125 // ========================== OTHER EXPORTED FUNCTIONS =========================
       
   126 
       
   127 // -----------------------------------------------------------------------------
       
   128 // for DLL goodness
       
   129 // -----------------------------------------------------------------------------
       
   130 //
       
   131 
       
   132 #ifndef EKA2
       
   133 GLDEF_C TInt E32Dll( TDllReason )
       
   134 {
       
   135 	return KErrNone;
       
   136 }
       
   137 #endif
       
   138 
       
   139 //  End of File