os/ossrv/stdcpp/tsrc/BC/apps/BCException/inc/BCException.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
sl@0
     1
/*
sl@0
     2
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     3
* All rights reserved.
sl@0
     4
* This component and the accompanying materials are made available
sl@0
     5
* under the terms of "Eclipse Public License v1.0"
sl@0
     6
* which accompanies this distribution, and is available
sl@0
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     8
*
sl@0
     9
* Initial Contributors:
sl@0
    10
* Nokia Corporation - initial contribution.
sl@0
    11
*
sl@0
    12
* Contributors:
sl@0
    13
*
sl@0
    14
* Description:       
sl@0
    15
*
sl@0
    16
*/
sl@0
    17
sl@0
    18
sl@0
    19
#ifndef BCEXCEPTION_H
sl@0
    20
#define BCEXCEPTION_H
sl@0
    21
sl@0
    22
//  INCLUDES
sl@0
    23
#include <StifLogger.h>
sl@0
    24
#include <TestScripterInternal.h>
sl@0
    25
#include <StifTestModule.h>
sl@0
    26
sl@0
    27
sl@0
    28
// CONSTANTS
sl@0
    29
//const ?type ?constant_var = ?constant;
sl@0
    30
sl@0
    31
// MACROS
sl@0
    32
//#define ?macro ?macro_def
sl@0
    33
#define TEST_CLASS_VERSION_MAJOR 50
sl@0
    34
#define TEST_CLASS_VERSION_MINOR 9
sl@0
    35
#define TEST_CLASS_VERSION_BUILD 06
sl@0
    36
sl@0
    37
// Logging path
sl@0
    38
_LIT( KBCExceptionLogPath, "\\logs\\testframework\\BCException\\" ); 
sl@0
    39
// Log file
sl@0
    40
_LIT( KBCExceptionLogFile, "BCException.txt" ); 
sl@0
    41
_LIT( KBCExceptionLogFileWithTitle, "BCException_[%S].txt" );
sl@0
    42
sl@0
    43
// FUNCTION PROTOTYPES
sl@0
    44
//?type ?function_name(?arg_list);
sl@0
    45
sl@0
    46
// FORWARD DECLARATIONS
sl@0
    47
//class ?FORWARD_CLASSNAME;
sl@0
    48
class CBCException;
sl@0
    49
sl@0
    50
// DATA TYPES
sl@0
    51
//enum ?declaration
sl@0
    52
//typedef ?declaration
sl@0
    53
//extern ?data_type;
sl@0
    54
sl@0
    55
// CLASS DECLARATION
sl@0
    56
sl@0
    57
/**
sl@0
    58
*  CBCException test class for STIF Test Framework TestScripter.
sl@0
    59
*  ?other_description_lines
sl@0
    60
*
sl@0
    61
*  @lib ?library
sl@0
    62
*  @since ?Series60_version
sl@0
    63
*/
sl@0
    64
