usbclasses/usbphoneasmodem/classimplementation/atplugin/inc/pamplugindebugconfig.h
changeset 0 1e05558e2206
child 89 3592750162a5
equal deleted inserted replaced
-1:000000000000 0:1e05558e2206
       
     1 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // class definition for phone as modem at extension plugin
       
    15 // 
       
    16 //
       
    17 
       
    18 #ifndef PAMPLUGINDEBUGCONFIG_H
       
    19 #define PAMPLUGINDEBUGCONFIG_H
       
    20 
       
    21 #include "pampluginprjconfig.h"
       
    22 
       
    23 /**
       
    24  * Custom logging variations.
       
    25  */
       
    26 #ifdef PRJ_FILE_TRACE
       
    27 _LIT(KLogFile,"pamplugin.txt");
       
    28 _LIT(KLogDir,"USB");
       
    29 #endif
       
    30 
       
    31 #ifdef PRJ_ENABLE_TRACE
       
    32 _LIT(KTracePrefix16, "[ref_ATEXT] ");
       
    33 _LIT8(KTracePrefix8, "[ref_ATEXT] ");
       
    34 _LIT8(KFuncFormat8, "><%S");
       
    35 _LIT8(KFuncThisFormat8, "><%S, [0x%08X]");
       
    36 _LIT8(KFuncEntryFormat8, ">%S");
       
    37 _LIT8(KFuncEntryThisFormat8, ">%S, [0x%08X]");
       
    38 _LIT8(KFuncExitFormat8, "<%S");
       
    39 
       
    40 _LIT(KPanicCategory, "Ref_ATExt");    
       
    41 _LIT8(KPanicPrefix8, "PANIC code ");
       
    42 _LIT8(KLeavePrefix8, "LEAVE code ");
       
    43 #endif
       
    44 
       
    45 const TInt KMaxLogLineLength = 512;
       
    46 
       
    47 #define KPRINTERROR        0x00000001 // Tracing level: error
       
    48 #define KPRINTINFO        0x00000002 // Tracing level: function trace
       
    49 #define KPRINTSTATE        0x00000004 // Tracing level: state machine info
       
    50 #define KPRINTWARNING   0x00000008 // Tracing level: warning
       
    51 
       
    52 const TInt KTraceMask = KPRINTERROR | KPRINTINFO | KPRINTSTATE | KPRINTWARNING;
       
    53 
       
    54 #endif // PAMPLUGINDEBUGCONFIG_H