bluetoothengine/headsetsimulator/profiles/hspprofile/inc/debugconfig.h
branchheadsetsimulator
changeset 60 90dbfc0435e3
equal deleted inserted replaced
59:02103bf20ee5 60:90dbfc0435e3
       
     1 /* 
       
     2  *
       
     3  * Copyright (c) <2010> Comarch S.A. and/or its subsidiary(-ies).
       
     4  * All rights reserved.
       
     5  * This component and the accompanying materials are made available
       
     6  * under the terms of the License "Eclipse Public License v1.0"
       
     7  * which accompanies this distribution, and is available
       
     8  * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     9  *
       
    10  * Original Contributors:
       
    11  * Comarch S.A. - original contribution.
       
    12  *
       
    13  * Contributors:
       
    14  *
       
    15  * Description:
       
    16  *
       
    17  */
       
    18 
       
    19 #ifndef HFPPLUGIN_DEBUGCONFIG_H
       
    20 #define HFPPLUGIN_DEBUGCONFIG_H
       
    21 
       
    22 #include "prjconfig.h"
       
    23 
       
    24 /**
       
    25  * Custom logging variations.
       
    26  */
       
    27 #ifdef PRJ_FILE_TRACE
       
    28 _LIT(KLogFile,"HSPPLUGIN.txt");
       
    29 _LIT(KLogDir,"HeadsetSimulator HSP Profile");
       
    30 #endif
       
    31 
       
    32 #ifdef PRJ_ENABLE_TRACE
       
    33 _LIT(KTracePrefix16, "[HSP] ");
       
    34 _LIT8(KTracePrefix8, "[HSP] ");
       
    35 _LIT8(KFuncFormat8, "><%S");
       
    36 _LIT8(KFuncThisFormat8, "><%S, [0x%08X]");
       
    37 _LIT8(KFuncEntryFormat8, ">%S");
       
    38 _LIT8(KFuncEntryThisFormat8, ">%S, [0x%08X]");
       
    39 _LIT8(KFuncExitFormat8, "<%S");
       
    40 
       
    41 _LIT8(KPanicPrefix8, "PANIC code ");
       
    42 _LIT8(KLeavePrefix8, "LEAVE code ");
       
    43 #endif
       
    44 
       
    45 //needed??
       
    46 _LIT(KPanicCategory, "HSPPLUGIN"); // need it also for release 
       
    47 
       
    48 const TInt KMaxLogLineLength = 512;
       
    49 
       
    50 #define KPRINTERROR        0x00000001 // Tracing level: error
       
    51 #define KPRINTINFO        0x00000002 // Tracing level: function trace
       
    52 #define KPRINTSTATE        0x00000004 // Tracing level: state machine info
       
    53 #define KPRINTWARNING   0x00000008 // Tracing level: warning
       
    54 const TInt KTraceMask = KPRINTERROR | KPRINTINFO | KPRINTSTATE | KPRINTWARNING;
       
    55 
       
    56 #endif // HFPPLUGIN_DEBUGCONFIG_H