# HG changeset patch # User larspson # Date 1286970221 -7200 # Node ID c553fa9dcbe513f6d5db935b0ffe07fdca1ac48b # Parent 325137e6edd1c63ccb9169736e0a7d2d728254f4 Rename debug.h to podcatcher_debug.h diff -r 325137e6edd1 -r c553fa9dcbe5 application/src/PodcastAppui.cpp --- a/application/src/PodcastAppui.cpp Wed Oct 13 13:36:47 2010 +0200 +++ b/application/src/PodcastAppui.cpp Wed Oct 13 13:43:41 2010 +0200 @@ -26,7 +26,7 @@ #include "PodcastSearchView.h" #include "ShowEngine.h" #include "PodcastModel.h" -#include "debug.h" +#include "podcatcher_debug.h" #include "..\help\podcatcher.hlp.hrh" #include "PodcastApp.h" #include diff -r 325137e6edd1 -r c553fa9dcbe5 engine/group/bld.inf --- a/engine/group/bld.inf Wed Oct 13 13:36:47 2010 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -// ============================================================================ -// * Makefile for building: podcastengine -// * Generated by qmake (2.01a) (Qt 4.6.3) on: 2010-10-13T13:03:24 -// * This file is generated by qmake and should not be modified by the -// * user. -// * Project: podcatcher_engine.pro -// * Template: lib -// ============================================================================ - -#define BLD_INF_PODCATCHER_ENGINE_040D5A0B - - -prj_platforms - -WINSCW GCCE ARMV5 ARMV6 -DEFAULT - - -prj_mmpfiles - -gnumakefile Makefile_0xA11F867F.mk -podcatcher_engine_0xA11F867F.mmp - -prj_extensions - - - -prj_exports - -..\config\podcatcher.sqlite z:\private\A0009D00\podcatcher.sqlite.template -..\config\defaultfeeds.xml z:\private\A0009D00\defaultfeeds.xml -..\config\testfeeds.xml c:\data\testfeeds.xml diff -r 325137e6edd1 -r c553fa9dcbe5 engine/inc/PodcastModel.h --- a/engine/inc/PodcastModel.h Wed Oct 13 13:36:47 2010 +0200 +++ b/engine/inc/PodcastModel.h Wed Oct 13 13:43:41 2010 +0200 @@ -28,7 +28,7 @@ #include "FeedInfo.h" #include "ShowInfo.h" -#include "debug.h" +#include "podcatcher_debug.h" #include #include "ImageHandler.h" #include // MAknServerAppExitObserver diff -r 325137e6edd1 -r c553fa9dcbe5 engine/inc/debug.h --- a/engine/inc/debug.h Wed Oct 13 13:36:47 2010 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,419 +0,0 @@ -/* -* Copyright (c) 2007-2010 Sebastian Brannstrom, Lars Persson, EmbedDev AB -* -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of the License "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: -* EmbedDev AB - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -// dbg_dp.h -// debug printouts - -/************************************************* - - USAGE - DP("Hi there"); - DP1("My name is %S", &name); - DPV1("My detailed info is %S", &detailedInfo); - DP_MSG(aMsg); - DP_MSG_COMPL(aMsg, r); - DP_EXC(aType); - - CUSTOMISATION - With SUPPORT_DP_CLIENT_SERVER_V2 defined, a - proper opcode type (default TOpcode) needs to - be specified. - - NOTE - This file may be included by many components - within one application and defining something - here will affect all such components. In such - cases it might be better to state a MACRO in - the intended component's MMP file. - -**************************************************/ - -#ifndef ___DBG_DP_H -#define ___DBG_DP_H - -// This file may be included butThese defines may be individual - -//#if defined (_DEBUG) && (__WINS__) -//#if defined _DEBUG -# define SUPPORT_DP_STANDARD -# define SUPPORT_DP_FILE -//#endif - -// #define SUPPORT_RDEBUG_PRINT -// #define SUPPORT_DP_VERBOSE -// #define SUPPORT_DP_THREAD_NAME -// #define SUPPORT_DP_CLIENT_SERVER_V2 -// #define SUPPORT_DP_EXCEPTION -// #define SUPPORT_DP_COMMDB - -// ------------------------------------------------- no need to modify - -#if defined (SUPPORT_RDEBUG_PRINT)\ - || defined (SUPPORT_DP_VERBOSE)\ - || defined(SUPPORT_DP_CLIENT_SERVER_V2)\ - || defined(SUPPORT_DP_EXCEPTION) -# define SUPPORT_DP_STANDARD -#endif - -#if defined(SUPPORT_RDEBUG_PRINT) -# include // RDebug -#endif - -#if defined(SUPPORT_DP_FILE) -# include -#endif - -#if defined(SUPPORT_DP_CLIENT_SERVER_V2) -# include "dbg_cmn.h" // TOpcode -#endif - -#if defined(SUPPORT_DP_COMMDB) -# include // TCommDbConnPref -#endif - -namespace Dbg -{ - -// ------------------------------------------------- file output -#ifdef SUPPORT_DP_FILE -_LIT(KLogDir, "podcatcher"); -_LIT(KLogFile, "debug.log"); -# define DPF(a); RFileLogger::WriteFormat(Dbg::KLogDir, Dbg::KLogFile, EFileLoggingModeAppend, _L("%S %s"), &s, L##a); -# define DPF1(a,b); RFileLogger::WriteFormat(Dbg::KLogDir, Dbg::KLogFile, EFileLoggingModeAppend, _L("%S " L##a), &s, b); -# define DPF2(a,b,c); RFileLogger::WriteFormat(Dbg::KLogDir, Dbg::KLogFile, EFileLoggingModeAppend, _L("%S " L##a), &s, b,c); -# define DPF3(a,b,c,d); RFileLogger::WriteFormat(Dbg::KLogDir, Dbg::KLogFile, EFileLoggingModeAppend, _L("%S " L##a), &s, b,c,d); -# define DPF4(a,b,c,d,e); RFileLogger::WriteFormat(Dbg::KLogDir, Dbg::KLogFile, EFileLoggingModeAppend, _L("%S " L##a), &s, b,c,d,e); -# define DPF5(a,b,c,d,e,f); RFileLogger::WriteFormat(Dbg::KLogDir, Dbg::KLogFile, EFileLoggingModeAppend, _L("%S " L##a), &s, b,c,d,e,f); -# define DPF6(a,b,c,d,e,f,g); RFileLogger::WriteFormat(Dbg::KLogDir, Dbg::KLogFile, EFileLoggingModeAppend, _L("%S " L##a), &s, b, c, d,e,f,g); -# define HEXDUMP(aHeader, aMargin, aPtr, aLen); RFileLogger::HexDump(Dbg::KLogDir, Dbg::KLogFile, EFileLoggingModeAppend, aHeader, aMargin, aPtr, aLen); -# define DPDT(dt); RFileLogger::WriteFormat(Dbg::KLogDir, Dbg::KLogFile, EFileLoggingModeAppend, _L("DateTime: %d-%d-%d %d:%d:%d "), dt.Year(), dt.Month()+1, dt.Day()+1, dt.Hour(), dt.Minute(), dt.Second() ); - -#else -# define DPF(a); -# define DPF1(a,b); -# define DPF2(a,b,c); -# define DPF3(a,b,c,d); -# define DPF4(a,b,c,d,e); -# define DPF5(a,b,c,d,e,f); -# define DPF6(a,b,c,d,e,f,g); -# define HEXDUMP(aHeader, aMargin, aPtr, aLen); -# define DPDT(dt); -#endif -// ------------------------------------------------- standard debugprint -#ifdef SUPPORT_DP_STANDARD - -inline void FormatThreadName(TFullName& aName) -{ - const TChar KLeftBracket('['); - const TChar KScope(':'); - TInt a = aName.LocateReverse(KLeftBracket); - if (a==KErrNotFound) - { return; } - TInt b = aName.Locate(KScope); - if (b==KErrNotFound || b // RDebug +#endif + +#if defined(SUPPORT_DP_FILE) +# include +#endif + +#if defined(SUPPORT_DP_CLIENT_SERVER_V2) +# include "dbg_cmn.h" // TOpcode +#endif + +#if defined(SUPPORT_DP_COMMDB) +# include // TCommDbConnPref +#endif + +namespace Dbg +{ + +// ------------------------------------------------- file output +#ifdef SUPPORT_DP_FILE +_LIT(KLogDir, "podcatcher"); +_LIT(KLogFile, "debug.log"); +# define DPF(a); RFileLogger::WriteFormat(Dbg::KLogDir, Dbg::KLogFile, EFileLoggingModeAppend, _L("%S %s"), &s, L##a); +# define DPF1(a,b); RFileLogger::WriteFormat(Dbg::KLogDir, Dbg::KLogFile, EFileLoggingModeAppend, _L("%S " L##a), &s, b); +# define DPF2(a,b,c); RFileLogger::WriteFormat(Dbg::KLogDir, Dbg::KLogFile, EFileLoggingModeAppend, _L("%S " L##a), &s, b,c); +# define DPF3(a,b,c,d); RFileLogger::WriteFormat(Dbg::KLogDir, Dbg::KLogFile, EFileLoggingModeAppend, _L("%S " L##a), &s, b,c,d); +# define DPF4(a,b,c,d,e); RFileLogger::WriteFormat(Dbg::KLogDir, Dbg::KLogFile, EFileLoggingModeAppend, _L("%S " L##a), &s, b,c,d,e); +# define DPF5(a,b,c,d,e,f); RFileLogger::WriteFormat(Dbg::KLogDir, Dbg::KLogFile, EFileLoggingModeAppend, _L("%S " L##a), &s, b,c,d,e,f); +# define DPF6(a,b,c,d,e,f,g); RFileLogger::WriteFormat(Dbg::KLogDir, Dbg::KLogFile, EFileLoggingModeAppend, _L("%S " L##a), &s, b, c, d,e,f,g); +# define HEXDUMP(aHeader, aMargin, aPtr, aLen); RFileLogger::HexDump(Dbg::KLogDir, Dbg::KLogFile, EFileLoggingModeAppend, aHeader, aMargin, aPtr, aLen); +# define DPDT(dt); RFileLogger::WriteFormat(Dbg::KLogDir, Dbg::KLogFile, EFileLoggingModeAppend, _L("DateTime: %d-%d-%d %d:%d:%d "), dt.Year(), dt.Month()+1, dt.Day()+1, dt.Hour(), dt.Minute(), dt.Second() ); + +#else +# define DPF(a); +# define DPF1(a,b); +# define DPF2(a,b,c); +# define DPF3(a,b,c,d); +# define DPF4(a,b,c,d,e); +# define DPF5(a,b,c,d,e,f); +# define DPF6(a,b,c,d,e,f,g); +# define HEXDUMP(aHeader, aMargin, aPtr, aLen); +# define DPDT(dt); +#endif +// ------------------------------------------------- standard debugprint +#ifdef SUPPORT_DP_STANDARD + +inline void FormatThreadName(TFullName& aName) +{ + const TChar KLeftBracket('['); + const TChar KScope(':'); + TInt a = aName.LocateReverse(KLeftBracket); + if (a==KErrNotFound) + { return; } + TInt b = aName.Locate(KScope); + if (b==KErrNotFound || b #include #include + _LIT(KMbmExtension, ".mbm"); EXPORT_C CFeedInfo* CFeedInfo::NewL() diff -r 325137e6edd1 -r c553fa9dcbe5 engine/src/FeedParser.cpp --- a/engine/src/FeedParser.cpp Wed Oct 13 13:36:47 2010 +0200 +++ b/engine/src/FeedParser.cpp Wed Oct 13 13:43:41 2010 +0200 @@ -24,7 +24,7 @@ #include #include #include -#include "debug.h" +#include "podcatcher_debug.h" #include "podcastutils.h" using namespace Xml; diff -r 325137e6edd1 -r c553fa9dcbe5 engine/src/HttpClient.cpp --- a/engine/src/HttpClient.cpp Wed Oct 13 13:36:47 2010 +0200 +++ b/engine/src/HttpClient.cpp Wed Oct 13 13:43:41 2010 +0200 @@ -9,7 +9,7 @@ #include #include #include -#include "debug.h" +#include "podcatcher_debug.h" #include "constants.h" #include "HttpClient.h" #include "connectionengine.h" diff -r 325137e6edd1 -r c553fa9dcbe5 engine/src/HttpEventHandler.cpp --- a/engine/src/HttpEventHandler.cpp Wed Oct 13 13:36:47 2010 +0200 +++ b/engine/src/HttpEventHandler.cpp Wed Oct 13 13:43:41 2010 +0200 @@ -22,6 +22,7 @@ #include "HttpEventHandler.h" #include "bautils.h" #include "Httpclient.h" +#include "podcatcher_debug.h" void CHttpEventHandler::ConstructL() { diff -r 325137e6edd1 -r c553fa9dcbe5 engine/src/ImageHandler.cpp --- a/engine/src/ImageHandler.cpp Wed Oct 13 13:36:47 2010 +0200 +++ b/engine/src/ImageHandler.cpp Wed Oct 13 13:43:41 2010 +0200 @@ -17,7 +17,7 @@ */ #include "ImageHandler.h" -#include "debug.h" +#include "podcatcher_debug.h" // ============================================================================= // CImageHandler, a utility class for loading images. diff -r 325137e6edd1 -r c553fa9dcbe5 engine/src/MetaDataReader.cpp --- a/engine/src/MetaDataReader.cpp Wed Oct 13 13:36:47 2010 +0200 +++ b/engine/src/MetaDataReader.cpp Wed Oct 13 13:43:41 2010 +0200 @@ -21,7 +21,7 @@ #include #include #include -#include "debug.h" +#include "podcatcher_debug.h" const TInt KMaxParseBuffer = 1024; diff -r 325137e6edd1 -r c553fa9dcbe5 engine/src/OpmlParser.cpp --- a/engine/src/OpmlParser.cpp Wed Oct 13 13:36:47 2010 +0200 +++ b/engine/src/OpmlParser.cpp Wed Oct 13 13:43:41 2010 +0200 @@ -17,7 +17,7 @@ */ #include "OpmlParser.h" -#include "debug.h" +#include "podcatcher_debug.h" #include #include #include diff -r 325137e6edd1 -r c553fa9dcbe5 engine/src/PodcastUtils.cpp --- a/engine/src/PodcastUtils.cpp Wed Oct 13 13:36:47 2010 +0200 +++ b/engine/src/PodcastUtils.cpp Wed Oct 13 13:43:41 2010 +0200 @@ -20,7 +20,7 @@ #include #include // for ELineBreak #include "PodcastUtils.h" -#include "debug.h" +#include "podcatcher_debug.h" #include "FeedEngine.h" // for KMaxDescriptionLength EXPORT_C void PodcastUtils::FixProtocolsL(TDes &aUrl) diff -r 325137e6edd1 -r c553fa9dcbe5 engine/src/ShowEngine.cpp --- a/engine/src/ShowEngine.cpp Wed Oct 13 13:36:47 2010 +0200 +++ b/engine/src/ShowEngine.cpp Wed Oct 13 13:43:41 2010 +0200 @@ -24,7 +24,7 @@ #include "SettingsEngine.h" #include #include -#include "debug.h" +#include "podcatcher_debug.h" #include "PodcastUtils.h" #ifdef ENABLE_MPX_INTEGRATION