|
1 /* |
|
2 * Copyright (c) 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: Defines debug macros for lbtcontextsourceplugin |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef LBTCONTEXTSOURCEPLUGINDEBUG_H |
|
20 #define LBTCONTEXTSOURCEPLUGINDEBUG_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32std.h> |
|
24 #include "lbtcontextsourceplugindebug.hrh" |
|
25 |
|
26 |
|
27 |
|
28 // Macros |
|
29 |
|
30 #define DEBUGLBTCONTEXTSOURCEPLUGIN(TEXT) { \ |
|
31 _LIT( KText, #TEXT ); \ |
|
32 DebugLbtContextSourcePlugin(KText); \ |
|
33 } |
|
34 |
|
35 #define LOGLBTCONTEXTSOURCEPLUGIN(TEXT, ARG1) { \ |
|
36 _LIT( KText, #TEXT ); \ |
|
37 DebugLbtContextSourcePlugin( KText, (ARG1) ); \ |
|
38 } |
|
39 |
|
40 |
|
41 /** |
|
42 * Logs messages into the c:\logs\lbtcontextsourceplugin\lbtcontextsourceplugin.txt file |
|
43 * provided the folder c:\logs\lbtcontextsourceplugin\ exists. |
|
44 */ |
|
45 void DebugLbtContextSourcePlugin( TRefByValue<const TDesC> aText, ... ); |
|
46 |
|
47 |
|
48 |
|
49 /** |
|
50 * Logging is enabled only when LOG_ENABLED_LBTCONTEXTSOURCEPLUGIN is defined |
|
51 */ |
|
52 #ifdef LOG_ENABLED_LBTCONTEXTSOURCEPLUGIN |
|
53 |
|
54 #define LBTCONTEXTSOURCEPLUGINDEBUG(TEXT) DEBUGLBTCONTEXTSOURCEPLUGIN(TEXT) |
|
55 #define LBTCONTEXTSOURCEPLUGINDEBUG1(TEXT, ARG1) LOGLBTCONTEXTSOURCEPLUGIN(TEXT, ARG1) |
|
56 |
|
57 #else |
|
58 |
|
59 #define LBTCONTEXTSOURCEPLUGINDEBUG(TEXT) |
|
60 #define LBTCONTEXTSOURCEPLUGINDEBUG1(TEXT, ARG1) |
|
61 |
|
62 #endif |
|
63 |
|
64 |
|
65 #endif // LBTCONTEXTSOURCEPLUGINDEBUG_H |
|
66 |
|
67 |
|
68 |
|
69 // End of file |