|
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 __QTPHONELOG_H__ |
|
21 #define __QTPHONELOG_H__ |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32def.h> |
|
25 #include <QDebug> |
|
26 |
|
27 // Q_FUNC_INFO does not print function signature in Symbian.. |
|
28 |
|
29 #ifdef _DEBUG |
|
30 #define PHONE_DEBUG(A) qDebug() <<A; |
|
31 #define PHONE_DEBUG2(A, B) qDebug() <<A <<B |
|
32 #define PHONE_DEBUG3(A, B, C) qDebug() <<A <<B <<C |
|
33 #define PHONE_DEBUG4(A, B, C, D) qDebug() <<A <<B <<C <<D |
|
34 |
|
35 #define PHONE_TRACE qDebug() <<__PRETTY_FUNCTION__; |
|
36 #define PHONE_TRACE1(A) qDebug() <<__PRETTY_FUNCTION__ <<A; |
|
37 #define PHONE_TRACE2(A, B) qDebug() <<__PRETTY_FUNCTION__ <<A <<B |
|
38 #define PHONE_TRACE3(A, B, C) qDebug() <<__PRETTY_FUNCTION__ <<A <<B <<C |
|
39 #define PHONE_TRACE4(A, B, C, D) qDebug() <<__PRETTY_FUNCTION__ <<A <<B <<C <<D |
|
40 #else |
|
41 #define PHONE_DEBUG(A) |
|
42 #define PHONE_DEBUG2(A, B) |
|
43 #define PHONE_DEBUG3(A, B, C) |
|
44 #define PHONE_DEBUG4(A, B, C, D) |
|
45 |
|
46 #define PHONE_TRACE |
|
47 #define PHONE_TRACE1(A) |
|
48 #define PHONE_TRACE2(A, B) |
|
49 #define PHONE_TRACE3(A, B, C) |
|
50 #define PHONE_TRACE4(A, B, C, D) |
|
51 #endif |
|
52 |
|
53 #endif |
|
54 |