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