harvesterplugins/calendar/traces/ccalendarpluginTraces.h
changeset 26 367228f82b66
parent 15 df6898e696c6
equal deleted inserted replaced
24:1abfa342db42 26:367228f82b66
     1 // Created by TraceCompiler 2.2.3
     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 // Created by TraceCompiler 2.3.0
     2 // DO NOT EDIT, CHANGES WILL BE LOST
    18 // DO NOT EDIT, CHANGES WILL BE LOST
     3 
    19 
     4 #ifndef __CCALENDARPLUGINTRACES_H__
    20 #ifndef __CCALENDARPLUGINTRACES_H__
     5 #define __CCALENDARPLUGINTRACES_H__
    21 #define __CCALENDARPLUGINTRACES_H__
     6 
    22 
    15 #define CCALENDARPLUGIN_CREATEENTRYL 0x860007
    31 #define CCALENDARPLUGIN_CREATEENTRYL 0x860007
    16 #define DUP1_CCALENDARPLUGIN_CREATEENTRYL 0x860008
    32 #define DUP1_CCALENDARPLUGIN_CREATEENTRYL 0x860008
    17 #define DUP2_CCALENDARPLUGIN_CREATEENTRYL 0x860009
    33 #define DUP2_CCALENDARPLUGIN_CREATEENTRYL 0x860009
    18 #define DUP8_CCALENDARPLUGIN_CREATEENTRYL 0x86000f
    34 #define DUP8_CCALENDARPLUGIN_CREATEENTRYL 0x86000f
    19 #define DUP9_CCALENDARPLUGIN_CREATEENTRYL 0x860010
    35 #define DUP9_CCALENDARPLUGIN_CREATEENTRYL 0x860010
       
    36 #define CCALENDARPLUGIN_ADDTOFIELDEXCERPTL 0x860011
       
    37 #define DUP3_CCALENDARPLUGIN_CREATEENTRYL 0x860012
       
    38 #define CCALENDARPLUGIN_ADDTOFIELDEXCERPTL_ENTRY 0x8a0001
       
    39 #define CCALENDARPLUGIN_ADDTOFIELDEXCERPTL_EXIT 0x8a0002
       
    40 #define CCALENDARPLUGIN_PAUSEPLUGINL_ENTRY 0x8a0003
       
    41 #define CCALENDARPLUGIN_PAUSEPLUGINL_EXIT 0x8a0004
       
    42 #define CCALENDARPLUGIN_RESUMEPLUGINL_ENTRY 0x8a0005
       
    43 #define CCALENDARPLUGIN_RESUMEPLUGINL_EXIT 0x8a0006
       
    44 #define CCALENDARPLUGIN_OVERWRITEORADDTOQUEUEL_ENTRY 0x8a0007
       
    45 #define CCALENDARPLUGIN_OVERWRITEORADDTOQUEUEL_EXIT 0x8a0008
       
    46 #define DUP1_CCALENDARPLUGIN_OVERWRITEORADDTOQUEUEL_EXIT 0x8a0009
       
    47 #define CCALENDARPLUGIN_INDEXQUEUEDITEMS_ENTRY 0x8a000a
       
    48 #define CCALENDARPLUGIN_INDEXQUEUEDITEMS_EXIT 0x8a000b
       
    49 
       
    50 
       
    51 #ifndef __KERNEL_MODE__
       
    52 #ifndef __OSTTRACEGEN1_TUINT32_CONST_TDESC16REF__
       
    53 #define __OSTTRACEGEN1_TUINT32_CONST_TDESC16REF__
       
    54 
       
    55 inline TBool OstTraceGen1( TUint32 aTraceID, const TDesC16& aParam1 )
       
    56     {
       
    57     TBool retval;
       
    58     TInt size = aParam1.Size();
       
    59     // BTrace assumes that parameter size is atleast 4 bytes
       
    60     if (size % 4 == 0)
       
    61         {
       
    62         TUint8* ptr = ( TUint8* )aParam1.Ptr();
       
    63         // Data is written directly and length is determined from trace message length
       
    64         retval = OstSendNBytes( EXTRACT_GROUP_ID(aTraceID), EOstTrace, KOstTraceComponentID, aTraceID, ptr, size );
       
    65         }
       
    66     else
       
    67         {
       
    68         TUint8 data[ KOstMaxDataLength ];
       
    69         TUint8* ptr = data;
       
    70         if (size > KOstMaxDataLength)
       
    71             {
       
    72             size = KOstMaxDataLength;
       
    73             }
       
    74         TInt sizeAligned = ( size + 3 ) & ~3;
       
    75         memcpy( ptr, aParam1.Ptr(), size );
       
    76         ptr += size;
       
    77         // Fillers are written to get 32-bit alignment
       
    78         while ( size++ < sizeAligned )
       
    79             {
       
    80             *ptr++ = 0;
       
    81             }
       
    82         ptr -= sizeAligned;
       
    83         size = sizeAligned;
       
    84         // Data is written directly and length is determined from trace message length
       
    85         retval = OstSendNBytes( EXTRACT_GROUP_ID(aTraceID), EOstTrace, KOstTraceComponentID, aTraceID, ptr, size );
       
    86         }
       
    87     return retval;
       
    88     }
       
    89 
       
    90 #endif // __OSTTRACEGEN1_TUINT32_CONST_TDESC16REF__
       
    91 
       
    92 #endif
    20 
    93 
    21 
    94 
    22 #endif
    95 #endif
    23 
    96 
    24 // End of file
    97 // End of file