networkprotocols/ipeventnotifier/inc/HookLog.h
changeset 0 af10295192d8
equal deleted inserted replaced
-1:000000000000 0:af10295192d8
       
     1 // Copyright (c) 2004-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 //
       
    15 
       
    16 /**
       
    17  @file hooklog.h
       
    18  @internalComponent
       
    19 */
       
    20 
       
    21 #ifndef __HOOK_LOG_H__
       
    22 #define __HOOK_LOG_H__
       
    23 
       
    24 #ifdef SYMBIAN_NON_SEAMLESS_NETWORK_BEARER_MOBILITY
       
    25 
       
    26 #include <comms-infras/ss_log.h>
       
    27 
       
    28 #if defined (__CFLOG_ACTIVE)
       
    29 
       
    30 _LIT8(KHookLogFolder, "ipevent");
       
    31 _LIT8(KHookLogFile, "ipeventlog.txt");
       
    32 
       
    33 class HookLog
       
    34 	{
       
    35 public:
       
    36 	static void Printf(TRefByValue<const TDesC8> aFmt, ...);
       
    37 	static void Printf(TRefByValue<const TDesC> aFmt, ...);
       
    38 	};
       
    39 
       
    40 #endif
       
    41 
       
    42 #else 	// SYMBIAN_NON_SEAMLESS_NETWORK_BEARER_MOBILITY
       
    43 
       
    44 #if defined (_DEBUG) && !defined (__WINC__)
       
    45 
       
    46 const TInt KHexDumpWidth = 16;
       
    47 
       
    48 #define LOG(x) x
       
    49 
       
    50 class HookLog
       
    51 	{
       
    52 public:
       
    53 	static void Printf(TRefByValue<const TDesC8> aFmt, ...);
       
    54 	static void Printf(TRefByValue<const TDesC> aFmt, ...);
       
    55 	};
       
    56 
       
    57 #else
       
    58 #define LOG(x)
       
    59 #endif
       
    60 
       
    61 #endif	// SYMBIAN_NON_SEAMLESS_NETWORK_BEARER_MOBILITY
       
    62 
       
    63 #endif // __HOOK_LOG_H__
       
    64 
       
    65 
       
    66 
       
    67