Merge Sebastian's changes
authorBrendan Donegan <brendand@symbian.org>
Sat, 01 May 2010 21:58:19 +0100
changeset 78 6e40b14bb2cd
parent 77 6284a24658d6 (current diff)
parent 75 5382889bbbb4 (diff)
child 79 ba4dba32295b
Merge Sebastian's changes
application/sis/podcatcher_udeb.sis
application/sis/podcatcher_udeb_signed.sis
application/sis/podcatcher_urel.sis
application/sis/podcatcher_urel_signed.sis
--- a/application/group/Podcast.mmp	Sat May 01 21:56:59 2010 +0100
+++ b/application/group/Podcast.mmp	Sat May 01 21:58:19 2010 +0100
@@ -97,3 +97,4 @@
 LIBRARY ws32.lib 
 LIBRARY hlplch.lib
 LIBRARY bitgdi.lib 
+LIBRARY cmmanager.lib 
Binary file application/sis/podcatcher_udeb.sis has changed
Binary file application/sis/podcatcher_udeb_signed.sis has changed
Binary file application/sis/podcatcher_urel.sis has changed
Binary file application/sis/podcatcher_urel_signed.sis has changed
--- a/engine/group/engine.mmp	Sat May 01 21:56:59 2010 +0100
+++ b/engine/group/engine.mmp	Sat May 01 21:58:19 2010 +0100
@@ -28,7 +28,6 @@
 SYSTEMINCLUDE \epoc32\include\platform\mw
 SYSTEMINCLUDE \epoc32\include\stdapis
 
-// Engine
 SOURCE			HttpClient.cpp
 SOURCE			HttpEventHandler.cpp 
 SOURCE			FeedParser.cpp 
--- a/engine/src/PodcastModel.cpp	Sat May 01 21:56:59 2010 +0100
+++ b/engine/src/PodcastModel.cpp	Sat May 01 21:58:19 2010 +0100
@@ -72,21 +72,25 @@
 {
 	DP("CPodcastModel::ConstructL BEGIN");
 	User::LeaveIfError(iFsSession.Connect());
-	
 	iCommDB = CCommsDatabase::NewL (EDatabaseTypeUnspecified);
-	//iCommDB ->ShowHiddenRecords(); // magic
 	iIapNameArray = new (ELeave) CDesCArrayFlat(KDefaultGranu);
 	iSNAPNameArray = new (ELeave) CDesCArrayFlat(KDefaultGranu);
-	iCmManager.OpenL();
+
 	iImageHandler = CImageHandler::NewL(FsSession(), *this);
+
+	TRAPD(err,iCmManager.OpenL());
+	DP1("iCmManager.OpenL(),err=%d;", err);
 	
-	UpdateIAPListL();
-	UpdateSNAPListL();
+	if (err == KErrNone)
+		{
+		UpdateIAPListL();
+		UpdateSNAPListL();
+		}
 	
 	iSettingsEngine = CSettingsEngine::NewL(*this);
 	iConnectionEngine = CConnectionEngine::NewL(*this);	
 	
-	TRAPD(err, OpenDBL());
+	TRAP(err, OpenDBL());
 	
 	if (err != KErrNone)
 		{