equal
deleted
inserted
replaced
10 * Nokia Corporation - initial contribution. |
10 * Nokia Corporation - initial contribution. |
11 * |
11 * |
12 * Contributors: |
12 * Contributors: |
13 * |
13 * |
14 * Description: |
14 * Description: |
15 * The header file for tone fetcher utilities. |
15 * The header file for tone fetcher logger. |
16 * |
16 * |
17 */ |
17 */ |
18 |
18 |
19 #ifndef TONEFETCHERLOGGER_H |
19 #ifndef TONEFETCHERLOGGER_H |
20 #define TONEFETCHERLOGGER_H |
20 #define TONEFETCHERLOGGER_H |
21 |
21 |
22 #include <QLatin1String> |
22 #include <QLatin1String> |
23 #include <logger.h> |
23 #include <logger.h> |
|
24 |
|
25 /* |
|
26 make LOG work |
|
27 */ |
|
28 |
|
29 //#define ENABLE_TONEFETCHER_LOG |
24 |
30 |
25 #define TONEFETCHER_LOGGER_NAME QLatin1String("ToneFetcher") |
31 #define TONEFETCHER_LOGGER_NAME QLatin1String("ToneFetcher") |
26 |
32 |
27 #if defined (Q_OS_SYMBIAN) |
33 #if defined (Q_OS_SYMBIAN) |
28 #define TF_LOGGER_CONFIG_PATH QLatin1String("C:/data/.config/tonefetcherlog.conf") |
34 #define TF_LOGGER_CONFIG_PATH QLatin1String("C:/data/.config/tonefetcherlog.conf") |
32 #else |
38 #else |
33 #define TF_LOGGER_CONFIG_PATH QLatin1String("C:/controlpanel/release/bin/tonefetcherlog.conf") |
39 #define TF_LOGGER_CONFIG_PATH QLatin1String("C:/controlpanel/release/bin/tonefetcherlog.conf") |
34 #endif |
40 #endif |
35 #endif |
41 #endif |
36 |
42 |
37 #define TF_LOG(str) Logger::instance(TONEFETCHER_LOGGER_NAME)->log(str); |
43 #ifdef ENABLE_TONEFETCHER_LOG |
|
44 #define TF_LOG(str) Logger::instance(TONEFETCHER_LOGGER_NAME)->log(str); |
|
45 #else |
|
46 #define TF_LOG(str) |
|
47 #endif |
38 |
48 |
39 #endif /* TONEFETCHERLOGGER_H */ |
49 #endif /* TONEFETCHERLOGGER_H */ |