engine/src/PodcastModel.cpp
changeset 80 50345a6ad0c3
parent 77 403412eb5292
child 81 27f6f5827e5d
equal deleted inserted replaced
79:0bd6b9a3f027 80:50345a6ad0c3
   415 	CleanupStack::PopAndDestroy(proxyTableView);
   415 	CleanupStack::PopAndDestroy(proxyTableView);
   416 	CleanupStack::PopAndDestroy(iapServiceType);
   416 	CleanupStack::PopAndDestroy(iapServiceType);
   417 	CleanupStack::PopAndDestroy(table);
   417 	CleanupStack::PopAndDestroy(table);
   418 	}
   418 	}
   419 	
   419 	
   420 	
       
   421 TInt CPodcastModel::GetIapId()
   420 TInt CPodcastModel::GetIapId()
   422 	{
   421 	{
   423 	_LIT(KSetting, "IAP\\Id");
   422 	_LIT(KSetting, "IAP\\Id");
   424 	TUint32 iapId = 0;
   423 	TUint32 iapId = 0;
   425 	iConnectionEngine->Connection().GetIntSetting(KSetting, iapId);
   424 	iConnectionEngine->Connection().GetIntSetting(KSetting, iapId);
   426 	return iapId;
   425 	return iapId;
   427 	}
   426 	}
   428 
   427 
   429 EXPORT_C void CPodcastModel::GetAllShowsL()
       
   430 	{
       
   431 	iActiveShowList.ResetAndDestroy();
       
   432 	iShowEngine->GetAllShowsL(iActiveShowList);
       
   433 	}
       
   434 
       
   435 EXPORT_C void CPodcastModel::GetNewShowsL()
       
   436 	{
       
   437 	iActiveShowList.ResetAndDestroy();
       
   438 	iShowEngine->GetNewShowsL(iActiveShowList);	
       
   439 	}
       
   440 
       
   441 EXPORT_C void CPodcastModel::GetShowsDownloadedL()
       
   442 	{
       
   443 	iActiveShowList.ResetAndDestroy();
       
   444 	iShowEngine->GetShowsDownloadedL(iActiveShowList);
       
   445 	}
       
   446 
       
   447 EXPORT_C void CPodcastModel::GetShowsDownloadingL()
   428 EXPORT_C void CPodcastModel::GetShowsDownloadingL()
   448 	{
   429 	{
   449 	iActiveShowList.ResetAndDestroy();
   430 	iActiveShowList.ResetAndDestroy();
   450 	iShowEngine->GetShowsDownloadingL(iActiveShowList);
   431 	iShowEngine->GetShowsDownloadingL(iActiveShowList);
   451 	}
   432 	}
   452 
   433 
   453 EXPORT_C void CPodcastModel::GetShowsByFeedL(TUint aFeedUid)
   434 EXPORT_C void CPodcastModel::GetShowsByFeedL(TUint aFeedUid)
   454 	{
   435 	{
       
   436 	DP1("iActiveShowList.Count()=%d", iActiveShowList.Count());
   455 	iActiveShowList.ResetAndDestroy();
   437 	iActiveShowList.ResetAndDestroy();
   456 	iShowEngine->GetShowsByFeedL(iActiveShowList, aFeedUid);
   438 	iShowEngine->GetShowsByFeedL(iActiveShowList, aFeedUid);
   457 	}
   439 	}
   458 
   440 
   459 EXPORT_C void CPodcastModel::MarkSelectionPlayedL()
   441 EXPORT_C void CPodcastModel::MarkSelectionPlayedL()