multimediacommscontroller/mmccfilesourcesink/inc/mccfilesourcelogs.h
changeset 0 1bce908db942
equal deleted inserted replaced
-1:000000000000 0:1bce908db942
       
     1 /*
       
     2 * Copyright (c) 2005 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 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef MCCFILESOURCELOGS_H
       
    22 #define MCCFILESOURCELOGS_H
       
    23 
       
    24 #include "mcclogs.h"
       
    25 
       
    26 _LIT(KFileSource, "Mcc/FileSource:");
       
    27 
       
    28 #ifdef _DEBUG
       
    29 	#define __MCC_FILESOURCE_CONTROLL
       
    30 	#define __MCC_FILESOURCE_MEDIA
       
    31 #endif // end of _DEBUG
       
    32 
       
    33 #ifdef __MCC_FILESOURCE_CONTROLL
       
    34 	#define __FILESOURCE_CONTROLL( a ) \
       
    35 		{  _LIT( KStr, a ); TMccLog::Print( KFileSource, KStr ); }
       
    36 	#define __FILESOURCE_CONTROLL_INT1( a, b ) \
       
    37 		{  _LIT( KStr, a ); TMccLog::Print( KFileSource, KStr, b ); }
       
    38 	#define __FILESOURCE_CONTROLL_INT2( a, b, c, d ) \
       
    39 		{ _LIT( KStr1, a ); _LIT( KStr2, c ); \
       
    40 		  TMccLog::Print( KFileSource, KStr1, b, KStr2, d ); }
       
    41 	#define __FILESOURCE_CONTROLL_INT4( a, b, c, d, e, f, g, h ) \
       
    42 		{ _LIT( KStr1, a ); _LIT( KStr2, c ); _LIT( KStr3, e ); _LIT( KStr4, g );\
       
    43 		  TMccLog::Print( KFileSource, KStr1, b, KStr2, d, KStr3, f, KStr4, h ); }
       
    44 #else
       
    45 	#define __FILESOURCE_CONTROLL( a )
       
    46 	#define __FILESOURCE_CONTROLL_INT1( a, b )
       
    47 	#define __FILESOURCE_CONTROLL_INT2( a, b, c, d )
       
    48 	#define __FILESOURCE_CONTROLL_INT4( a, b, c, d, e, f, g, h )
       
    49 #endif // end of ifdef __MCC_FILESOURCE_CONTROLL
       
    50 
       
    51 #ifdef __MCC_FILESOURCE_MEDIA
       
    52 	#define __FILESOURCE_MEDIA( a )	\
       
    53 		{  _LIT( KStr, a ); TMccLog::Print( KFileSource, KStr ); }
       
    54 	#define __FILESOURCE_MEDIA_INT1( a, b ) 	\
       
    55 		{  _LIT( KStr, a ); TMccLog::Print( KFileSource, KStr, b ); }
       
    56 	#define __FILESOURCE_MEDIA_INT2( a, b, c, d ) \
       
    57 		{  _LIT( KStr1, a ); _LIT( KStr2, c ); \
       
    58 		   TMccLog::Print( KFileSource, KStr1, b, KStr2, d );}
       
    59 #else
       
    60 	#define __FILESOURCE_MEDIA( a )
       
    61 	#define __FILESOURCE_MEDIA_INT1( a, b )
       
    62 	#define __FILESOURCE_MEDIA_INT2( a, b, c, d )
       
    63 #endif // end of ifdef __MCC_FILESOURCE_MEDIA
       
    64 
       
    65 #endif // End of define MCCFILESOURCELOGS_H
       
    66 
       
    67 // end of file