diff -r c742e1129640 -r aa33c2cb9a50 applicationmanagement/tsrc/tarmappmng/inc/amtest.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/applicationmanagement/tsrc/tarmappmng/inc/amtest.h Tue Jul 06 14:06:19 2010 +0300 @@ -0,0 +1,130 @@ +/* +* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Implementation of applicationmanagement components +* +*/ + + + +#ifndef AMTEST_H +#define AMTEST_H + +// INCLUDES +#include +#include +#include +#include +#include "dmatest.h" + +const TUint KNSmlDMAMAdapterImplUid = 0x10207845; + + + +const TUid KAdapterUid = + { + KNSmlDMAMAdapterImplUid + }; +// Logging path +_LIT( KamtestLogPath, "\\logs\\testframework\\amtest\\" ); +// Log file +_LIT( KamtestLogFile, "amtest.txt" ); + + +// FORWARD DECLARATIONS +class Camtest; + + +// CLASS DECLARATION + +/** +* Camtest test class for STIF Test Framework TestScripter. +* ?other_description_lines +* +* @lib ?library +* @since ?Series60_version +*/ +class Camtest : public Cdmatest + { + public: // Constructors and destructor + + /** + * Two-phased constructor. + */ + static Camtest* NewL( CTestModuleIf& aTestModuleIf ); + + /** + * Destructor. + */ + virtual ~Camtest(); + + public: // Functions from base classes + + /** + * From CScriptBase Runs a script line. + * @since ?Series60_version + * @param aItem Script line containing method name and parameters + * @return Symbian OS error code + */ + virtual TInt RunMethodL( CStifItemParser& aItem ); + + + private: + + /** + * C++ default constructor. + */ + Camtest( CTestModuleIf& aTestModuleIf ); + + /** + * By default Symbian 2nd phase constructor is private. + */ + void ConstructL(); + + // Prohibit copy constructor if not deriving from CBase. + // ?classname( const ?classname& ); + // Prohibit assigment operator if not deriving from CBase. + // ?classname& operator=( const ?classname& ); + + /** + * Frees all resources allocated from test methods. + * @since ?Series60_version + */ + virtual void Delete(); + + /** + * Test methods are listed below. + */ + + /** + * Example test method. + * @since ?Series60_version + * @param aItem Script line containing parameters. + * @return Symbian OS error code. + */ + virtual TInt ExampleL( CStifItemParser& aItem ) ; + virtual TInt DeliverL( CStifItemParser& aItem ) ; + virtual TInt DetailsL( CStifItemParser& aItem ) ; + virtual TInt InstallL( CStifItemParser& aItem ) ; + virtual TInt BareInstallL( CStifItemParser& aItem ) ; + + + private: // Data + HBufC8 *GetNextStringLC ( CStifItemParser& aItem, const TDesC &aName ); + + + }; + +#endif // AMTEST_H + +// End of File