Export the proper functions for DLL usage
authorLars Persson <lars.persson@embeddev.se>
Thu, 11 Mar 2010 20:53:00 +0100
changeset 59 9569ea080d5a
parent 58 0050a64a90f8
child 60 4d230e702aa3
child 91 87cb33beeae2
Export the proper functions for DLL usage
application/src/PodcastFeedView.cpp
engine/BWINS/podcastengineu.def
engine/inc/ConnectionEngine.h
engine/src/ConnectionEngine.cpp
--- a/application/src/PodcastFeedView.cpp	Thu Mar 11 20:45:26 2010 +0100
+++ b/application/src/PodcastFeedView.cpp	Thu Mar 11 20:53:00 2010 +0100
@@ -398,7 +398,7 @@
 			aFeedInfo.SetFeedIconIndex(iconIndex);
 			}
 		else {
-			if(BaflUtils::FileExists(iPodcastModel.FsSession(), aFeedInfo.ImageFileName()))
+			if(BaflUtils::FileExists(iEikonEnv->FsSession(), aFeedInfo.ImageFileName()))
 			{
 			// If this fails, no reason to worry
 			TRAP_IGNORE(iPodcastModel.ImageHandler().LoadFileAndScaleL(aFeedInfo.FeedIcon(), aFeedInfo.ImageFileName(), TSize(64,56), *this, aFeedInfo.Uid()));
--- a/engine/BWINS/podcastengineu.def	Thu Mar 11 20:45:26 2010 +0100
+++ b/engine/BWINS/podcastengineu.def	Thu Mar 11 20:53:00 2010 +0100
@@ -173,4 +173,5 @@
 	?Url@CFeedInfo@@QBEABVTDesC16@@XZ @ 172 NONAME ; class TDesC16 const & CFeedInfo::Url(void) const
 	?Url@CShowInfo@@QBEABVTDesC16@@XZ @ 173 NONAME ; class TDesC16 const & CShowInfo::Url(void) const
 	?XMLEncode@PodcastUtils@@SAXAAVTDes16@@@Z @ 174 NONAME ; void PodcastUtils::XMLEncode(class TDes16 &)
+	?AddObserver@CConnectionEngine@@QAEXPAVMConnectionObserver@@@Z @ 175 NONAME ; void CConnectionEngine::AddObserver(class MConnectionObserver *)
 
--- a/engine/inc/ConnectionEngine.h	Thu Mar 11 20:45:26 2010 +0100
+++ b/engine/inc/ConnectionEngine.h	Thu Mar 11 20:53:00 2010 +0100
@@ -67,7 +67,7 @@
 	void StartL(TConnectionType aConnectionType);
 	RConnection& Connection();
 	TConnectionState ConnectionState();
-	void AddObserver(MConnectionObserver* aObserver);
+	IMPORT_C void AddObserver(MConnectionObserver* aObserver);
 	RSocketServ& SockServ();
 private: // Methods
 	CConnectionEngine(CPodcastModel& aPodcastModel);
--- a/engine/src/ConnectionEngine.cpp	Thu Mar 11 20:45:26 2010 +0100
+++ b/engine/src/ConnectionEngine.cpp	Thu Mar 11 20:53:00 2010 +0100
@@ -261,7 +261,7 @@
 	return iConnectionState;
 	}
 
-void CConnectionEngine::AddObserver(MConnectionObserver* aObserver)
+EXPORT_C void CConnectionEngine::AddObserver(MConnectionObserver* aObserver)
 	{
 	iObserverArray.Append(aObserver);
 	}