radioapp/radioenginewrapper/commoninc/radiologger.h
changeset 14 63aabac4416d
parent 13 46974bebc798
equal deleted inserted replaced
13:46974bebc798 14:63aabac4416d
    17 
    17 
    18 #ifndef _RADIOLOGGER_H_
    18 #ifndef _RADIOLOGGER_H_
    19 #define _RADIOLOGGER_H_
    19 #define _RADIOLOGGER_H_
    20 
    20 
    21 // System includes
    21 // System includes
    22 #include <qobject>
    22 #include <QObject>
    23 
    23 
    24 // User includes
    24 // User includes
    25 #include "radiowrapperexport.h"
    25 #include "radiowrapperexport.h"
    26 
    26 
    27 class WRAPPER_DLL_EXPORT RadioLogger
    27 class WRAPPER_DLL_EXPORT RadioLogger
    44 // START TIMESTAMP LOGGING
    44 // START TIMESTAMP LOGGING
    45 // ============================================================================
    45 // ============================================================================
    46 
    46 
    47 #ifdef TIMESTAMP_LOGGING_ENABLED
    47 #ifdef TIMESTAMP_LOGGING_ENABLED
    48 
    48 
    49 #include <qtime>
    49 #include <QTime>
    50 #include <qdebug.h>
    50 #include <QDebug>
    51 
    51 
    52 /**
    52 /**
    53  * Timestamp logging macro.
    53  * Timestamp logging macro.
    54  * When the macro is defined, timestamp logging is on
    54  * When the macro is defined, timestamp logging is on
    55  *
    55  *
    79 // START FULL LOGGING
    79 // START FULL LOGGING
    80 // ============================================================================
    80 // ============================================================================
    81 
    81 
    82 #ifdef LOGGING_ENABLED
    82 #ifdef LOGGING_ENABLED
    83 
    83 
    84 #include <qglobal.h>
    84 #include <QtGlobal>
    85 #include <qdebug.h>
    85 #include <QDebug>
    86 
    86 
    87 // UI logs can be combined with engine logs by making the UI feed its log prints into
    87 // UI logs can be combined with engine logs by making the UI feed its log prints into
    88 // the engine logger. This requires that we initialize the radio engine utils right here
    88 // the engine logger. This requires that we initialize the radio engine utils right here
    89 // because the engine won't start up until much later. This is a bit ugly since the macros
    89 // because the engine won't start up until much later. This is a bit ugly since the macros
    90 // call Symbian code directly, but it was considered to be worth it to see UI and engine
    90 // call Symbian code directly, but it was considered to be worth it to see UI and engine
   197 
   197 
   198 // Dummy class
   198 // Dummy class
   199 class WRAPPER_DLL_EXPORT MethodLogger
   199 class WRAPPER_DLL_EXPORT MethodLogger
   200 {
   200 {
   201 public:
   201 public:
   202     MethodLogger( const char*, const char* ) {}
   202     MethodLogger( const char*, const char* );
   203     ~MethodLogger() {}
   203     ~MethodLogger();
   204 };
   204 };
   205 
   205 
   206 #endif // LOGGING_ENABLED
   206 #endif // LOGGING_ENABLED
   207 
   207 
   208 #ifdef TRACE_TO_FILE
   208 #ifdef TRACE_TO_FILE