sl@0: /* sl@0: * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: sl@0: * sl@0: */ sl@0: sl@0: sl@0: #ifndef BCCPPWRAP_H sl@0: #define BCCPPWRAP_H sl@0: sl@0: // INCLUDES sl@0: #include sl@0: #include sl@0: #include sl@0: sl@0: sl@0: // CONSTANTS sl@0: //const ?type ?constant_var = ?constant; sl@0: sl@0: // MACROS sl@0: //#define ?macro ?macro_def sl@0: #define TEST_CLASS_VERSION_MAJOR 50 sl@0: #define TEST_CLASS_VERSION_MINOR 9 sl@0: #define TEST_CLASS_VERSION_BUILD 06 sl@0: sl@0: // Logging path sl@0: _LIT( KBCCppWrapLogPath, "\\logs\\testframework\\BCCppWrap\\" ); sl@0: // Log file sl@0: _LIT( KBCCppWrapLogFile, "BCCppWrap.txt" ); sl@0: _LIT( KBCCppWrapLogFileWithTitle, "BCCppWrap_[%S].txt" ); sl@0: sl@0: // FUNCTION PROTOTYPES sl@0: //?type ?function_name(?arg_list); sl@0: sl@0: // FORWARD DECLARATIONS sl@0: //class ?FORWARD_CLASSNAME; sl@0: class CBCCppWrap; sl@0: sl@0: // DATA TYPES sl@0: //enum ?declaration sl@0: //typedef ?declaration sl@0: //extern ?data_type; sl@0: sl@0: // CLASS DECLARATION sl@0: sl@0: /** sl@0: * CBCCppWrap test class for STIF Test Framework TestScripter. sl@0: * ?other_description_lines sl@0: * sl@0: * @lib ?library sl@0: * @since ?Series60_version sl@0: */ sl@0: NONSHARABLE_CLASS(CBCCppWrap) : public CScriptBase sl@0: { sl@0: public: // Constructors and destructor sl@0: sl@0: /** sl@0: * Two-phased constructor. sl@0: */ sl@0: static CBCCppWrap* NewL( CTestModuleIf& aTestModuleIf ); sl@0: sl@0: /** sl@0: * Destructor. sl@0: */ sl@0: virtual ~CBCCppWrap(); sl@0: sl@0: public: // New functions sl@0: sl@0: /** sl@0: * ?member_description. sl@0: * @since ?Series60_version sl@0: * @param ?arg1 ?description sl@0: * @return ?description sl@0: */ sl@0: //?type ?member_function( ?type ?arg1 ); sl@0: sl@0: public: // Functions from base classes sl@0: sl@0: /** sl@0: * From CScriptBase Runs a script line. sl@0: * @since ?Series60_version sl@0: * @param aItem Script line containing method name and parameters sl@0: * @return Symbian OS error code sl@0: */ sl@0: virtual TInt RunMethodL( CStifItemParser& aItem ); sl@0: sl@0: protected: // New functions sl@0: sl@0: /** sl@0: * ?member_description. sl@0: * @since ?Series60_version sl@0: * @param ?arg1 ?description sl@0: * @return ?description sl@0: */ sl@0: //?type ?member_function( ?type ?arg1 ); sl@0: sl@0: protected: // Functions from base classes sl@0: sl@0: /** sl@0: * From ?base_class ?member_description sl@0: */ sl@0: //?type ?member_function(); sl@0: sl@0: private: sl@0: sl@0: /** sl@0: * C++ default constructor. sl@0: */ sl@0: CBCCppWrap( CTestModuleIf& aTestModuleIf ); sl@0: sl@0: /** sl@0: * By default Symbian 2nd phase constructor is private. sl@0: */ sl@0: void ConstructL(); sl@0: sl@0: // Prohibit copy constructor if not deriving from CBase. sl@0: // ?classname( const ?classname& ); sl@0: // Prohibit assigment operator if not deriving from CBase. sl@0: // ?classname& operator=( const ?classname& ); sl@0: sl@0: /** sl@0: * Frees all resources allocated from test methods. sl@0: * @since ?Series60_version sl@0: */ sl@0: void Delete(); sl@0: sl@0: /** sl@0: * Test methods are listed below. sl@0: */ sl@0: sl@0: /** sl@0: * Example test method. sl@0: * @since ?Series60_version sl@0: * @param aItem Script line containing parameters. sl@0: * @return Symbian OS error code. sl@0: */ sl@0: virtual TInt TestAPI( CStifItemParser& aItem ); sl@0: sl@0: /** sl@0: * Method used to log version of test class sl@0: */ sl@0: void SendTestClassVersion(); sl@0: sl@0: //ADD NEW METHOD DEC HERE sl@0: //[TestMethods] - Do not remove sl@0: sl@0: public: // Data sl@0: // ?one_line_short_description_of_data sl@0: //?data_declaration; sl@0: sl@0: protected: // Data sl@0: // ?one_line_short_description_of_data sl@0: //?data_declaration; sl@0: sl@0: private: // Data sl@0: sl@0: // ?one_line_short_description_of_data sl@0: //?data_declaration; sl@0: sl@0: // Reserved pointer for future extension sl@0: //TAny* iReserved; sl@0: sl@0: public: // Friend classes sl@0: //?friend_class_declaration; sl@0: protected: // Friend classes sl@0: //?friend_class_declaration; sl@0: private: // Friend classes sl@0: //?friend_class_declaration; sl@0: sl@0: }; sl@0: sl@0: #endif // BCCPPWRAP_H sl@0: sl@0: // End of File