os/ossrv/stdcpp/tsrc/BC/apps/BCCppWrap/inc/BCCppWrap.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/ossrv/stdcpp/tsrc/BC/apps/BCCppWrap/inc/BCCppWrap.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,185 @@
     1.4 +/*
     1.5 +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     1.6 +* All rights reserved.
     1.7 +* This component and the accompanying materials are made available
     1.8 +* under the terms of "Eclipse Public License v1.0"
     1.9 +* which accompanies this distribution, and is available
    1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.11 +*
    1.12 +* Initial Contributors:
    1.13 +* Nokia Corporation - initial contribution.
    1.14 +*
    1.15 +* Contributors:
    1.16 +*
    1.17 +* Description:       
    1.18 +*
    1.19 +*/
    1.20 +
    1.21 +
    1.22 +#ifndef BCCPPWRAP_H
    1.23 +#define BCCPPWRAP_H
    1.24 +
    1.25 +//  INCLUDES
    1.26 +#include <StifLogger.h>
    1.27 +#include <TestScripterInternal.h>
    1.28 +#include <StifTestModule.h>
    1.29 +
    1.30 +
    1.31 +// CONSTANTS
    1.32 +//const ?type ?constant_var = ?constant;
    1.33 +
    1.34 +// MACROS
    1.35 +//#define ?macro ?macro_def
    1.36 +#define TEST_CLASS_VERSION_MAJOR 50
    1.37 +#define TEST_CLASS_VERSION_MINOR 9
    1.38 +#define TEST_CLASS_VERSION_BUILD 06
    1.39 +
    1.40 +// Logging path
    1.41 +_LIT( KBCCppWrapLogPath, "\\logs\\testframework\\BCCppWrap\\" ); 
    1.42 +// Log file
    1.43 +_LIT( KBCCppWrapLogFile, "BCCppWrap.txt" ); 
    1.44 +_LIT( KBCCppWrapLogFileWithTitle, "BCCppWrap_[%S].txt" );
    1.45 +
    1.46 +// FUNCTION PROTOTYPES
    1.47 +//?type ?function_name(?arg_list);
    1.48 +
    1.49 +// FORWARD DECLARATIONS
    1.50 +//class ?FORWARD_CLASSNAME;
    1.51 +class CBCCppWrap;
    1.52 +
    1.53 +// DATA TYPES
    1.54 +//enum ?declaration
    1.55 +//typedef ?declaration
    1.56 +//extern ?data_type;
    1.57 +
    1.58 +// CLASS DECLARATION
    1.59 +
    1.60 +/**
    1.61 +*  CBCCppWrap test class for STIF Test Framework TestScripter.
    1.62 +*  ?other_description_lines
    1.63 +*
    1.64 +*  @lib ?library
    1.65 +*  @since ?Series60_version
    1.66 +*/
    1.67 +NONSHARABLE_CLASS(CBCCppWrap) : public CScriptBase
    1.68 +    {
    1.69 +    public:  // Constructors and destructor
    1.70 +
    1.71 +        /**
    1.72 +        * Two-phased constructor.
    1.73 +        */
    1.74 +        static CBCCppWrap* NewL( CTestModuleIf& aTestModuleIf );
    1.75 +
    1.76 +        /**
    1.77 +        * Destructor.
    1.78 +        */
    1.79 +        virtual ~CBCCppWrap();
    1.80 +
    1.81 +    public: // New functions
    1.82 +
    1.83 +        /**
    1.84 +        * ?member_description.
    1.85 +        * @since ?Series60_version
    1.86 +        * @param ?arg1 ?description
    1.87 +        * @return ?description
    1.88 +        */
    1.89 +        //?type ?member_function( ?type ?arg1 );
    1.90 +
    1.91 +    public: // Functions from base classes
    1.92 +
    1.93 +        /**
    1.94 +        * From CScriptBase Runs a script line.
    1.95 +        * @since ?Series60_version
    1.96 +        * @param aItem Script line containing method name and parameters
    1.97 +        * @return Symbian OS error code
    1.98 +        */
    1.99 +        virtual TInt RunMethodL( CStifItemParser& aItem );
   1.100 +
   1.101 +    protected:  // New functions
   1.102 +
   1.103 +        /**
   1.104 +        * ?member_description.
   1.105 +        * @since ?Series60_version
   1.106 +        * @param ?arg1 ?description
   1.107 +        * @return ?description
   1.108 +        */
   1.109 +        //?type ?member_function( ?type ?arg1 );
   1.110 +
   1.111 +    protected:  // Functions from base classes
   1.112 +
   1.113 +        /**
   1.114 +        * From ?base_class ?member_description
   1.115 +        */
   1.116 +        //?type ?member_function();
   1.117 +
   1.118 +    private:
   1.119 +
   1.120 +        /**
   1.121 +        * C++ default constructor.
   1.122 +        */
   1.123 +        CBCCppWrap( CTestModuleIf& aTestModuleIf );
   1.124 +
   1.125 +        /**
   1.126 +        * By default Symbian 2nd phase constructor is private.
   1.127 +        */
   1.128 +        void ConstructL();
   1.129 +
   1.130 +        // Prohibit copy constructor if not deriving from CBase.
   1.131 +        // ?classname( const ?classname& );
   1.132 +        // Prohibit assigment operator if not deriving from CBase.
   1.133 +        // ?classname& operator=( const ?classname& );
   1.134 +
   1.135 +        /**
   1.136 +        * Frees all resources allocated from test methods.
   1.137 +        * @since ?Series60_version
   1.138 +        */
   1.139 +        void Delete();
   1.140 +
   1.141 +        /**
   1.142 +        * Test methods are listed below. 
   1.143 +        */
   1.144 +
   1.145 +        /**
   1.146 +        * Example test method.
   1.147 +        * @since ?Series60_version
   1.148 +        * @param aItem Script line containing parameters.
   1.149 +        * @return Symbian OS error code.
   1.150 +        */
   1.151 +        virtual TInt TestAPI( CStifItemParser& aItem );
   1.152 +        
   1.153 +        /**
   1.154 +         * Method used to log version of test class
   1.155 +         */
   1.156 +        void SendTestClassVersion();
   1.157 +
   1.158 +        //ADD NEW METHOD DEC HERE
   1.159 +        //[TestMethods] - Do not remove
   1.160 +
   1.161 +    public:     // Data
   1.162 +        // ?one_line_short_description_of_data
   1.163 +        //?data_declaration;
   1.164 +
   1.165 +    protected:  // Data
   1.166 +        // ?one_line_short_description_of_data
   1.167 +        //?data_declaration;
   1.168 +
   1.169 +    private:    // Data
   1.170 +        
   1.171 +        // ?one_line_short_description_of_data
   1.172 +        //?data_declaration;
   1.173 +
   1.174 +        // Reserved pointer for future extension
   1.175 +        //TAny* iReserved;
   1.176 +
   1.177 +    public:     // Friend classes
   1.178 +        //?friend_class_declaration;
   1.179 +    protected:  // Friend classes
   1.180 +        //?friend_class_declaration;
   1.181 +    private:    // Friend classes
   1.182 +        //?friend_class_declaration;
   1.183 +
   1.184 +    };
   1.185 +
   1.186 +#endif      // BCCPPWRAP_H
   1.187 +
   1.188 +// End of File