equal
deleted
inserted
replaced
35 #include "Podcatcher.pan" |
35 #include "Podcatcher.pan" |
36 |
36 |
37 const TInt KMaxFeedNameLength = 100; |
37 const TInt KMaxFeedNameLength = 100; |
38 const TInt KMaxUnplayedFeedsLength =64; |
38 const TInt KMaxUnplayedFeedsLength =64; |
39 const TInt KADayInHours = 24; |
39 const TInt KADayInHours = 24; |
40 //const TInt KDefaultGran = 5; |
|
41 //const TInt KNumberOfFilesMaxLength = 4; |
|
42 #define KMaxMessageLength 200 |
40 #define KMaxMessageLength 200 |
43 #define KMaxTitleLength 100 |
41 #define KMaxTitleLength 100 |
44 //const TInt KMimeBufLength = 100; |
|
45 |
42 |
46 _LIT(KFeedFormat, "%d\t%S\t%S%S"); |
43 _LIT(KFeedFormat, "%d\t%S\t%S%S"); |
47 enum |
44 enum |
48 { |
45 { |
49 EFeedIcon |
46 EFeedIcon |
226 DP("CPodcastFeedView::HandleListBoxEventL END"); |
223 DP("CPodcastFeedView::HandleListBoxEventL END"); |
227 } |
224 } |
228 |
225 |
229 void CPodcastFeedView::FeedUpdateAllCompleteL(TFeedState /*aState*/) |
226 void CPodcastFeedView::FeedUpdateAllCompleteL(TFeedState /*aState*/) |
230 { |
227 { |
231 iUpdatingAllRunning = EFalse; |
228 iUpdatingRunning = EFalse; |
232 UpdateToolbar(); |
229 UpdateToolbar(); |
233 } |
230 } |
234 |
231 |
235 void CPodcastFeedView::FeedDownloadStartedL(TFeedState /*aState*/, TUint aFeedUid) |
232 void CPodcastFeedView::FeedDownloadStartedL(TFeedState /*aState*/, TUint aFeedUid) |
236 { |
233 { |
237 // Update status text |
234 // Update status text |
|
235 iUpdatingRunning = ETrue; |
238 UpdateFeedInfoStatusL(aFeedUid, ETrue); |
236 UpdateFeedInfoStatusL(aFeedUid, ETrue); |
239 |
237 |
240 UpdateToolbar(); |
238 UpdateToolbar(); |
241 } |
239 } |
242 |
240 |
501 case EPodcastDeleteFeed: |
499 case EPodcastDeleteFeed: |
502 HandleRemoveFeedL(); |
500 HandleRemoveFeedL(); |
503 break; |
501 break; |
504 case EPodcastUpdateAllFeeds: |
502 case EPodcastUpdateAllFeeds: |
505 { |
503 { |
506 iUpdatingAllRunning = ETrue; |
|
507 iPodcastModel.FeedEngine().UpdateAllFeedsL(); |
504 iPodcastModel.FeedEngine().UpdateAllFeedsL(); |
508 UpdateToolbar(); |
505 UpdateToolbar(); |
509 }break; |
506 }break; |
510 case EPodcastUpdateFeed: |
507 case EPodcastUpdateFeed: |
511 { |
508 { |
512 HandleUpdateFeedL(); |
509 HandleUpdateFeedL(); |
513 }break; |
510 }break; |
514 case EPodcastCancelUpdateAllFeeds: |
511 case EPodcastCancelUpdateAllFeeds: |
515 { |
512 { |
516 if(iUpdatingAllRunning) |
513 if(iUpdatingRunning) |
517 { |
514 { |
518 iUpdatingAllRunning = EFalse; |
|
519 iPodcastModel.FeedEngine().CancelUpdateAllFeeds(); |
515 iPodcastModel.FeedEngine().CancelUpdateAllFeeds(); |
520 } |
516 } |
521 }break; |
517 }break; |
522 case EAknSoftkeyExit: |
518 case EAknSoftkeyExit: |
523 { |
519 { |
562 if (toolbar) |
558 if (toolbar) |
563 { |
559 { |
564 if (iListContainer->IsVisible()) { |
560 if (iListContainer->IsVisible()) { |
565 toolbar->SetToolbarVisibility(aVisible); |
561 toolbar->SetToolbarVisibility(aVisible); |
566 } |
562 } |
567 toolbar->HideItem(EPodcastUpdateAllFeeds, iUpdatingAllRunning, ETrue); |
563 toolbar->HideItem(EPodcastUpdateAllFeeds, iUpdatingRunning, ETrue); |
568 toolbar->HideItem(EPodcastCancelUpdateAllFeeds, !iUpdatingAllRunning, ETrue ); |
564 toolbar->HideItem(EPodcastCancelUpdateAllFeeds, !iUpdatingRunning, ETrue ); |
569 toolbar->SetItemDimmed(EPodcastAddFeed, iUpdatingAllRunning, ETrue ); |
565 toolbar->SetItemDimmed(EPodcastAddFeed, iUpdatingRunning, ETrue ); |
570 toolbar->SetItemDimmed(EPodcastSettings, iUpdatingAllRunning, ETrue ); |
566 toolbar->SetItemDimmed(EPodcastSettings, iUpdatingRunning, ETrue ); |
571 } |
567 } |
572 DP("CPodcastFeedView::UpdateToolbar END"); |
568 DP("CPodcastFeedView::UpdateToolbar END"); |
573 } |
569 } |
574 |
570 |
575 void CPodcastFeedView::HandleAddFeedL() |
571 void CPodcastFeedView::HandleAddFeedL() |