locationsystemui/locationsysui/posindicator/posindicatorplugin/inc/apilogger.h
branchRCL_3
changeset 44 2b4ea9893b66
equal deleted inserted replaced
42:02ba3f1733c6 44:2b4ea9893b66
       
     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:  This class provides function that help in logging entry and exit of APIs of classes
       
    15 *
       
    16 */
       
    17 
       
    18 #include <iostream>
       
    19 #include <fstream> 
       
    20 #include <QDebug>
       
    21 #include <qfile.h>
       
    22 #include <qtextstream.h>
       
    23 
       
    24 using namespace std;
       
    25 
       
    26 // Flag to enable NFT logging
       
    27 //#define POSINDICATOR_NFT
       
    28 
       
    29 class ApiLogger
       
    30     {
       
    31     public:
       
    32     static void OpenLogFile();
       
    33     static void CloseLogFile();
       
    34     static void MyOutputHandler(QtMsgType type, const char *msg);
       
    35     static void NftLogger( const QString msg  );
       
    36     };
       
    37