voicerec_plat/new_file_service_api/tsrc/UI_NewFileServiceTest/inc/UI_NewFileServiceTest.h
branchRCL_3
changeset 21 c6bafb5162d8
parent 0 845549f293a7
equal deleted inserted replaced
20:072a5fa0c63b 21:c6bafb5162d8
       
     1 /*
       
     2 * Copyright (c) 2002 - 2007 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:    UI_NewFileServiceTest test class for STIF Test Framework TestScripter.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 #ifndef UI_NewFileServiceTest_H
       
    24 #define UI_NewFileServiceTest_H
       
    25 
       
    26 //  INCLUDES
       
    27 #include <StifLogger.h>
       
    28 #include <TestScripterInternal.h>
       
    29 #include <StifTestModule.h>
       
    30 
       
    31 #include <CNewFileServiceBase.h>
       
    32 #include <NewFileServiceClient.h>
       
    33 #include <AiwGenericParam.h>
       
    34 #include <coeaui.h>
       
    35 #include "CDummyNewFileServiceBase.h"
       
    36 // CONSTANTS
       
    37 //const ?type ?constant_var = ?constant;
       
    38 
       
    39 // MACROS
       
    40 //#define ?macro ?macro_def
       
    41 // Logging path
       
    42 _LIT( KUI_NewFileServiceTestLogPath, "\\logs\\testframework\\UI_NewFileServiceTest\\" );
       
    43 //Data path
       
    44 _LIT( KNewFileServiceTestDataPath, "c:\\testing\\data\\" ); 
       
    45 // Log file
       
    46 _LIT( KUI_NewFileServiceTestLogFile, "UI_NewFileServiceTest.txt" ); 
       
    47 _LIT( KUI_NewFileServiceTestLogFileWithTitle, "UI_NewFileServiceTest_[%S].txt" );
       
    48 
       
    49 // FUNCTION PROTOTYPES
       
    50 //?type ?function_name(?arg_list);
       
    51 
       
    52 // FORWARD DECLARATIONS
       
    53 //class ?FORWARD_CLASSNAME;
       
    54 class CUI_NewFileServiceTest;
       
    55 class CCoeControl;
       
    56 class CNewFileServiceClient;
       
    57 class NewFileServiceFactory;
       
    58 class CNewFileServiceBase;
       
    59 class CEdwinTestControl;
       
    60 class CListBoxTestControl;
       
    61 
       
    62 // DATA TYPES
       
    63 //enum ?declaration
       
    64 //typedef ?declaration
       
    65 //extern ?data_type;
       
    66 
       
    67 // CLASS DECLARATION
       
    68 
       
    69 /**
       
    70 *  CUI_NewFileServiceTest test class for STIF Test Framework TestScripter.
       
    71 *  ?other_description_lines
       
    72 *
       
    73 *  @lib ?library
       
    74 *  @since ?Series60_version
       
    75 */
       
    76 NONSHARABLE_CLASS(CUI_NewFileServiceTest) : public CScriptBase
       
    77     {
       
    78     public:  // Constructors and destructor
       
    79 
       
    80     	enum TIpcNewFileArgumentIndices
       
    81     	    {
       
    82     	    ENewServiceIndexParams = 0,
       
    83     	    ENewServiceIndexFsHandle,
       
    84     	    ENewServiceIndexFileHandle,
       
    85     	    ENewServiceIndexFileName
       
    86     	    };
       
    87         /**
       
    88         * Two-phased constructor.
       
    89         */
       
    90         static CUI_NewFileServiceTest* NewL( CTestModuleIf& aTestModuleIf );
       
    91 
       
    92         /**
       
    93         * Destructor.
       
    94         */
       
    95         virtual ~CUI_NewFileServiceTest();
       
    96 
       
    97     public: // New functions
       
    98 
       
    99         /**
       
   100         * ?member_description.
       
   101         * @since ?Series60_version
       
   102         * @param ?arg1 ?description
       
   103         * @return ?description
       
   104         */
       
   105         //?type ?member_function( ?type ?arg1 );
       
   106 
       
   107     public: // Functions from base classes
       
   108 
       
   109         /**
       
   110         * From CScriptBase Runs a script line.
       
   111         * @since ?Series60_version
       
   112         * @param aItem Script line containing method name and parameters
       
   113         * @return Symbian OS error code
       
   114         */
       
   115         virtual TInt RunMethodL( CStifItemParser& aItem );
       
   116 
       
   117 
       
   118 
       
   119     private:
       
   120 
       
   121         /**
       
   122         * C++ default constructor.
       
   123         */
       
   124         CUI_NewFileServiceTest( CTestModuleIf& aTestModuleIf );
       
   125 
       
   126         /**
       
   127         * By default Symbian 2nd phase constructor is private.
       
   128         */
       
   129         void ConstructL();
       
   130 
       
   131         // Prohibit copy constructor if not deriving from CBase.
       
   132         // ?classname( const ?classname& );
       
   133         // Prohibit assigment operator if not deriving from CBase.
       
   134         // ?classname& operator=( const ?classname& );
       
   135 
       
   136         /**
       
   137         * Frees all resources allocated from test methods.
       
   138         * @since ?Series60_version
       
   139         */
       
   140         void Delete();
       
   141 
       
   142         /**
       
   143         * Test methods are listed below. 
       
   144         */
       
   145 
       
   146         /**
       
   147         * Example test method.
       
   148         * @since ?Series60_version
       
   149         * @param aItem Script line containing parameters.
       
   150         * @return Symbian OS error code.
       
   151         */
       
   152      
       
   153         TInt CNewFileServiceClientCreate( CStifItemParser& aItem );
       
   154         TInt NewFileL( CStifItemParser& aItem );
       
   155         TInt NewFileByUid( CStifItemParser& aItem );
       
   156         TInt NewFileByRFile( CStifItemParser& aItem );
       
   157         TInt NewFileByRFileAndUid( CStifItemParser& aItem );
       
   158         
       
   159         TInt CreateCDummyNewFileServiceBase( CStifItemParser& /*aItem*/ );
       
   160         TInt DestroyCDummyNewFileServiceBase( CStifItemParser& /*aItem*/ );
       
   161         TInt CDummyNewFileServiceBaseGetErrorCode( CStifItemParser& /*aItem*/ );
       
   162         TInt CDummyNewFileServiceBaseSetErrorCode( CStifItemParser& aItem );
       
   163         TInt CDummyNewFileServiceBaseServiceL( CStifItemParser& /*aItem*/ );
       
   164         TInt CDummyNewFileServiceBaseHandleCompletedNewServiceL( CStifItemParser& /*aItem*/ );
       
   165         TInt CDummyNewFileServiceBaseGenericParams( CStifItemParser& /*aItem*/ );
       
   166         
       
   167         //ADD NEW METHOD DEC HERE
       
   168         //[TestMethods] - Do not remove
       
   169 
       
   170     
       
   171     private:    // Friend classes
       
   172         //?friend_class_declaration;
       
   173     	
       
   174     	CNewFileServiceClient* iNewFileServiceClient;
       
   175     	CNewFileServiceBase* iNewFileServiceBase;
       
   176     	CDummyNewFileServiceBase* iDummyNewFileServiceBase;
       
   177     };
       
   178 
       
   179 #endif      // UI_NewFileServiceTest_H
       
   180 
       
   181 // End of File