sapi_applicationmanager/tsrc/dev/tappmanprovidernegativetest/inc/tprovidertest.h
changeset 0 14df0fbfcc4e
equal deleted inserted replaced
-1:000000000000 0:14df0fbfcc4e
       
     1 /*
       
     2 * Copyright (c) 2006-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 the License "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:  ?Description
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef APPMANAGERTEST_H 
       
    21 #define APPMANAGERTEST_H 
       
    22 
       
    23 //  INCLUDES
       
    24 #include <StifLogger.h>
       
    25 #include <TestScripterInternal.h>
       
    26 #include <StifTestModule.h>
       
    27 #include <LiwServiceHandler.h>
       
    28 #include <liwgenericparam.h>
       
    29 
       
    30 
       
    31 
       
    32 class CLiwGenericParamList;
       
    33 class CLiwDefaultMap;
       
    34 class CLiwDefaultList;
       
    35 
       
    36 using namespace LIW;
       
    37 
       
    38 extern int getlisttestL(int, char**);
       
    39 /*extern int getlistapplication_test2(int, char**);
       
    40 extern int getlistapplication_test3(int, char**);
       
    41 extern int getlistapplication_test3(int, char**);
       
    42 */
       
    43 //extern int accum2_test(int, char**);
       
    44 // CONSTANTS
       
    45 //const ?type ?constant_var = ?constant;
       
    46 
       
    47 // MACROS
       
    48 //#define ?macro ?macro_def
       
    49 // Logging path
       
    50 _LIT( KappmanagertestLogPath, "\\logs\\testframework\\TappmanagerTest\\" ); 
       
    51 // Log file
       
    52 _LIT( KappmanagertestLogFile, "TappmanagerTest.txt" ); 
       
    53 
       
    54 // FUNCTION PROTOTYPES
       
    55 //?type ?function_name(?arg_list);
       
    56 
       
    57 // FORWARD DECLARATIONS
       
    58 //class ?FORWARD_CLASSNAME;
       
    59 class CProviderTest;
       
    60 
       
    61 // DATA TYPES
       
    62 //enum ?declaration
       
    63 //typedef ?declaration
       
    64 //extern ?data_type;
       
    65 
       
    66 // CLASS DECLARATION
       
    67 
       
    68 /**
       
    69 *  Cstlport_accum test class for STIF Test Framework TestScripter.
       
    70 *  ?other_description_lines
       
    71 *
       
    72 *  @lib ?library
       
    73 *  @since ?Series60_version
       
    74 */
       
    75 NONSHARABLE_CLASS(CProviderTest) : public CScriptBase
       
    76     {
       
    77     public:  // Constructors and destructor
       
    78 
       
    79         /**
       
    80         * Two-phased constructor.
       
    81         */
       
    82         static CProviderTest* NewL( CTestModuleIf& aTestModuleIf );
       
    83 
       
    84         /**
       
    85         * Destructor.
       
    86         */
       
    87         virtual ~CProviderTest();
       
    88 
       
    89     public: // New functions
       
    90 
       
    91         /**
       
    92         * ?member_description.
       
    93         * @since ?Series60_version
       
    94         * @param ?arg1 ?description
       
    95         * @return ?description
       
    96         */
       
    97         //?type ?member_function( ?type ?arg1 );
       
    98 
       
    99     public: // Functions from base classes
       
   100 
       
   101         /**
       
   102         * From CScriptBase Runs a script line.
       
   103         * @since ?Series60_version
       
   104         * @param aItem Script line containing method name and parameters
       
   105         * @return Symbian OS error code
       
   106         */
       
   107         virtual TInt RunMethodL( CStifItemParser& aItem );
       
   108 
       
   109     protected:  // New functions
       
   110 
       
   111         /**
       
   112         * ?member_description.
       
   113         * @since ?Series60_version
       
   114         * @param ?arg1 ?description
       
   115         * @return ?description
       
   116         */
       
   117         //?type ?member_function( ?type ?arg1 );
       
   118 
       
   119     protected:  // Functions from base classes
       
   120 
       
   121         /**
       
   122         * From ?base_class ?member_description
       
   123         */
       
   124         //?type ?member_function();
       
   125 
       
   126     private:
       
   127 
       
   128         /**
       
   129         * C++ default constructor.
       
   130         */
       
   131         CProviderTest( CTestModuleIf& aTestModuleIf );
       
   132 
       
   133         /**
       
   134         * By default Symbian 2nd phase constructor is private.
       
   135         */
       
   136         void ConstructL();
       
   137 
       
   138         // Prohibit copy constructor if not deriving from CBase.
       
   139         // ?classname( const ?classname& );
       
   140         // Prohibit assigment operator if not deriving from CBase.
       
   141         // ?classname& operator=( const ?classname& );
       
   142 
       
   143         /**
       
   144         * Frees all resources allocated from test methods.
       
   145         * @since ?Series60_version
       
   146         */
       
   147         void Delete();
       
   148 
       
   149         /**
       
   150         * Test methods are listed below. 
       
   151         */
       
   152 
       
   153         /**
       
   154         * Example test method.
       
   155         * @since ?Series60_version
       
   156         * @param aItem Script line containing parameters.
       
   157         * @return Symbian OS error code.
       
   158         */
       
   159        TInt Test( CStifItemParser& aItem  );  
       
   160        virtual TInt CheckInputArgumentType( CStifItemParser& aItem  );
       
   161        virtual TInt CheckInputArgumentTypenos60prefix( CStifItemParser& aItem  );
       
   162        virtual TInt CheckGetListManyTimes( CStifItemParser& aItem  );
       
   163        virtual TInt CheckOutputArgumentType( CStifItemParser& aItem  );
       
   164        TInt FillInputParmaeterList(CStifItemParser& aItem , CLiwGenericParamList* input );
       
   165        TInt FillMap( CStifItemParser& aItem , CLiwDefaultMap* aMap  );
       
   166        TInt FillList( CStifItemParser& aItem , CLiwDefaultList* aList  ); 
       
   167        void PrintInputParameterList( CLiwGenericParamList* input  ); 
       
   168        virtual TInt CheckCancel( CStifItemParser& aItem  );
       
   169        
       
   170        
       
   171       
       
   172         
       
   173    /*    virtual TInt getlistapplication_test2L( CStifItemParser& aItem );
       
   174         virtual TInt getlistapplication_test3L( CStifItemParser& aItem );
       
   175     /*   virtual TInt getlistapplicationmms_test1L( CStifItemParser& aItem );
       
   176        virtual TInt getlistapplicationmms_test2L( CStifItemParser& aItem );       
       
   177   */ 
       
   178        
       
   179     public:     // Data
       
   180         // ?one_line_short_description_of_data
       
   181         //?data_declaration;
       
   182 
       
   183     protected:  // Data
       
   184         // ?one_line_short_description_of_data
       
   185         //?data_declaration;
       
   186 
       
   187     private:    // Data
       
   188         
       
   189         // ?one_line_short_description_of_data
       
   190         //?data_declaration;
       
   191 
       
   192         // Reserved pointer for future extension
       
   193         //TAny* iReserved;
       
   194      //static  TInt iCount; 
       
   195 	
       
   196 	
       
   197 	/** Contains the output buffer.*/
       
   198 	HBufC* iOutputBuffer;
       
   199 	
       
   200     public:     // Friend classes
       
   201         //?friend_class_declaration;
       
   202     protected:  // Friend classes
       
   203         //?friend_class_declaration;
       
   204     private:    // Friend classes
       
   205         //?friend_class_declaration;
       
   206         TBool iPrefix;
       
   207 
       
   208     };
       
   209 
       
   210 #endif      // STLPORT_ACCUM_H
       
   211 
       
   212 // End of File