controlpanelui/src/tonefetcher/inc/tonefetcherlogger.h
author hgs
Fri, 25 Jun 2010 17:12:20 +0800
changeset 22 a5692c68d772
child 29 313976a11e23
permissions -rw-r--r--
201025

/*
 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
 * All rights reserved.
 * This component and the accompanying materials are made available
 * under the terms of "Eclipse Public License v1.0"
 * which accompanies this distribution, and is available
 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
 *
 * Initial Contributors:
 * Nokia Corporation - initial contribution.
 * 
 * Contributors:
 * 
 * Description:
 *     The header file for tone fetcher utilities.
 *     
 */

#ifndef TONEFETCHERLOGGER_H
#define TONEFETCHERLOGGER_H

#include <QLatin1String>
#include <logger.h>

#define TONEFETCHER_LOGGER_NAME       QLatin1String("ToneFetcher")

#if defined (Q_OS_SYMBIAN)
    #define TF_LOGGER_CONFIG_PATH QLatin1String("C:/data/.config/tonefetcherlog.conf")
#elif defined (Q_WS_WIN)
    #ifdef _DEBUG
        #define TF_LOGGER_CONFIG_PATH QLatin1String("C:/controlpanel/debug/bin/tonefetcherlog.conf")
    #else 
        #define TF_LOGGER_CONFIG_PATH QLatin1String("C:/controlpanel/release/bin/tonefetcherlog.conf")
    #endif
#endif

#define TF_LOG(str)   Logger::instance(TONEFETCHER_LOGGER_NAME)->log(str);

#endif /* TONEFETCHERLOGGER_H */