telutils/xqtelephonyservice/inc/qtphonesrvlog.h
branchRCL_3
changeset 19 7d48bed6ce0c
equal deleted inserted replaced
18:594d59766373 19:7d48bed6ce0c
       
     1 /*
       
     2 * Copyright (c) 2010 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:  Provides macros for logging
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef __QTPHONESRVLOG_H__
       
    21 #define __QTPHONESRVLOG_H__
       
    22 
       
    23 //  INCLUDES
       
    24 #include <QDebug>
       
    25 
       
    26 // Q_FUNC_INFO does not print function signature in Symbian..
       
    27 
       
    28 #ifdef _DEBUG
       
    29 #define PHONE_DEBUG(A)                   qDebug() <<A;
       
    30 #define PHONE_DEBUG2(A, B)               qDebug() <<A <<B
       
    31 #define PHONE_DEBUG3(A, B, C)            qDebug() <<A <<B <<C
       
    32 #define PHONE_DEBUG4(A, B, C, D)         qDebug() <<A <<B <<C <<D
       
    33 
       
    34 #define PHONE_TRACE                      qDebug() <<__PRETTY_FUNCTION__;
       
    35 #define PHONE_TRACE1(A)                  qDebug() <<__PRETTY_FUNCTION__ <<A;
       
    36 #define PHONE_TRACE2(A, B)               qDebug() <<__PRETTY_FUNCTION__ <<A <<B
       
    37 #define PHONE_TRACE3(A, B, C)            qDebug() <<__PRETTY_FUNCTION__ <<A <<B <<C
       
    38 #define PHONE_TRACE4(A, B, C, D)         qDebug() <<__PRETTY_FUNCTION__ <<A <<B <<C <<D
       
    39 #else
       
    40 #define PHONE_DEBUG(A)
       
    41 #define PHONE_DEBUG2(A, B)
       
    42 #define PHONE_DEBUG3(A, B, C)
       
    43 #define PHONE_DEBUG4(A, B, C, D)
       
    44 
       
    45 #define PHONE_TRACE
       
    46 #define PHONE_TRACE1(A)
       
    47 #define PHONE_TRACE2(A, B)
       
    48 #define PHONE_TRACE3(A, B, C)
       
    49 #define PHONE_TRACE4(A, B, C, D)
       
    50 #endif
       
    51 
       
    52 #endif
       
    53