common/tools/ats/smoketest/localisation/apparchitecture/tef/TDoNothingFileRecognizer.cpp
changeset 793 0c32c669a39d
child 872 17498133d9ad
equal deleted inserted replaced
792:893b85cda81b 793:0c32c669a39d
       
     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 
       
    25 #include <ImplementationProxy.h>
       
    26 
       
    27 /**   Recognizer doing nothing for checking the defect DEF039651.
       
    28       Change Apparc's TRecognizerName in a similar way to EMime's was in DEF037809" */
       
    29 
       
    30 class CDoNothingFileRec : public CApaFileRecognizerType
       
    31 	{
       
    32 public: // from CApaFileRecognizerType
       
    33 	static CApaFileRecognizerType* CreateRecognizerL();
       
    34 	TThreadId RunL(TApaCommand aCommand,const TDesC* aDocFileName=NULL,const TDesC8* aTailEnd=NULL) const;
       
    35 private: // from CApaFileRecognizerType
       
    36 	TRecognizedType DoRecognizeFileL(RFs& aFs,TUidType aType);
       
    37 	};
       
    38 
       
    39 TThreadId CDoNothingFileRec::RunL(TApaCommand /*aCommand*/,const TDesC* /*aDocFileName*/,const TDesC8* /*aTailEnd*/) const
       
    40 	{
       
    41 	TThreadId id(NULL);
       
    42 	return id;
       
    43 	}
       
    44 
       
    45 CApaFileRecognizerType::TRecognizedType CDoNothingFileRec::DoRecognizeFileL(RFs& /*aFs*/,TUidType /*aType*/)
       
    46 	{
       
    47 	return iRecognizedType;
       
    48 	}
       
    49 
       
    50 
       
    51 
       
    52 CApaFileRecognizerType* CDoNothingFileRec::CreateRecognizerL()
       
    53 	{
       
    54 	CDoNothingFileRec* doNothingFileRec=new (ELeave) CDoNothingFileRec();
       
    55 	return doNothingFileRec;
       
    56 	//return new (ELeave) CExampleFileRecognizer ();
       
    57 	}
       
    58 
       
    59 const TImplementationProxy ImplementationTable[] =
       
    60 {
       
    61 IMPLEMENTATION_PROXY_ENTRY(0x101DC568, CDoNothingFileRec::CreateRecognizerL)
       
    62 };
       
    63 
       
    64 EXPORT_C const TImplementationProxy* ImplementationGroupProxy(TInt& aTableCount)
       
    65     {
       
    66     aTableCount = sizeof(ImplementationTable) / sizeof(TImplementationProxy);
       
    67     return ImplementationTable;
       
    68     }
       
    69 	
       
    70 GLDEF_C TInt E32Dll(
       
    71 					)
       
    72 
       
    73 // DLL entry point
       
    74 
       
    75 	{
       
    76 	return KErrNone;
       
    77 	}