networkcontrol/ipscpr/src/ipscprlog.h
branchRCL_3
changeset 58 8d540f55e491
parent 57 abbed5a4b42a
child 59 e36178c55292
child 63 425d8f4f7fa5
equal deleted inserted replaced
57:abbed5a4b42a 58:8d540f55e491
     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 _DEBUG
       
    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__