appfw/apparchitecture/tef/T_MdrStep.h
changeset 0 2e3d3ce01487
equal deleted inserted replaced
-1:000000000000 0:2e3d3ce01487
       
     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 "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  @internalComponent - Internal Symbian test code  
       
    19 */
       
    20 
       
    21 #if (!defined __T_MDR_STEP_H__)
       
    22 #define __T_MDR_STEP_H__
       
    23 
       
    24 #include "apparctestserver.h"
       
    25 
       
    26 #include <apamdr.h>
       
    27 #include <apgdoor.h>
       
    28 
       
    29 class TTestModelHeaderFactory : public MApaModelHeaderFactory
       
    30 	{
       
    31 public:
       
    32 	CApaModelHeader* NewHeaderL(const CStreamStore& aStore,const CStreamDictionary& aDict,const TApaAppIdentifier& aAppId)const;
       
    33 	};
       
    34 
       
    35 class CTestModelHeader : public CApaModelHeader
       
    36 	{
       
    37 public:
       
    38 	void RestoreL(const CStreamStore& aStore,const CStreamDictionary& aDict);
       
    39 	void StoreL(CStreamStore& aStore,CStreamDictionary& aDict) const;
       
    40 	void DetachFromStoreL(CPicture::TDetach aDetach);
       
    41 	TApaAppIdentifier AppId()const;
       
    42 public:
       
    43 	TInt iData;
       
    44 	};
       
    45 	
       
    46 //!  A CT-MdrStep test class. 
       
    47 
       
    48 /**  Class tests CApaDoor and CApaModelDoor Apis. */
       
    49 
       
    50 class CT_MdrStep:public CTestStep
       
    51 	{
       
    52 public:
       
    53 	CT_MdrStep();
       
    54 	~CT_MdrStep();
       
    55 	virtual TVerdict doTestStepPreambleL();
       
    56 	virtual TVerdict doTestStepPostambleL();
       
    57 	virtual TVerdict doTestStepL();
       
    58 	void testModelDoorL();
       
    59 	void testConversionL();
       
    60 	void testMiscellaneousL();
       
    61 	void DoTestsInScheldulerLoopL();
       
    62 	void DoStepTests();
       
    63 
       
    64 private:
       
    65 	RFs iFs;
       
    66 	CApaProcess* iProcess;
       
    67 	};
       
    68 
       
    69 class CT_MdrTestCallBackWrapper : public CBase
       
    70 	{
       
    71 public:
       
    72 	CT_MdrTestCallBackWrapper(CT_MdrStep* aTestStep);
       
    73 	~CT_MdrTestCallBackWrapper();
       
    74 	static TInt CallBack(TAny* aPtr);
       
    75 private:
       
    76 	CT_MdrStep* iTestStep;
       
    77 	};
       
    78 
       
    79 _LIT(KT_MdrStep,"T_Mdr");
       
    80 #endif
       
    81