|
1 /* |
|
2 * Copyright (c) 2005 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: |
|
15 * Logging class |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 #ifndef MRDATALOG_H |
|
23 #define MRDATALOG_H |
|
24 |
|
25 ///////////////////////////////////////////////////////////////////////////// |
|
26 // #Defines that control printing of additional information to debug stream. |
|
27 ///////////////////////////////////////////////////////////////////////////// |
|
28 |
|
29 // INCLUDES |
|
30 |
|
31 #include "icaluilogdef.h" |
|
32 #include <e32std.h> |
|
33 |
|
34 // DEFINES |
|
35 |
|
36 // MRDATA_LOG provides processing information about viewed meeting request data |
|
37 #ifdef ICALUI_ENABLE_MRDATA_LOGGING |
|
38 |
|
39 #define MRDATA_LOG(s) MRDataLog::Log(_L(s)) |
|
40 #define MRDATA_LOG1(s, v) MRDataLog::Log( _L(s), v ) |
|
41 #define MRDATA_LOG2(s, v1, v2) MRDataLog::Log( _L(s), v1, v2 ) |
|
42 |
|
43 #else |
|
44 |
|
45 #define MRDATA_LOG(s) |
|
46 #define MRDATA_LOG1(s, v) |
|
47 #define MRDATA_LOG2(s, v1, v2) |
|
48 |
|
49 #endif // ICALUI_ENABLE_MRDATA_LOGGING |
|
50 |
|
51 // CLASS DECLARATION |
|
52 |
|
53 /** |
|
54 * Class offers logging functionality. |
|
55 */ |
|
56 class MRDataLog |
|
57 { |
|
58 public: |
|
59 |
|
60 /** |
|
61 * Log the message. |
|
62 * @param aText text to be written to log. |
|
63 */ |
|
64 static void Log( TRefByValue<const TDesC> aText, ... ); |
|
65 |
|
66 private: // constructor |
|
67 |
|
68 /// Prohibited default constructor |
|
69 MRDataLog(); |
|
70 |
|
71 /// Prohibited copy constructor |
|
72 MRDataLog( const MRDataLog& ); |
|
73 |
|
74 /// Prohibited assignment operator |
|
75 MRDataLog& operator=( const MRDataLog& ); |
|
76 }; |
|
77 |
|
78 #endif // MRDATALOG_H |
|
79 |
|
80 // End of File |