scrsaver/scrsaverplugins/ScreenSaverGifAnimPlugin/inc/GifAnimationUtils.h
branchRCL_3
changeset 23 e8d784ac1a4b
parent 0 040fcad49f44
equal deleted inserted replaced
22:aaeeca1f15af 23:e8d784ac1a4b
       
     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:     Screensaver GifAnimation plug-in utility file header
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 #ifndef GIFANIMPLUGINUTIL_H
       
    23 #define GIFANIMPLUGINUTIL_H
       
    24 
       
    25 // INCLUDES
       
    26 #include <e32base.h>
       
    27 #include <aknnotewrappers.h>
       
    28 
       
    29 #ifdef _DEBUG
       
    30 
       
    31 // MACROS
       
    32 #define DBG_TRACE( str ) \
       
    33     RDebug::Printf( "GifAnimation plug-in: %s:%s:%d %s", \
       
    34                     __FILE__, __FUNCTION__, __LINE__, (str) );
       
    35 #define DBG_TRACE_FN_BEGIN \
       
    36     RDebug::Printf("GifAnimation plug-in: %s:%s begin", \
       
    37                    __FILE__, __FUNCTION__);
       
    38 #define DBG_TRACE_FN_END \
       
    39     RDebug::Printf("GifAnimation plug-in: %s:%s end", \
       
    40                    __FILE__, __FUNCTION__);
       
    41 
       
    42 #define DBG_ERR_DLG( strDesC, code ) \
       
    43         CAknErrorNote* informationNote = \
       
    44             new ( ELeave ) CAknErrorNote(ETrue); \
       
    45         TBuf<256> message; \
       
    46         _LIT(KErrorFormat, "Error: %S, code: %d"); \
       
    47         message.Format(KErrorFormat, &strDesC, code); \
       
    48         informationNote->ExecuteLD( message );
       
    49 #else
       
    50 
       
    51 #define DBG_TRACE( str )
       
    52 #define DBG_TRACE_FN_BEGIN
       
    53 #define DBG_TRACE_FN_END
       
    54 #define DBG_ERR_DLG( strDesC, code )
       
    55 
       
    56 #endif // _DEBUG
       
    57 
       
    58 #endif // GIFANIMPLUGINUTIL_H