Cleaning description better for second line in search results
authorteknolog
Thu, 25 Feb 2010 21:08:38 +0000
changeset 15 93d9f66bf50b
parent 14 4e75731546eb
child 16 7a4b769d94c8
Cleaning description better for second line in search results
application/sis/podcatcher_udeb.pkg
application/sis/podcatcher_udeb.sis
application/sis/podcatcher_udeb_signed.sis
application/sis/podcatcher_urel.pkg
application/sis/podcatcher_urel.sis
application/sis/podcatcher_urel_signed.sis
application/src/PodcastSearchView.cpp
engine/inc/PodcastUtils.h
engine/src/PodcastUtils.cpp
engine/src/ShowEngine.cpp
--- a/application/sis/podcatcher_udeb.pkg	Thu Feb 25 20:20:46 2010 +0000
+++ b/application/sis/podcatcher_udeb.pkg	Thu Feb 25 21:08:38 2010 +0000
@@ -16,11 +16,11 @@
 "..\help\podcatcher.hlp"-"!:\resource\help\podcatcher.hlp"
 
 ; configuration and DB
-"../../engine/config/defaultfeeds.xml"-"!:\private\A0009D00\defaultfeeds.xml"
-"../../engine/config/podcatcher.sqlite"-"!:\private\A0009D00\podcatcher.sqlite.template"
+"../../engine/config/defaultfeeds.xml"-"c:\private\A0009D00\defaultfeeds.xml"
+"../../engine/config/podcatcher.sqlite"-"c:\private\A0009D00\podcatcher.sqlite.template"
 
 ; backup
-"./backup_registration.xml" - "!:\private\A0009D00\backup_registration.xml"
+"./backup_registration.xml" - "c:\private\A0009D00\backup_registration.xml"
 
 ; app DLL
 ;"\epoc32\release\gcce\udeb\podcastengine.dll"-"!:\sys\bin\podcastengine.dll"
Binary file application/sis/podcatcher_udeb.sis has changed
Binary file application/sis/podcatcher_udeb_signed.sis has changed
--- a/application/sis/podcatcher_urel.pkg	Thu Feb 25 20:20:46 2010 +0000
+++ b/application/sis/podcatcher_urel.pkg	Thu Feb 25 21:08:38 2010 +0000
@@ -16,11 +16,11 @@
 "..\help\podcatcher.hlp"-"!:\resource\help\podcatcher.hlp"
 
 ; configuration and DB
-"../../engine/config/defaultfeeds.xml"-"!:\private\A0009D00\defaultfeeds.xml"
-"../../engine/config/podcatcher.sqlite"-"!:\private\A0009D00\podcatcher.sqlite.template"
+"../../engine/config/defaultfeeds.xml"-"c:\private\A0009D00\defaultfeeds.xml"
+"../../engine/config/podcatcher.sqlite"-"c:\private\A0009D00\podcatcher.sqlite.template"
 
 ; backup
-"./backup_registration.xml" - "!:\private\A0009D00\backup_registration.xml"
+"./backup_registration.xml" - "c:\private\A0009D00\backup_registration.xml"
 
 ; app DLL
 ;"\epoc32\release\gcce\urel\podcastengine.dll"-"!:\sys\bin\podcastengine.dll"
Binary file application/sis/podcatcher_urel.sis has changed
Binary file application/sis/podcatcher_urel_signed.sis has changed
--- a/application/src/PodcastSearchView.cpp	Thu Feb 25 20:20:46 2010 +0000
+++ b/application/src/PodcastSearchView.cpp	Thu Feb 25 21:08:38 2010 +0000
@@ -195,7 +195,7 @@
 			
 			TBuf<512> descr;
 			descr.Copy(fi->Description().Left(512));
-			
+			PodcastUtils::RemoveAllFormatting(descr);
 			iListboxFormatbuffer.Format(KSearchResultFormat(), iconIndex, &fi->Title(), &descr);
 			iItemArray->AppendL(iListboxFormatbuffer);
 			iListContainer->Listbox()->ItemDrawer()->SetPropertiesL(i, itemProps);
--- a/engine/inc/PodcastUtils.h	Thu Feb 25 20:20:46 2010 +0000
+++ b/engine/inc/PodcastUtils.h	Thu Feb 25 21:08:38 2010 +0000
@@ -36,6 +36,7 @@
 	IMPORT_C static void FileNameFromUrl(const TDesC &aUrl, TFileName &aFileName);
 	IMPORT_C static void SQLEncode(TDes &aString);
 	IMPORT_C static void XMLEncode(TDes &aString);
+	IMPORT_C static void RemoveAllFormatting(TDes & aString);
 };
 
 #endif /* PODCASTUTILS_H_ */
--- a/engine/src/PodcastUtils.cpp	Thu Feb 25 20:20:46 2010 +0000
+++ b/engine/src/PodcastUtils.cpp	Thu Feb 25 21:08:38 2010 +0000
@@ -126,6 +126,16 @@
 	CleanupStack::PopAndDestroy(tmpBuf);
 }
 
+EXPORT_C void PodcastUtils::RemoveAllFormatting(TDes & aString)
+	{
+	// check for combination first so we prevent adding two spaces 
+	ReplaceString(aString,_L("\r\n"), _L(" "));
+	
+	ReplaceString(aString,_L("\n"), _L(" "));
+	ReplaceString(aString,_L("\r"), _L(" "));
+	
+	}
+
 EXPORT_C void PodcastUtils::ReplaceString(TDes & aString, const TDesC& aStringToReplace, const TDesC& aReplacement)
 	{
 	TInt pos=aString.Find(aStringToReplace);
--- a/engine/src/ShowEngine.cpp	Thu Feb 25 20:20:46 2010 +0000
+++ b/engine/src/ShowEngine.cpp	Thu Feb 25 21:08:38 2010 +0000
@@ -271,7 +271,6 @@
 	if (iShowDownloading != NULL)
 		{
 		DP1("CShowEngine::Complete\tDownload of file: %S is complete", &iShowDownloading->FileName());		
-		// decide what kind of file this is		
 		if(aError != KErrCouldNotConnect)
 			{
 			if(aError == KErrDisconnected && iPodcastModel.SettingsEngine().DownloadSuspended())
@@ -303,7 +302,7 @@
 				DBRemoveDownload(iShowDownloading->Uid());
 				AddShowToMpxCollection(*iShowDownloading);				
 				NotifyShowFinishedL(aError);
-
+				iDownloadErrors = 0;
 				delete iShowDownloading;
 				iShowDownloading = NULL;
 				}