profilesservices/RingingTone3DPlugin/inc/RingingTone3DPluginDebug.h
branchRCL_3
changeset 24 8ee96d21d9bf
parent 23 8bda91a87a00
child 25 7e0eff37aedb
equal deleted inserted replaced
23:8bda91a87a00 24:8ee96d21d9bf
     1 /*
       
     2 * Copyright (c) 2002-2006 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:  Plug-In that implements C3DRingingToneInterface.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef RINGINGTONE_3D_PLUGIN_DEBUG_H
       
    21 #define RINGINGTONE_3D_PLUGIN_DEBUG_H
       
    22 
       
    23 
       
    24 #ifdef _DEBUG
       
    25 
       
    26 #include <f32file.h>
       
    27 #include <flogger.h>
       
    28 
       
    29 _LIT(KLogFilename,"3d.txt");
       
    30 _LIT(KLogDir,"3d");
       
    31 
       
    32 // Declare the FPrint function
       
    33 inline void FPrint(const TRefByValue<const TDesC> aFmt, ...)
       
    34     {
       
    35     VA_LIST list;
       
    36     VA_START(list,aFmt);
       
    37     RFileLogger::WriteFormat(KLogDir, KLogFilename, EFileLoggingModeAppend, aFmt, list);
       
    38     }
       
    39 
       
    40 
       
    41 #ifdef __WINS__
       
    42 #define FLOG(arg...)   { FPrint(arg); }
       
    43 //#define FLOG(a) { RDebug::Print(a);  }
       
    44 #else
       
    45 //#define FLOG(arg...) { RDebug::Print(arg);  }
       
    46 #define FLOG(arg...)   { FPrint(arg); }
       
    47 #endif
       
    48 
       
    49 #else // _DEBUG
       
    50 
       
    51 #define FLOG(arg...)  //  No loggings
       
    52 
       
    53 #endif // _DEBUG
       
    54 
       
    55 
       
    56 
       
    57 
       
    58 #endif  // RINGINGTONE_3D_PLUGIN_DEBUG_H
       
    59 
       
    60 // End of File