sapi_applicationmanager/tsrc/testing/tappmgrtest/inc/tappmgrtest.h
changeset 0 14df0fbfcc4e
equal deleted inserted replaced
-1:000000000000 0:14df0fbfcc4e
       
     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 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 TAPPMANAGER_TEST_H
       
    21 #define TAPPMANAGER_TEST_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <StifLogger.h>
       
    25 #include <TestScripterInternal.h>
       
    26 #include <StifTestModule.h>
       
    27 
       
    28 
       
    29 // CONSTANTS
       
    30 //const ?type ?constant_var = ?constant;
       
    31 
       
    32 // MACROS
       
    33 //#define ?macro ?macro_def
       
    34 // Logging path
       
    35 _LIT( KtappmgrtestLogPath, "\\logs\\testframework\\tappmgrtest\\" ); 
       
    36 // Log file
       
    37 _LIT( KtappmgrtestLogFile, "tappmgrtest.txt" ); 
       
    38 _LIT( KtappmgrtestLogFileWithTitle, "tappmgrtest_[%S].txt" );
       
    39 
       
    40 // FUNCTION PROTOTYPES
       
    41 //?type ?function_name(?arg_list);
       
    42 
       
    43 // FORWARD DECLARATIONS
       
    44 //class ?FORWARD_CLASSNAME;
       
    45 class CAppManagerTest;
       
    46 
       
    47 // DATA TYPES
       
    48 //enum ?declaration
       
    49 //typedef ?declaration
       
    50 //extern ?data_type;
       
    51 
       
    52 // CLASS DECLARATION
       
    53 
       
    54 /**
       
    55 *  Ctappmanager_test test class for STIF Test Framework TestScripter.
       
    56 *  ?other_description_lines
       
    57 *
       
    58 *  @lib ?library
       
    59 *  @since ?Series60_version
       
    60 */
       
    61 NONSHARABLE_CLASS(CAppManagerTest) : public CScriptBase
       
    62     {
       
    63     public:  // Constructors and destructor
       
    64 
       
    65         /**
       
    66         * Two-phased constructor.
       
    67         */
       
    68         static CAppManagerTest* NewL( CTestModuleIf& aTestModuleIf );
       
    69 
       
    70         /**
       
    71         * Destructor.
       
    72         */
       
    73         virtual ~CAppManagerTest();
       
    74 
       
    75     public: // New functions
       
    76 
       
    77         /**
       
    78         * ?member_description.
       
    79         * @since ?Series60_version
       
    80         * @param ?arg1 ?description
       
    81         * @return ?description
       
    82         */
       
    83         //?type ?member_function( ?type ?arg1 );
       
    84 
       
    85     public: // Functions from base classes
       
    86 
       
    87         /**
       
    88         * From CScriptBase Runs a script line.
       
    89         * @since ?Series60_version
       
    90         * @param aItem Script line containing method name and parameters
       
    91         * @return Symbian OS error code
       
    92         */
       
    93         virtual TInt RunMethodL( CStifItemParser& aItem );
       
    94         void killapp(TBuf<30>);
       
    95     protected:  // New functions
       
    96 
       
    97         /**
       
    98         * ?member_description.
       
    99         * @since ?Series60_version
       
   100         * @param ?arg1 ?description
       
   101         * @return ?description
       
   102         */
       
   103         //?type ?member_function( ?type ?arg1 );
       
   104 
       
   105     protected:  // Functions from base classes
       
   106 
       
   107         /**
       
   108         * From ?base_class ?member_description
       
   109         */
       
   110         //?type ?member_function();
       
   111 
       
   112     private:
       
   113 
       
   114         /**
       
   115         * C++ default constructor.
       
   116         */
       
   117         CAppManagerTest( CTestModuleIf& aTestModuleIf );
       
   118 
       
   119         /**
       
   120         * By default Symbian 2nd phase constructor is private.
       
   121         */
       
   122         void ConstructL();
       
   123 
       
   124         // Prohibit copy constructor if not deriving from CBase.
       
   125         // ?classname( const ?classname& );
       
   126         // Prohibit assigment operator if not deriving from CBase.
       
   127         // ?classname& operator=( const ?classname& );
       
   128 
       
   129         /**
       
   130         * Frees all resources allocated from test methods.
       
   131         * @since ?Series60_version
       
   132         */
       
   133         void Delete();
       
   134 
       
   135         /**
       
   136         * Test methods are listed below. 
       
   137         */
       
   138 
       
   139         /**
       
   140         * Example test method.
       
   141         * @since ?Series60_version
       
   142         * @param aItem Script line containing parameters.
       
   143         * @return Symbian OS error code.
       
   144         */
       
   145          
       
   146        virtual TInt getlisttestL( CStifItemParser& aItem );
       
   147        virtual TInt launchAppL( CStifItemParser&  );
       
   148        virtual TInt launchJarL( CStifItemParser&  );
       
   149        virtual TInt launchDocL( CStifItemParser&  );
       
   150        virtual TInt getlistnegativetestL( CStifItemParser& aItem  );
       
   151         TInt ConvertHexStringToInt32(const TDesC& aHexString,TInt32& aInt32 );
       
   152        TInt CancellaunchAppL( CStifItemParser& aItem  );
       
   153    /*    virtual TInt getlistapplication_test2L( CStifItemParser& aItem );
       
   154         virtual TInt getlistapplication_test3L( CStifItemParser& aItem );
       
   155     /*   virtual TInt getlistapplicationmms_test1L( CStifItemParser& aItem );
       
   156        virtual TInt getlistapplicationmms_test2L( CStifItemParser& aItem );       
       
   157   */ 
       
   158        
       
   159     public:     // Data
       
   160         // ?one_line_short_description_of_data
       
   161         //?data_declaration;
       
   162 
       
   163     protected:  // Data
       
   164         // ?one_line_short_description_of_data
       
   165         //?data_declaration;
       
   166 
       
   167     private:    // Data
       
   168         
       
   169         // ?one_line_short_description_of_data
       
   170         //?data_declaration;
       
   171 
       
   172         // Reserved pointer for future extension
       
   173         //TAny* iReserved;
       
   174      //static  TInt iCount; 
       
   175 		
       
   176     public:     // Friend classes
       
   177         //?friend_class_declaration;
       
   178     protected:  // Friend classes
       
   179         //?friend_class_declaration;
       
   180     private:    // Friend classes
       
   181         //?friend_class_declaration;
       
   182 
       
   183     };
       
   184 #endif      // TAPPMANAGER_TEST_H
       
   185 
       
   186 // End of File