22
|
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:
|
40
|
15 |
* The header file for tone fetcher logger.
|
22
|
16 |
*
|
|
17 |
*/
|
|
18 |
|
|
19 |
#ifndef TONEFETCHERLOGGER_H
|
|
20 |
#define TONEFETCHERLOGGER_H
|
|
21 |
|
|
22 |
#include <QLatin1String>
|
|
23 |
#include <logger.h>
|
|
24 |
|
40
|
25 |
/*
|
|
26 |
make LOG work
|
|
27 |
*/
|
|
28 |
|
|
29 |
//#define ENABLE_TONEFETCHER_LOG
|
|
30 |
|
22
|
31 |
#define TONEFETCHER_LOGGER_NAME QLatin1String("ToneFetcher")
|
|
32 |
|
|
33 |
#if defined (Q_OS_SYMBIAN)
|
|
34 |
#define TF_LOGGER_CONFIG_PATH QLatin1String("C:/data/.config/tonefetcherlog.conf")
|
|
35 |
#elif defined (Q_WS_WIN)
|
|
36 |
#ifdef _DEBUG
|
|
37 |
#define TF_LOGGER_CONFIG_PATH QLatin1String("C:/controlpanel/debug/bin/tonefetcherlog.conf")
|
|
38 |
#else
|
|
39 |
#define TF_LOGGER_CONFIG_PATH QLatin1String("C:/controlpanel/release/bin/tonefetcherlog.conf")
|
|
40 |
#endif
|
|
41 |
#endif
|
|
42 |
|
40
|
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
|
22
|
48 |
|
|
49 |
#endif /* TONEFETCHERLOGGER_H */
|