natfw/natfwturnplugin/inc/natfwturnpluginlogs.h
changeset 0 1bce908db942
equal deleted inserted replaced
-1:000000000000 0:1bce908db942
       
     1 /*
       
     2 * Copyright (c) 2006 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 
       
    20 
       
    21 #ifndef NATFWTURNPLUGINLOGS_H
       
    22 #define NATFWTURNPLUGINLOGS_H
       
    23 
       
    24 
       
    25 #include "natfwlogs.h"
       
    26 
       
    27 #ifdef _DEBUG
       
    28     #define __NATFW_TURNPLUGIN
       
    29 #endif
       
    30 
       
    31 #ifdef __NATFW_TURNPLUGIN
       
    32     _LIT( KNATFWTurnPlugin, "NATFW/Turn Plug-in:" );
       
    33 
       
    34     #define __TURNPLUGIN(a) \
       
    35         {  _LIT( KStr, a); TNATFWLog::Print( KNATFWTurnPlugin, KStr ); }
       
    36     #define __TURNPLUGIN_INT1(a, b) \
       
    37         {  _LIT( KStr, a); TNATFWLog::Print( KNATFWTurnPlugin, KStr, b); }
       
    38     #define __TURNPLUGIN_INT2(a, b, c, d) \
       
    39         { _LIT( KStr1, a); _LIT( KStr2, c);\
       
    40           TNATFWLog::Print( KNATFWTurnPlugin, KStr1, b, KStr2, d ); }
       
    41     #define __TURNPLUGIN_STR(a, b) \
       
    42         { _LIT( KStr, a); TNATFWLog::Print( KNATFWTurnPlugin, KStr, b); }
       
    43     #define __TURNPLUGIN_STR8(a, b) \
       
    44         { _LIT( KStr, a); TNATFWLog::Print( KNATFWTurnPlugin, KStr, b); }
       
    45     #define __TURNPLUGIN_ADDRLOG( a, b ) \
       
    46         { _LIT( KStr, a); TNATFWLog::Print( KNATFWTurnPlugin, KStr, b ); }
       
    47 #else
       
    48     #define __TURNPLUGIN( a )
       
    49     #define __TURNPLUGIN_INT1( a, b )
       
    50     #define __TURNPLUGIN_INT2( a, b, c, d )
       
    51     #define __TURNPLUGIN_STR( a, b )
       
    52     #define __TURNPLUGIN_STR8( a, b )
       
    53     #define __TURNPLUGIN_ADDRLOG( a, b )
       
    54 #endif
       
    55 
       
    56 #endif // NATFWTURNPLUGINLOGS_H