diff -r e8c1ea2c6496 -r 8758140453c0 localisation/apparchitecture/tef/t_abstractnonnativeappsstep.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/localisation/apparchitecture/tef/t_abstractnonnativeappsstep.h Thu Jan 21 12:53:44 2010 +0000 @@ -0,0 +1,72 @@ +// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of the License "Symbian Foundation License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// + + + +/** + @file + @internalComponent - Internal Symbian test code +*/ + + +#ifndef T_ABSTRACT_NONNATIVEAPPS_STEP_H +#define T_ABSTRACT_NONNATIVEAPPS_STEP_H + +#include +#include +#include "testableapalssession.h" + +const TInt KApplicationType = 0x102081A0; +_LIT(KLitNativeExecutable, "z:\\sys\\bin\\dummy.exe"); +_LIT(KLitUpdatedAppsList, "c:\\private\\10003a3f\\UpdatedAppsList.bin"); + +class CT_AbstractNonNativeAppsTestStep : public CTestStep + { +public: + CT_AbstractNonNativeAppsTestStep(); + ~CT_AbstractNonNativeAppsTestStep(); + +public: + struct TTestAppDetails + { + inline TTestAppDetails(TInt aAppUid, const TDesC& aLogicalExecutable, const TDesC& aRegistrationFile) : + iAppUid(aAppUid), + iLogicalExecutable(aLogicalExecutable), + iRegistrationFile(aRegistrationFile) + { + } + TInt iAppUid; + const TDesC& iLogicalExecutable; + const TDesC& iRegistrationFile; + }; + +protected: + void doAbstractNonNativeAppsTestStepPreambleL(); + static void CleanupAndReset(RTestableApaLsSession& aSession, const TTestAppDetails& aApp); + static void CallRegisterL(RTestableApaLsSession& aSession, const TTestAppDetails& aApp); + static void CompleteRegisterL(RTestableApaLsSession& aSession, const TTestAppDetails& aApp); + static void CallDeregisterL(RTestableApaLsSession& aSession, const TTestAppDetails& aApp); + static void CompleteDeregisterL(RTestableApaLsSession& aSession, const TTestAppDetails& aApp); + TBool FilePresent(const TDesC& aFile); + TBool FileAbsent(const TDesC& aFile); + TBool AppPresent(RTestableApaLsSession& aSession, const TTestAppDetails& aApp); + TBool AppAbsent(RTestableApaLsSession& aSession, const TTestAppDetails& aApp); + +protected: + RTestableApaLsSession iSession; + RSmlTestUtils iUtils; + }; + +#endif // T_ABSTRACT_NONNATIVEAPPS_STEP_H