networkcontrol/iptransportlayer/src/ipscprlog.h
changeset 0 af10295192d8
equal deleted inserted replaced
-1:000000000000 0:af10295192d8
       
     1 /**
       
     2 * Copyright (c) 2004-2009 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 * Header file for the IP CPR Logger
       
    16 * 
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 
       
    22 /**
       
    23  @file ipcprlog.h
       
    24 */
       
    25 
       
    26 #ifndef __IPCPRLOG_H__
       
    27 #define __IPCPRLOG_H__
       
    28 
       
    29 #include <e32std.h>
       
    30 
       
    31 #ifdef __FLOG_ACTIVE
       
    32 
       
    33 /**
       
    34 @internalComponent
       
    35 */
       
    36 #define __IPCPRLOG(x) x
       
    37 
       
    38 
       
    39 class IpCprLog
       
    40 /**
       
    41 Provides a wrapper around use of Comms Debug Utility for the the
       
    42 IP Connection Provider.  Calls are usuallly enclosed with the use
       
    43 of the LOG macro.  This will thus remove calls to logging in
       
    44 release builds.
       
    45 
       
    46 @internalComponent
       
    47 
       
    48 @released Since v9.0
       
    49 */
       
    50 	{
       
    51 public:
       
    52 	static void Printf(TRefByValue<const TDesC8> aFmt, ...);
       
    53 	static void Printf(TRefByValue<const TDesC> aFmt, ...);
       
    54 	};
       
    55 
       
    56 #else
       
    57 
       
    58 #define __IPCPRLOG(x)
       
    59 
       
    60 #endif
       
    61 
       
    62 #endif // __IPCPRLOG_H__