common/tools/ats/smoketest/localisation/apparchitecture/tef/trecupgrade/recupgrade.cpp
changeset 793 0c32c669a39d
child 872 17498133d9ad
equal deleted inserted replaced
792:893b85cda81b 793:0c32c669a39d
       
     1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of the License "Symbian Foundation License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #include <implementationproxy.h>
       
    17 
       
    18 #include "recupgrade.h"
       
    19 #include "upgconstants.h"
       
    20 
       
    21 /////////////////////////////////////////////////
       
    22 
       
    23 const TInt KMaxBufferLength=1024; // maximum amount of buffer space we will ever use
       
    24 
       
    25 /////////////////////////////////////////////////
       
    26 
       
    27 /*
       
    28 DLL entry point
       
    29 */
       
    30 GLDEF_C TInt E32Dll()
       
    31 	{
       
    32 	return KErrNone;
       
    33 	}
       
    34 
       
    35 /*
       
    36 Private constructor
       
    37 */
       
    38 CTestUpgradeRecognizer::CTestUpgradeRecognizer()
       
    39 	:CApaDataRecognizerType(KUidUpgradeRecognizer, CApaDataRecognizerType::ENormal)
       
    40 	{
       
    41 	iCountDataTypes=0;
       
    42 	}
       
    43 	
       
    44 /*
       
    45 Ecom factory function
       
    46 */
       
    47 CApaDataRecognizerType* CTestUpgradeRecognizer::CreateRecognizerL()
       
    48 	{
       
    49 	
       
    50 	return new (ELeave) CTestUpgradeRecognizer();
       
    51 	}
       
    52 	
       
    53 
       
    54 TUint CTestUpgradeRecognizer::PreferredBufSize()
       
    55 	{
       
    56 	return KMaxBufferLength;
       
    57 	}
       
    58 
       
    59 TDataType CTestUpgradeRecognizer::SupportedDataTypeL(TInt /*aIndex*/) const
       
    60 	{
       
    61 	return TDataType();
       
    62 	}
       
    63 
       
    64 void CTestUpgradeRecognizer::DoRecognizeL(const TDesC& /*aName*/, const TDesC8& /*aBuffer*/)
       
    65 	{
       
    66     	// returning ENotRecognized will avoid the possibility of impacting other test code.
       
    67 	iDataType=TDataType();
       
    68 	iConfidence=ENotRecognized;
       
    69 	}
       
    70 
       
    71 const TImplementationProxy ImplementationTable[] = 
       
    72     {
       
    73 	IMPLEMENTATION_PROXY_ENTRY(KUidUpgradeRecognizerValue, CTestUpgradeRecognizer::CreateRecognizerL)
       
    74 	};
       
    75 
       
    76 EXPORT_C const TImplementationProxy* ImplementationGroupProxy(TInt& aTableCount)
       
    77     {
       
    78     aTableCount = sizeof(ImplementationTable) / sizeof(TImplementationProxy);
       
    79     return ImplementationTable;
       
    80     }