NONSHARABLE_CLASS(CBCException) : public CScriptBase
sl@0
    65
    {
sl@0
    66
    public:  // Constructors and destructor
sl@0
    67
sl@0
    68
        /**
sl@0
    69
        * Two-phased constructor.
sl@0
    70
        */
sl@0
    71
        static CBCException* NewL( CTestModuleIf& aTestModuleIf );
sl@0
    72
sl@0
    73
        /**
sl@0
    74
        * Destructor.
sl@0
    75
        */
sl@0
    76
        virtual ~CBCException();
sl@0
    77
sl@0
    78
    public: // New functions
sl@0
    79
sl@0
    80
        /**
sl@0
    81
        * ?member_description.
sl@0
    82
        * @since ?Series60_version
sl@0
    83
        * @param ?arg1 ?description
sl@0
    84
        * @return ?description
sl@0
    85
        */
sl@0
    86
        //?type ?member_function( ?type ?arg1 );
sl@0
    87
sl@0
    88
    public: // Functions from base classes
sl@0
    89
sl@0
    90
        /**
sl@0
    91
        * From CScriptBase Runs a script line.
sl@0
    92
        * @since ?Series60_version
sl@0
    93
        * @param aItem Script line containing method name and parameters
sl@0
    94
        * @return Symbian OS error code
sl@0
    95
        */
sl@0
    96
        virtual TInt RunMethodL( CStifItemParser& aItem );
sl@0
    97
sl@0
    98
    protected:  // New functions
sl@0
    99
sl@0
   100
        /**
sl@0
   101
        * ?member_description.
sl@0
   102
        * @since ?Series60_version
sl@0
   103
        * @param ?arg1 ?description
sl@0
   104
        * @return ?description
sl@0
   105
        */
sl@0
   106
        //?type ?member_function( ?type ?arg1 );
sl@0
   107
sl@0
   108
    protected:  // Functions from base classes
sl@0
   109
sl@0
   110
        /**
sl@0
   111
        * From ?base_class ?member_description
sl@0
   112
        */
sl@0
   113
        //?type ?member_function();
sl@0
   114
sl@0
   115
    private:
sl@0
   116
sl@0
   117
        /**
sl@0
   118
        * C++ default constructor.
sl@0
   119
        */
sl@0
   120
        CBCException( CTestModuleIf& aTestModuleIf );
sl@0
   121
sl@0
   122
        /**
sl@0
   123
        * By default Symbian 2nd phase constructor is private.
sl@0
   124
        */
sl@0
   125
        void ConstructL();
sl@0
   126
sl@0
   127
        // Prohibit copy constructor if not deriving from CBase.
sl@0
   128
        // ?classname( const ?classname& );
sl@0
   129
        // Prohibit assigment operator if not deriving from CBase.
sl@0
   130
        // ?classname& operator=( const ?classname& );
sl@0
   131
sl@0
   132
        /**
sl@0
   133
        * Frees all resources allocated from test methods.
sl@0
   134
        * @since ?Series60_version
sl@0
   135
        */
sl@0
   136
        void Delete();
sl@0
   137
sl@0
   138
        /**
sl@0
   139
        * Test methods are listed below. 
sl@0
   140
        */
sl@0
   141
sl@0
   142
        /**
sl@0
   143
        * Example test method.
sl@0
   144
        * @since ?Series60_version
sl@0
   145
        * @param aItem Script line containing parameters.
sl@0
   146
        * @return Symbian OS error code.
sl@0
   147
        */
sl@0
   148
        virtual TInt TestAPI( CStifItemParser& aItem );
sl@0
   149
        
sl@0
   150
        /**
sl@0
   151
         * Method used to log version of test class
sl@0
   152
         */
sl@0
   153
        void SendTestClassVersion();
sl@0
   154
sl@0
   155
        //ADD NEW METHOD DEC HERE
sl@0
   156
        //[TestMethods] - Do not remove
sl@0
   157
sl@0
   158
    public:     // Data
sl@0
   159
        // ?one_line_short_description_of_data
sl@0
   160
        //?data_declaration;
sl@0
   161
sl@0
   162
    protected:  // Data
sl@0
   163
        // ?one_line_short_description_of_data
sl@0
   164
        //?data_declaration;
sl@0
   165
sl@0
   166
    private:    // Data
sl@0
   167
        
sl@0
   168
        // ?one_line_short_description_of_data
sl@0
   169
        //?data_declaration;
sl@0
   170
sl@0
   171
        // Reserved pointer for future extension
sl@0
   172
        //TAny* iReserved;
sl@0
   173
sl@0
   174
    public:     // Friend classes
sl@0
   175
        //?friend_class_declaration;
sl@0
   176
    protected:  // Friend classes
sl@0
   177
        //?friend_class_declaration;
sl@0
   178
    private:    // Friend classes
sl@0
   179
        //?friend_class_declaration;
sl@0
   180
sl@0
   181
    };
sl@0
   182
sl@0
   183
#endif      // BCEXCEPTION_H
sl@0
   184
sl@0
   185
// End of File