localisation/apparchitecture/tef/TESTREC/TESTREC.H
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 // Header File for the data recognizer
       
    15 // Declares a test recognizer class which recognizes data type "test/plain".\n
       
    16 // 
       
    17 //
       
    18 
       
    19 
       
    20 
       
    21 /**
       
    22  @file
       
    23  @internalComponent - Internal Symbian test code 
       
    24 */
       
    25 
       
    26 #if !defined(__TESTREC_H__)
       
    27 #define __TESTREC_H__
       
    28 
       
    29 #if !defined(__APMREC_H__)
       
    30 #include <apmrec.h>
       
    31 #endif
       
    32 
       
    33 #include <apmstd.h>
       
    34 #include <ImplementationProxy.h>
       
    35 
       
    36 class CAppTestRecognizer : public CApaDataRecognizerType
       
    37 	{
       
    38 public: // from CApaDataRecognizerType
       
    39 	CAppTestRecognizer();
       
    40 	TUint PreferredBufSize();
       
    41 	TDataType SupportedDataTypeL(TInt aIndex) const;
       
    42 	//for ECOM
       
    43 	static CApaDataRecognizerType* CreateRecognizerL();
       
    44 private: // from CApaFileRecognizerType
       
    45 	void DoRecognizeL(const TDesC& aName, const TDesC8& aBuffer);
       
    46 	};
       
    47 
       
    48 const TInt KTestTxtRecognizerValue=0x102032A6;
       
    49 const TUid KUidTestTxtRecognizer={0x102032A6};
       
    50 const TInt KMinBufferLength=42;  // minimum amount of file needed to determine a text file IF it's not called .TEST
       
    51 const TInt KMaxBufferLength=1024; // maximum amount of buffer space we will ever use
       
    52 _LIT8(KDataTypeTestPlain,"test/plain");
       
    53 _LIT(KTestFileExt,".TEST");
       
    54 
       
    55 
       
    56 #endif