sapi_logging/tsrc/dev/tloggingservice/inc/tlogging.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 TLOGGING_H
       
    22 #define TLOGGING_H
       
    23 
       
    24 //  INCLUDES
       
    25 #include <StifLogger.h>
       
    26 #include <TestScripterInternal.h>
       
    27 #include <StifTestModule.h>
       
    28 #include <logview.h>
       
    29 #include "loggingservice.h"
       
    30 
       
    31 
       
    32 // CONSTANTS
       
    33 //const ?type ?constant_var = ?constant;
       
    34 
       
    35 // MACROS
       
    36 //#define ?macro ?macro_def
       
    37 // Logging path
       
    38 _LIT( KtloggingLogPath, "\\logs\\testframework\\tlogging\\" ); 
       
    39 // Log file
       
    40 _LIT( KtloggingLogFile, "tlogging.txt" ); 
       
    41 
       
    42 // FUNCTION PROTOTYPES
       
    43 //?type ?function_name(?arg_list);
       
    44 
       
    45 // FORWARD DECLARATIONS
       
    46 //class ?FORWARD_CLASSNAME;
       
    47 class Ctlogging;
       
    48 class MLoggingCallback ;
       
    49 
       
    50 // DATA TYPES
       
    51 //enum ?declaration
       
    52 //typedef ?declaration
       
    53 //extern ?data_type;
       
    54 
       
    55 // CLASS DECLARATION
       
    56 
       
    57 
       
    58 /**
       
    59 *  Ctlogging test class for STIF Test Framework TestScripter.
       
    60 *  ?other_description_lines
       
    61 *
       
    62 *  @lib ?library
       
    63 *  @since ?Series60_version
       
    64 */
       
    65 NONSHARABLE_CLASS(Ctlogging) : public CScriptBase
       
    66     {
       
    67     public:  // Constructors and destructor
       
    68 
       
    69         /**
       
    70         * Two-phased constructor.
       
    71         */
       
    72         static Ctlogging* NewL( CTestModuleIf& aTestModuleIf );
       
    73 
       
    74         /**
       
    75         * Destructor.
       
    76         */
       
    77         virtual ~Ctlogging();
       
    78 
       
    79     public: // New functions
       
    80 
       
    81         /**
       
    82         * ?member_description.
       
    83         * @since ?Series60_version
       
    84         * @param ?arg1 ?description
       
    85         * @return ?description
       
    86         */
       
    87         //?type ?member_function( ?type ?arg1 );
       
    88 
       
    89     public: // Functions from base classes
       
    90 
       
    91         /**
       
    92         * From CScriptBase Runs a script line.
       
    93         * @since ?Series60_version
       
    94         * @param aItem Script line containing method name and parameters
       
    95         * @return Symbian OS error code
       
    96         */
       
    97         virtual TInt RunMethodL( CStifItemParser& aItem );
       
    98 
       
    99     protected:  // New functions
       
   100 
       
   101         /**
       
   102         * ?member_description.
       
   103         * @since ?Series60_version
       
   104         * @param ?arg1 ?description
       
   105         * @return ?description
       
   106         */
       
   107         //?type ?member_function( ?type ?arg1 );
       
   108 
       
   109     protected:  // Functions from base classes
       
   110 
       
   111         /**
       
   112         * From ?base_class ?member_description
       
   113         */
       
   114         //?type ?member_function();
       
   115 
       
   116     private:
       
   117 
       
   118         /**
       
   119         * C++ default constructor.
       
   120         */
       
   121         Ctlogging( CTestModuleIf& aTestModuleIf );
       
   122 
       
   123         /**
       
   124         * By default Symbian 2nd phase constructor is private.
       
   125         */
       
   126         void ConstructL();
       
   127 
       
   128         // Prohibit copy constructor if not deriving from CBase.
       
   129         // ?classname( const ?classname& );
       
   130         // Prohibit assigment operator if not deriving from CBase.
       
   131         // ?classname& operator=( const ?classname& );
       
   132 
       
   133         /**
       
   134         * Frees all resources allocated from test methods.
       
   135         * @since ?Series60_version
       
   136         */
       
   137         void Delete();
       
   138 
       
   139         /**
       
   140         * Test methods are listed below. 
       
   141         */
       
   142 
       
   143         /**
       
   144         * Example test method.
       
   145         * @since ?Series60_version
       
   146         * @param aItem Script line containing parameters.
       
   147         * @return Symbian OS error code.
       
   148         */
       
   149         //virtual TInt ExampleL( CStifItemParser& aItem );
       
   150         //ADD NEW METHOD DEC HERE
       
   151         //virtual TInt AddEventTest(CStifItemParser& aItem) ;
       
   152         virtual TInt GetListSimpleL(CStifItemParser& aItem) ;
       
   153         virtual TInt GetListAsyncL(CStifItemParser& aItem) ;
       
   154         
       
   155         // addsynctestcase
       
   156         virtual TInt AddEventSync1(CStifItemParser& aItem) ;
       
   157         virtual TInt AddEventSync2(CStifItemParser& aItem) ;
       
   158         virtual TInt AddEventSync3(CStifItemParser& aItem) ;
       
   159         virtual TInt AddEventSync4(CStifItemParser& aItem) ;
       
   160         virtual TInt AddEventSync5(CStifItemParser& aItem) ;
       
   161         
       
   162         //addasynctestcase
       
   163         virtual TInt AddEventAsync1(CStifItemParser& aItem) ;
       
   164         virtual TInt AddEventAsync2(CStifItemParser& aItem) ;
       
   165         virtual TInt AddEventAsync3(CStifItemParser& aItem) ;
       
   166         virtual TInt AddEventAsync4(CStifItemParser& aItem) ;
       
   167         virtual TInt AddEventAsync5(CStifItemParser& aItem) ;
       
   168         
       
   169         //deletesync
       
   170         virtual TInt DeleteEventSync(CStifItemParser& aItem) ;
       
   171         
       
   172         //deleteasync
       
   173         virtual TInt DeleteEventAsync(CStifItemParser& aItem) ;
       
   174         
       
   175         virtual TInt ConcurrentTestL1(CStifItemParser& aItem);
       
   176         virtual TInt ConcurrentTestL2(CStifItemParser& aItem);
       
   177         virtual TInt ConcurrentTestL3(CStifItemParser& aItem);
       
   178         virtual TInt ConcurrentTestL4(CStifItemParser& aItem);
       
   179         virtual TInt ConcurrentTestL5(CStifItemParser& aItem);
       
   180         virtual TInt ConcurrentTestL6(CStifItemParser& aItem);
       
   181         
       
   182         virtual TInt GetRecentListL1(CStifItemParser& aItem);
       
   183         virtual TInt GetRecentListL2(CStifItemParser& aItem);
       
   184         virtual TInt GetRecentListL3(CStifItemParser& aItem);
       
   185         
       
   186         virtual TInt GetEventL1(CStifItemParser& aItem);
       
   187         virtual TInt GetEventL2(CStifItemParser& aItem);
       
   188         virtual TInt GetEventL3(CStifItemParser& aItem);
       
   189        
       
   190 
       
   191     public: 
       
   192      /**
       
   193       * Add event test
       
   194       */
       
   195      // TInt AddEventTest(void) ;
       
   196       
       
   197 
       
   198     protected:  // Data
       
   199         // ?one_line_short_description_of_data
       
   200         //?data_declaration;
       
   201 
       
   202     private:    // Data
       
   203         
       
   204         // ?one_line_short_description_of_data
       
   205         //?data_declaration;
       
   206 
       
   207         // Reserved pointer for future extension
       
   208         //TAny* iReserved;
       
   209 
       
   210     public:     // Friend classes
       
   211         //?friend_class_declaration;
       
   212     protected:  // Friend classes
       
   213         //?friend_class_declaration;
       
   214     private:    // Friend classes
       
   215         //?friend_class_declaration;
       
   216 
       
   217     };
       
   218     
       
   219   
       
   220 TInt GetListSimple(void) ;  
       
   221 TInt getlistasyncL1(void) ;
       
   222 
       
   223 TInt concurrenttest1(void) ;
       
   224 TInt concurrenttest2(void) ;
       
   225 TInt concurrenttest3(void) ;
       
   226 TInt concurrenttest4(void) ;
       
   227 TInt concurrenttest5(void) ;
       
   228 TInt concurrenttest6(void) ;
       
   229 
       
   230 TInt getRecentList1(void) ;
       
   231 TInt getRecentList2(void) ;
       
   232 TInt getRecentlist3(void) ;
       
   233 
       
   234 TInt getEvent1(void) ;
       
   235 TInt getEvent2(void) ;
       
   236 TInt getEvent3(void) ;
       
   237 
       
   238 //addsynctest
       
   239 TInt AddEventSync1(void);
       
   240 TInt AddEventSync2(void);
       
   241 TInt AddEventSync3(void);
       
   242 TInt AddEventSync4(void);
       
   243 TInt AddEventSync5(void);
       
   244 
       
   245 //addasynctest
       
   246 TInt AddEventasync1(void);
       
   247 TInt AddEventasync2(void);
       
   248 TInt AddEventasync3(void);
       
   249 TInt AddEventasync4(void);
       
   250 TInt AddEventasync5(void);
       
   251 
       
   252 //delete
       
   253 TInt DeleteEventsync(void);
       
   254 TInt DeleteEventasync(void);
       
   255 #endif      // TLOGGING_H
       
   256 
       
   257 // End of File