genericservices/mimerecognitionfw/tef/T_MimeStep.h
changeset 0 e4d67989cc36
equal deleted inserted replaced
-1:000000000000 0:e4d67989cc36
       
     1 // Copyright (c) 2006-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 "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 /**
       
    17  @file
       
    18  @test
       
    19  @internalComponent - Internal Symbian test code  
       
    20 */
       
    21 
       
    22 #if (!defined __T_MIME_STEP_H__)
       
    23 #define __T_MIME_STEP_H__
       
    24 #include <test/testexecutestepbase.h>
       
    25 #include "TEmimeTestServer.h"
       
    26 #include <apmfndr.h>
       
    27 #include <apmrec.h>
       
    28 #include <s32file.h>
       
    29 
       
    30 class CTestDataRecognizerType	: public CApaDataRecognizer
       
    31 	{
       
    32 public:
       
    33 		static inline CTestDataRecognizerType * NewDataRecogTypeL(RFs &aFs);
       
    34 		CTestDataRecognizerType(RFs &aFs);
       
    35 		~CTestDataRecognizerType();
       
    36 		inline void AddDataL(CApaDataRecognizerType* aDataRecognizerType)
       
    37 		{
       
    38 			 AddDataRecognizerType(aDataRecognizerType);
       
    39 		};
       
    40 		inline TInt RemoveData( CApaDataRecognizerType* aDataRecognizerType)
       
    41 		{
       
    42 			return (RemoveDataRecognizerType(aDataRecognizerType));
       
    43 		};
       
    44 		
       
    45 	
       
    46 		
       
    47 	};
       
    48 
       
    49 class CT_MimeStep : public CTestStep
       
    50 	{
       
    51 public:
       
    52 	CT_MimeStep();
       
    53 	~CT_MimeStep();
       
    54 //	virtual TVerdict doTestStepPreambleL();
       
    55 //	virtual TVerdict doTestStepPostambleL();
       
    56 	virtual TVerdict doTestStepL();
       
    57 private:
       
    58 	void testScanningMimeTheRecognizerL();
       
    59 	void testRecognizersL();
       
    60 	void testTDataTypeL();
       
    61 	void DoTest(TInt aReturnValue);
       
    62 	void testRecognizer(const CApaScanningDataRecognizer::TRecognizer& aRec);
       
    63 	void ChkConfAndMimeL(RFs &aIfs,const TUid &aUid);
       
    64 	void ChkLockAndUnlockL(RFs &aIfs);
       
    65 	
       
    66 private:
       
    67 	CApaScanningDataRecognizer* iRecognizer;
       
    68 	RFs iFs;
       
    69 	CTrapCleanup* iTrapCleanup;
       
    70 	CTestDataRecognizerType * iTestDataRecogType;
       
    71 	CApaDataRecognizerType * iData;
       
    72 	};
       
    73 
       
    74 _LIT(KT_MimeStep,"T_Mime");
       
    75 #endif
       
    76