controlpanelui/src/tonefetcher/inc/tonefetcherlogger.h
changeset 22 a5692c68d772
child 29 313976a11e23
equal deleted inserted replaced
21:2883a5458389 22:a5692c68d772
       
     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:
       
    15  *     The header file for tone fetcher utilities.
       
    16  *     
       
    17  */
       
    18 
       
    19 #ifndef TONEFETCHERLOGGER_H
       
    20 #define TONEFETCHERLOGGER_H
       
    21 
       
    22 #include <QLatin1String>
       
    23 #include <logger.h>
       
    24 
       
    25 #define TONEFETCHER_LOGGER_NAME       QLatin1String("ToneFetcher")
       
    26 
       
    27 #if defined (Q_OS_SYMBIAN)
       
    28     #define TF_LOGGER_CONFIG_PATH QLatin1String("C:/data/.config/tonefetcherlog.conf")
       
    29 #elif defined (Q_WS_WIN)
       
    30     #ifdef _DEBUG
       
    31         #define TF_LOGGER_CONFIG_PATH QLatin1String("C:/controlpanel/debug/bin/tonefetcherlog.conf")
       
    32     #else 
       
    33         #define TF_LOGGER_CONFIG_PATH QLatin1String("C:/controlpanel/release/bin/tonefetcherlog.conf")
       
    34     #endif
       
    35 #endif
       
    36 
       
    37 #define TF_LOG(str)   Logger::instance(TONEFETCHER_LOGGER_NAME)->log(str);
       
    38 
       
    39 #endif /* TONEFETCHERLOGGER_H */