application/src/PodcastAppui.cpp
changeset 13 f58e3c482bd9
parent 11 f6c975c3b702
child 16 7a4b769d94c8
--- a/application/src/PodcastAppui.cpp	Thu Feb 25 18:56:36 2010 +0000
+++ b/application/src/PodcastAppui.cpp	Thu Feb 25 20:02:27 2010 +0000
@@ -45,6 +45,8 @@
     DP("CPodcastAppUi::ConstructL() BEGIN");
     BaseConstructL(CAknAppUi::EAknEnableSkin); 
 
+    iPodcastModel->ConnectionEngine().AddObserver(this);
+    
     DP("Constructing FeedView");
 	iFeedView = CPodcastFeedView::NewL(*iPodcastModel);
 	this->AddViewL(iFeedView);
@@ -272,3 +274,22 @@
 	
 	iTabsVisible=aVisible;
 	}
+
+void CPodcastAppUi::ConnectionSelectionStart()
+	{
+	DP("CPodcastAppUi::ConnectionSelectionStart()");
+	iFeedView->UpdateToolbar(EFalse);
+	iShowsView->UpdateToolbar(EFalse);
+	iQueueView->UpdateToolbar(EFalse);
+	iSearchView->UpdateToolbar(EFalse);
+	}
+
+void CPodcastAppUi::ConnectionSelectionEnd()
+	{
+	DP("CPodcastAppUi::ConnectionSelectionEnd()");
+	iFeedView->UpdateToolbar(ETrue);
+	iFeedView->UpdateToolbar(ETrue);
+	iShowsView->UpdateToolbar(ETrue);
+	iQueueView->UpdateToolbar(ETrue);
+	iSearchView->UpdateToolbar(ETrue);
+	}