|
1 /* |
|
2 * Copyright (c) 2004 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: Still Image Converter Common |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CAESTILLCOMMON_H |
|
21 #define CAESTILLCOMMON_H |
|
22 |
|
23 // INCLUDES |
|
24 |
|
25 // CONSTANTS |
|
26 |
|
27 // Logging support |
|
28 // Serial port logging is enabled in _DEBUG builds by default |
|
29 // USE_FILE_LOGGER or USE_SERIAL_LOGGER can also be explicitely defined e.g. in MMP file. |
|
30 // |
|
31 #if defined (_DEBUG) && !defined(USE_FILE_LOGGER) |
|
32 #define USE_SERIAL_LOGGER |
|
33 #endif |
|
34 |
|
35 #if defined (USE_FILE_LOGGER) |
|
36 #include <flogger.h> |
|
37 _LIT(KLogFile,"cae.txt"); |
|
38 _LIT(KLogFolder,"cae"); |
|
39 #define LOGTEXT(AAA) RFileLogger::Write(KLogFolder(),KLogFile(),EFileLoggingModeAppend,AAA) |
|
40 #define LOGTEXT2(AAA,BBB) RFileLogger::WriteFormat(KLogFolder(),KLogFile(),EFileLoggingModeAppend,TRefByValue<const TDesC>(AAA),BBB) |
|
41 #define LOGTEXT3(AAA,BBB,CC) RFileLogger::WriteFormat(KLogFolder(),KLogFile(),EFileLoggingModeAppend,TRefByValue<const TDesC>(AAA),BBB,CC) |
|
42 #define LOGHEXDUMP(AAA,BBB,CC,DDD) RFileLogger::HexDump(KLogFolder(),KLogFile(),EFileLoggingModeAppend,AAA,BBB,CC,DDD) |
|
43 #elif defined (USE_SERIAL_LOGGER) |
|
44 #include <e32svr.h> |
|
45 #define LOGTEXT(AAA) RDebug::Print(AAA) |
|
46 #define LOGTEXT2(AAA,BBB) RDebug::Print(AAA,BBB) |
|
47 #define LOGTEXT3(AAA,BBB,CC) RDebug::Print(AAA,BBB,CC) |
|
48 #define LOGHEXDUMP(AAA,BBB,CC,DDD) |
|
49 #else |
|
50 #define LOGTEXT(AAA) |
|
51 #define LOGTEXT2(AAA,BBB) |
|
52 #define LOGTEXT3(AAA,BBB,CC) |
|
53 #define LOGHEXDUMP(AAA,BBB,CC,DDD) |
|
54 #endif |
|
55 |
|
56 |
|
57 // CLASS DECLARATION |
|
58 |
|
59 |
|
60 |
|
61 #endif // CAESTILLCOMMON_H |
|
62 |
|
63 // End of File |