78
|
1 |
/*
|
|
2 |
* ============================================================================
|
|
3 |
* Name : phoneringingtonetrace.h
|
|
4 |
* Part of : PhoneRingingtone
|
|
5 |
* Description : Macros for tracing.
|
|
6 |
* Version :
|
|
7 |
*
|
|
8 |
* Copyright © 2010 Nokia. All rights reserved.
|
|
9 |
* This material, including documentation and any related computer
|
|
10 |
* programs, is protected by copyright controlled by Nokia. All
|
|
11 |
* rights are reserved. Copying, including reproducing, storing,
|
|
12 |
* adapting or translating, any or all of this material requires the
|
|
13 |
* prior written consent of Nokia. This material also contains
|
|
14 |
* confidential information which may not be disclosed to others
|
|
15 |
* without the prior written consent of Nokia.
|
|
16 |
* ============================================================================
|
|
17 |
* Template version: 4.1
|
|
18 |
*/
|
|
19 |
|
|
20 |
|
|
21 |
#ifndef PHONERINGINGTONETRACE_H
|
|
22 |
#define PHONERINGINGTONETRACE_H
|
|
23 |
|
|
24 |
|
|
25 |
|
|
26 |
|
|
27 |
// INCLUDES
|
|
28 |
#include <e32svr.h>
|
|
29 |
|
|
30 |
#if ( defined (_DEBUG) && !defined (__WINS__) )
|
|
31 |
|
|
32 |
// CONSTANTS
|
|
33 |
|
|
34 |
const TInt KPhoneRingingtoneDebugBufferSize = 300;
|
|
35 |
|
|
36 |
// MACROS
|
|
37 |
|
|
38 |
typedef TBuf<KPhoneRingingtoneDebugBufferSize> TPhonePhoneRingingtoneDebBuf;
|
|
39 |
|
|
40 |
#define PHONERINGINGTONE_PRINT(x) { _LIT( KPhoneRingingtoneDebugPrintPrefix, "PhoneRingingtone: ");\
|
|
41 |
TPhonePhoneRingingtoneDebBuf buf( KPhoneRingingtoneDebugPrintPrefix);\
|
|
42 |
if ((_L(x).Length()) + buf.Length() <= KPhoneRingingtoneDebugBufferSize )\
|
|
43 |
buf.Append(_L(x)); RDebug::Print(buf); }
|
|
44 |
|
|
45 |
#define PHONERINGINGTONE_PRINTF(x,y) { _LIT( KPhoneRingingtoneDebugPrintPrefix, "PhoneRingingtone: ");\
|
|
46 |
TPhonePhoneRingingtoneDebBuf buf( KPhoneRingingtoneDebugPrintPrefix);\
|
|
47 |
if ((_L(x).Length()) + buf.Length() <= KPhoneRingingtoneDebugBufferSize )\
|
|
48 |
buf.Append(_L(x)); RDebug::Print(buf,y);}
|
|
49 |
|
|
50 |
#define PHONERINGINGTONE_PRINTF2(x,y,z) { _LIT( KPhoneRingingtoneDebugPrintPrefix, "PhoneRingingtone: ");\
|
|
51 |
TPhonePhoneRingingtoneDebBuf buf( KPhoneRingingtoneDebugPrintPrefix);\
|
|
52 |
if ((_L(x).Length()) + buf.Length() <= KPhoneRingingtoneDebugBufferSize )\
|
|
53 |
buf.Append(_L(x)); RDebug::Print(buf,y,z); }
|
|
54 |
|
|
55 |
#define PHONERINGINGTONE_PRINTF3(v,x,y,z) { _LIT( KPhoneRingingtoneDebugPrintPrefix, "PhoneRingingtone: ");\
|
|
56 |
TPhonePhoneRingingtoneDebBuf buf( KPhoneRingingtoneDebugPrintPrefix);\
|
|
57 |
if ((_L(v).Length()) + buf.Length() <= KPhoneRingingtoneDebugBufferSize )\
|
|
58 |
buf.Append(_L(v)); RDebug::Print(buf,x,y,z); }
|
|
59 |
|
|
60 |
#else // !_DEBUG
|
|
61 |
|
|
62 |
#define PHONERINGINGTONE_PRINT(x)
|
|
63 |
#define PHONERINGINGTONE_PRINTF(x,y)
|
|
64 |
#define PHONERINGINGTONE_PRINTF2(x,y,z)
|
|
65 |
#define PHONERINGINGTONE_PRINTF3(v,x,y,z)
|
|
66 |
|
|
67 |
#endif // _DEBUG
|
|
68 |
|
|
69 |
#endif // PHONERINGINGTONETRACE_H
|
|
70 |
|
|
71 |
// End of File
|