sapi_logging/tsrc/testing/tloggingservicetest/inc/tloggingservicetest.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 
       
    21 #ifndef TLOGGINGSERVICETEST_H
       
    22 #define TLOGGINGSERVICETEST_H
       
    23 
       
    24 //  INCLUDES
       
    25 #include <StifLogger.h>
       
    26 #include <TestScripterInternal.h>
       
    27 #include <StifTestModule.h>
       
    28 
       
    29 
       
    30 // CONSTANTS
       
    31 //const ?type ?constant_var = ?constant;
       
    32 
       
    33 // MACROS
       
    34 //#define ?macro ?macro_def
       
    35 // Logging path
       
    36 _LIT( KtloggingservicetestLogPath, "\\logs\\testframework\\tloggingservicetest\\" ); 
       
    37 // Log file
       
    38 _LIT( KtloggingservicetestLogFile, "tloggingservicetest.txt" ); 
       
    39 _LIT( KtloggingservicetestLogFileWithTitle, "tloggingservicetest_[%S].txt" );
       
    40 
       
    41 // FUNCTION PROTOTYPES
       
    42 //?type ?function_name(?arg_list);
       
    43 
       
    44 // FORWARD DECLARATIONS
       
    45 //class ?FORWARD_CLASSNAME;
       
    46 class Ctloggingservicetest;
       
    47 
       
    48 class MLoggingCallback ;
       
    49 class CLogsEvent ;
       
    50 class CActiveSchedulerWait ;
       
    51 class MLogCallback;
       
    52 // DATA TYPES
       
    53 //enum ?declaration
       
    54 //typedef ?declaration
       
    55 //extern ?data_type;
       
    56 
       
    57 // CLASS DECLARATION
       
    58 
       
    59 /**
       
    60 *  Ctloggingservicetest test class for STIF Test Framework TestScripter.
       
    61 *  ?other_description_lines
       
    62 *
       
    63 *  @lib ?library
       
    64 *  @since ?Series60_version
       
    65 */
       
    66 NONSHARABLE_CLASS(Ctloggingservicetest) : public CScriptBase
       
    67     {
       
    68     public:  // Constructors and destructor
       
    69 
       
    70         /**
       
    71         * Two-phased constructor.
       
    72         */
       
    73         static Ctloggingservicetest* NewL( CTestModuleIf& aTestModuleIf );
       
    74 
       
    75         /**
       
    76         * Destructor.
       
    77         */
       
    78         virtual ~Ctloggingservicetest();
       
    79 
       
    80     public: // New functions
       
    81 
       
    82         /**
       
    83         * ?member_description.
       
    84         * @since ?Series60_version
       
    85         * @param ?arg1 ?description
       
    86         * @return ?description
       
    87         */
       
    88         //?type ?member_function( ?type ?arg1 );
       
    89 
       
    90     public: // Functions from base classes
       
    91 
       
    92         /**
       
    93         * From CScriptBase Runs a script line.
       
    94         * @since ?Series60_version
       
    95         * @param aItem Script line containing method name and parameters
       
    96         * @return Symbian OS error code
       
    97         */
       
    98         virtual TInt RunMethodL( CStifItemParser& aItem );
       
    99 
       
   100     protected:  // New functions
       
   101 
       
   102         /**
       
   103         * ?member_description.
       
   104         * @since ?Series60_version
       
   105         * @param ?arg1 ?description
       
   106         * @return ?description
       
   107         */
       
   108         //?type ?member_function( ?type ?arg1 );
       
   109 
       
   110     protected:  // Functions from base classes
       
   111 
       
   112         /**
       
   113         * From ?base_class ?member_description
       
   114         */
       
   115         //?type ?member_function();
       
   116 
       
   117     private:
       
   118 
       
   119         /**
       
   120         * C++ default constructor.
       
   121         */
       
   122         Ctloggingservicetest( CTestModuleIf& aTestModuleIf );
       
   123 
       
   124         /**
       
   125         * By default Symbian 2nd phase constructor is private.
       
   126         */
       
   127         void ConstructL();
       
   128 
       
   129         // Prohibit copy constructor if not deriving from CBase.
       
   130         // ?classname( const ?classname& );
       
   131         // Prohibit assigment operator if not deriving from CBase.
       
   132         // ?classname& operator=( const ?classname& );
       
   133 
       
   134         /**
       
   135         * Frees all resources allocated from test methods.
       
   136         * @since ?Series60_version
       
   137         */
       
   138         void Delete();
       
   139 
       
   140         /**
       
   141         * Test methods are listed below. 
       
   142         */
       
   143 
       
   144         /**
       
   145         * Example test method.
       
   146         * @since ?Series60_version
       
   147         * @param aItem Script line containing parameters.
       
   148         * @return Symbian OS error code.
       
   149         */
       
   150         virtual TInt AddeventS1( );
       
   151                 virtual TInt AddeventS2( );
       
   152 
       
   153         virtual TInt AddeventAS1( );
       
   154         virtual TInt AddeventAS2( );
       
   155         virtual TInt Isbusy();
       
   156         virtual TInt Getlist1( );
       
   157         virtual TInt Getlist2( );
       
   158            virtual TInt Getlist4( );
       
   159 
       
   160          virtual TInt Getevent1( );
       
   161          virtual TInt Getevent2( );
       
   162          virtual TInt Getevent3( );
       
   163          virtual TInt Getevent4( );
       
   164          virtual TInt Getevent5( );
       
   165           virtual TInt Getrecent1( );
       
   166           virtual TInt Getrecent2( );
       
   167 
       
   168 
       
   169 
       
   170 
       
   171 
       
   172 
       
   173         //ADD NEW METHOD DEC HERE
       
   174         //[TestMethods] - Do not remove
       
   175 
       
   176     public:     // Data
       
   177         // ?one_line_short_description_of_data
       
   178         //?data_declaration;
       
   179 
       
   180     protected:  // Data
       
   181         // ?one_line_short_description_of_data
       
   182         //?data_declaration;
       
   183 
       
   184     private:    // Data
       
   185         
       
   186         // ?one_line_short_description_of_data
       
   187         //?data_declaration;
       
   188 
       
   189         // Reserved pointer for future extension
       
   190         //TAny* iReserved;
       
   191 
       
   192     public:     // Friend classes
       
   193         //?friend_class_declaration;
       
   194     protected:  // Friend classes
       
   195         //?friend_class_declaration;
       
   196     private:    // Friend classes
       
   197         //?friend_class_declaration;
       
   198 
       
   199     };
       
   200 
       
   201 
       
   202 TInt addevents1(void);
       
   203 TInt addevents2(void);
       
   204 
       
   205 TInt addeventas1(void);
       
   206 TInt addeventas2(void);
       
   207 TInt isbusy(void);
       
   208 TInt getlist1(void);
       
   209 TInt getlist2(void);
       
   210 TInt getlist4(void);
       
   211 TInt getevent1(void);
       
   212 TInt getevent2(void);
       
   213 TInt getevent3(void);
       
   214 TInt getevent4(void);
       
   215 TInt getevent5(void);
       
   216 TInt getrecent1(void);
       
   217 TInt getrecent2(void);
       
   218 
       
   219 
       
   220 
       
   221 #endif      // TLOGGINGSERVICETEST_H
       
   222 
       
   223 
       
   224 
       
   225 
       
   226 // End of File