locationsystemui/locationsysui/locbtnotifier/inc/locbtnotifierdebug.h
branchRCL_3
changeset 44 2b4ea9893b66
parent 42 02ba3f1733c6
child 45 6b6920c56e2f
equal deleted inserted replaced
42:02ba3f1733c6 44:2b4ea9893b66
     1 /*
       
     2 * Copyright (c) 2008 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:  Defines debug macros for locbtnotifier
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef LOCBTNOTIFIERDEBUG_H
       
    20 #define LOCBTNOTIFIERDEBUG_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32std.h>
       
    24 #include "locbtnotifierdebugconfig.hrh"
       
    25 
       
    26 
       
    27 
       
    28 // Macros
       
    29 
       
    30 #define DEBUGLOCBTNOTIFIER(TEXT) 			 { \
       
    31 									  		 _LIT( KText, #TEXT ); \
       
    32 									   		 DebugLocBtNotifier(KText); \
       
    33 									 		 }
       
    34 									 
       
    35 #define LOGLOCBTNOTIFIER(TEXT, ARG1) 		 { \
       
    36 									         _LIT( KText, #TEXT ); \
       
    37 									         DebugLocBtNotifier( KText, (ARG1) ); \
       
    38 									         }
       
    39 
       
    40 
       
    41 /**
       
    42 * Logs messages into the c:\logs\locbtnotifier\locbtnotifier.txt file
       
    43 * provided the folder c:\logs\locbtnotifier\ exists.
       
    44 */
       
    45 void DebugLocBtNotifier( TRefByValue<const TDesC> aText, ... );
       
    46 
       
    47 
       
    48 /**
       
    49 * Logging is enabled only when LOG_ENABLED_LOCBTNOTIFIER is defined
       
    50 */
       
    51 #ifdef LOG_ENABLED_LOCBTNOTIFIER
       
    52 
       
    53 #define LOCBTNOTIFIERDEBUG(TEXT)                     DEBUGLOCBTNOTIFIER(TEXT)
       
    54 #define LOCBTNOTIFIERDEBUG1(TEXT, ARG1)              LOGLOCBTNOTIFIER(TEXT, ARG1)
       
    55 
       
    56 #else
       
    57 
       
    58 #define LOCBTNOTIFIERDEBUG(TEXT) 
       
    59 #define LOCBTNOTIFIERDEBUG1(TEXT, ARG1) 
       
    60 
       
    61 #endif
       
    62 
       
    63 
       
    64 #endif      // LOCBTNOTIFIERDEBUG_H
       
    65 
       
    66 
       
    67 
       
    68 // End of file