localisation/apparchitecture/tef/TTestEcomFileRec.cpp
branchSymbian2
changeset 1 8758140453c0
child 6 c108117318cb
equal deleted inserted replaced
0:e8c1ea2c6496 1:8758140453c0
       
     1 // Copyright (c) 2005-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 
       
    17 
       
    18 /**
       
    19  @file
       
    20  @internalComponent - Internal Symbian test code 
       
    21 */
       
    22 
       
    23 #include <apfrec.h>
       
    24 #include <ImplementationProxy.h> 
       
    25 
       
    26 class CTestEcomRecognizer : public CApaFileRecognizerType
       
    27 	{
       
    28 public: // from CApaFileRecognizerType
       
    29 	TThreadId RunL(TApaCommand aCommand,const TDesC* aDocFileName=NULL,const TDesC8* aTailEnd=NULL) const;
       
    30 	static CApaFileRecognizerType* CreateRecognizerL();
       
    31 private: // from CApaFileRecognizerType
       
    32 	TRecognizedType DoRecognizeFileL(RFs& aFs,TUidType aType);
       
    33 	};
       
    34 
       
    35 TThreadId CTestEcomRecognizer::RunL(TApaCommand /*aCommand*/,const TDesC* /*aDocFileName*/,const TDesC8* /*aTailEnd*/) const
       
    36 	{
       
    37 	TThreadId id(NULL);
       
    38 	return id;
       
    39 	}
       
    40 
       
    41 CApaFileRecognizerType::TRecognizedType CTestEcomRecognizer::DoRecognizeFileL(RFs& /*aFs*/,TUidType /*aType*/)
       
    42 	{
       
    43 	return iRecognizedType;
       
    44 	}
       
    45 
       
    46 
       
    47 GLDEF_C TInt E32Dll(
       
    48 					)
       
    49 
       
    50 // DLL entry point
       
    51 
       
    52 	{
       
    53 	return KErrNone;
       
    54 	}
       
    55 
       
    56 CApaFileRecognizerType* CTestEcomRecognizer::CreateRecognizerL()
       
    57 	{
       
    58 	return new (ELeave) CTestEcomRecognizer();
       
    59 	}
       
    60 
       
    61 const TImplementationProxy ImplementationTable[] = 
       
    62     {
       
    63 	IMPLEMENTATION_PROXY_ENTRY(0x101F7D8C,CTestEcomRecognizer::CreateRecognizerL)
       
    64 	};
       
    65 
       
    66 EXPORT_C const TImplementationProxy* ImplementationGroupProxy(TInt& aTableCount)
       
    67     {
       
    68     aTableCount = sizeof(ImplementationTable) / sizeof(TImplementationProxy);
       
    69     return ImplementationTable;
       
    70     }