diff -r aaeeca1f15af -r e8d784ac1a4b scrsaver/scrsaverplugins/ScreenSaverGifAnimPlugin/inc/GifAnimationUtils.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/scrsaver/scrsaverplugins/ScreenSaverGifAnimPlugin/inc/GifAnimationUtils.h Wed Sep 01 12:30:40 2010 +0100 @@ -0,0 +1,58 @@ +/* +* Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Screensaver GifAnimation plug-in utility file header +* +*/ + + + + + +#ifndef GIFANIMPLUGINUTIL_H +#define GIFANIMPLUGINUTIL_H + +// INCLUDES +#include +#include + +#ifdef _DEBUG + +// MACROS +#define DBG_TRACE( str ) \ + RDebug::Printf( "GifAnimation plug-in: %s:%s:%d %s", \ + __FILE__, __FUNCTION__, __LINE__, (str) ); +#define DBG_TRACE_FN_BEGIN \ + RDebug::Printf("GifAnimation plug-in: %s:%s begin", \ + __FILE__, __FUNCTION__); +#define DBG_TRACE_FN_END \ + RDebug::Printf("GifAnimation plug-in: %s:%s end", \ + __FILE__, __FUNCTION__); + +#define DBG_ERR_DLG( strDesC, code ) \ + CAknErrorNote* informationNote = \ + new ( ELeave ) CAknErrorNote(ETrue); \ + TBuf<256> message; \ + _LIT(KErrorFormat, "Error: %S, code: %d"); \ + message.Format(KErrorFormat, &strDesC, code); \ + informationNote->ExecuteLD( message ); +#else + +#define DBG_TRACE( str ) +#define DBG_TRACE_FN_BEGIN +#define DBG_TRACE_FN_END +#define DBG_ERR_DLG( strDesC, code ) + +#endif // _DEBUG + +#endif // GIFANIMPLUGINUTIL_H