equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2006 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: Debug tools for Calendar |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CALENDEBUG_H |
|
21 #define CALENDEBUG_H |
|
22 |
|
23 // |
|
24 // Debug macros are compiled empty in non-debug builds |
|
25 // |
|
26 |
|
27 #ifndef _DEBUG |
|
28 |
|
29 #define LOGTIME(m,t) |
|
30 #define LOGRRULE(r) |
|
31 #define LOGINSTANCE(x) |
|
32 #define LOGENTRY(x) |
|
33 |
|
34 #else |
|
35 |
|
36 #define LOGTIME(m,t) CalenDebug::LogTimeL(m, t) |
|
37 #define LOGRRULE(r) CalenDebug::LogRRuleL(r) |
|
38 #define LOGINSTANCE(x) CalenDebug::LogInstanceL(x) |
|
39 #define LOGENTRY(x) CalenDebug::LogEntryL(x) |
|
40 |
|
41 #include <e32std.h> |
|
42 class TCalRRule; |
|
43 class CCalInstance; |
|
44 class CCalEntry; |
|
45 |
|
46 namespace CalenDebug |
|
47 { |
|
48 void LogTimeL(const TDesC& aMsg, const TTime& aTime); |
|
49 |
|
50 void LogRRuleL(const TCalRRule& aRule); |
|
51 |
|
52 void LogInstanceL(CCalInstance& aInstance); |
|
53 |
|
54 void LogEntryL(CCalEntry& aEntry); |
|
55 } |
|
56 |
|
57 #endif // _DEBUG |
|
58 |
|
59 #endif // CALENDEBUG_H |