tracefw/tracecompiler/test/TracesInHeadersApps/multmmp_comm_source/dll/inc/HelloTraceFn2.h
changeset 56 aa2539c91954
parent 54 a151135b0cf9
child 60 e54443a6878c
child 62 1c2bb2fc7c87
equal deleted inserted replaced
54:a151135b0cf9 56:aa2539c91954
     1 /*
       
     2 * Copyright (c) 2010 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: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef HELLOTRACEFN2_H_
       
    20 #define HELLOTRACEFN2_H_
       
    21 
       
    22 #include <e32base.h>    // CBase
       
    23 
       
    24 class CHelloTraceFn : public CBase
       
    25     {
       
    26 public:
       
    27     
       
    28     // Note the Trace Builder will only parse this if it's in a cpp file
       
    29     // but not from here :(
       
    30     // Also if you add a new enum you need to reparse the enum - it doesn't
       
    31     // get automatically reparsed by the Trace Compiler :(
       
    32     enum TFnEnum
       
    33         {
       
    34         EExample1,
       
    35         EExample2 = 2, 
       
    36         // EExample3 = EExample2 + 1, // The Trace Builder can't parse this :(
       
    37         };
       
    38     
       
    39 public:
       
    40     static CHelloTraceFn* NewL();
       
    41     static CHelloTraceFn* NewLC();
       
    42     ~CHelloTraceFn();
       
    43    
       
    44 public: // Fn entry / exit tracing examples 
       
    45     void Simple();
       
    46     void OutputsParams(TInt aParam, TFnEnum aEnumParam);
       
    47     void OutputsSignedIntegers(TInt8 aParam8,   TInt16 aParam16, 
       
    48                                TInt32 aParam32, TInt64 aParam64);
       
    49     void OutputsUnsignedIntegers(TUint8 aParam8,   TUint16 aParam16, 
       
    50                                  TUint32 aParam32, TUint64 aParam64);
       
    51      
       
    52     TInt OutputsTIntReturnValue();
       
    53     TInt64 OutputsTInt64ReturnValue();
       
    54     TFnEnum OutputsTFnEnumReturnValue();
       
    55 
       
    56     CActive* OutputsUnknownPtrType(CActive* aActive);
       
    57     CActive& OutputsUnknownRefType(CActive& aActive);
       
    58     
       
    59     void OutputMissingParams(TInt aUsedParam, TInt aCommentParam, TInt aMissingParam);
       
    60 
       
    61 #ifdef _DEBUG    
       
    62     void PreProcessedFn(TInt aDbgParam);
       
    63 #else
       
    64     void PreProcessedFn();
       
    65 #endif
       
    66     
       
    67     static void StaticOutputsParamsL(TInt aParam);  
       
    68     
       
    69     // duplicate all the function and put the impl in the header file HelloTraceFnDup.h
       
    70     void SimpleDup();
       
    71     void OutputsParamsDup(TInt aParam, TFnEnum aEnumParam);
       
    72     void OutputsSignedIntegersDup(TInt8 aParam8,   TInt16 aParam16, 
       
    73                                TInt32 aParam32, TInt64 aParam64);
       
    74     void OutputsUnsignedIntegersDup(TUint8 aParam8,   TUint16 aParam16, 
       
    75                                  TUint32 aParam32, TUint64 aParam64);
       
    76      
       
    77     TInt OutputsTIntReturnValueDup();
       
    78     TInt64 OutputsTInt64ReturnValueDup();
       
    79     TFnEnum OutputsTFnEnumReturnValueDup();
       
    80 
       
    81     CActive* OutputsUnknownPtrTypeDup(CActive* aActive);
       
    82     CActive& OutputsUnknownRefTypeDup(CActive& aActive);
       
    83     
       
    84     void OutputMissingParamsDup(TInt aUsedParam, TInt aCommentParam, TInt aMissingParam);
       
    85 
       
    86 #ifdef _DEBUG    
       
    87     void PreProcessedFnDup(TInt aDbgParam);
       
    88 #else
       
    89     void PreProcessedFnDup();
       
    90 #endif
       
    91     static void StaticOutputsParamsDupL(TInt aParam);  
       
    92     
       
    93     // duplicate all the function again and put the impl in the header file HelloTraceFnDup2.h
       
    94     void SimpleDup2();
       
    95     void OutputsParamsDup2(TInt aParam, TFnEnum aEnumParam);
       
    96     void OutputsSignedIntegersDup2(TInt8 aParam8,   TInt16 aParam16, 
       
    97                                TInt32 aParam32, TInt64 aParam64);
       
    98     void OutputsUnsignedIntegersDup2(TUint8 aParam8,   TUint16 aParam16, 
       
    99                                  TUint32 aParam32, TUint64 aParam64);
       
   100      
       
   101     TInt OutputsTIntReturnValueDup2();
       
   102     TInt64 OutputsTInt64ReturnValueDup2();
       
   103     TFnEnum OutputsTFnEnumReturnValueDup2();
       
   104 
       
   105     CActive* OutputsUnknownPtrTypeDup2(CActive* aActive);
       
   106     CActive& OutputsUnknownRefTypeDup2(CActive& aActive);
       
   107     
       
   108     void OutputMissingParamsDup2(TInt aUsedParam, TInt aCommentParam, TInt aMissingParam);
       
   109 
       
   110 #ifdef _DEBUG    
       
   111     void PreProcessedFnDup2(TInt aDbgParam);
       
   112 #else
       
   113     void PreProcessedFnDup2();
       
   114 #endif
       
   115     static void StaticOutputsParamsDup2L(TInt aParam);  
       
   116 
       
   117 
       
   118 private:
       
   119     CHelloTraceFn();
       
   120     };
       
   121 
       
   122 #endif /* HELLOTRACEFN2_H_ */