# HG changeset patch # User Sebastian Brannstrom # Date 1290370267 0 # Node ID 931d0db6374db0d74076621a8700ca3b84777b12 # Parent 31968c23152c877b67991b7997d0d4e8f98a30a9 Catchup with Symbian1 diff -r 31968c23152c -r 931d0db6374d application/data/PodcastClient_spanish.rls --- a/application/data/PodcastClient_spanish.rls Fri Nov 19 01:47:31 2010 +0000 +++ b/application/data/PodcastClient_spanish.rls Sun Nov 21 20:11:07 2010 +0000 @@ -131,9 +131,13 @@ // Show view rls_string STRING_r_view_mark_as_played_cmd_short "Marcar leido" +rls_string STRING_r_view_mark_as_played_cmd_short "Marcar leido" +rls_string STRING_r_view_mark_as_unplayed_cmd_short "Marcar nuevo" rls_string STRING_r_view_mark_as_unplayed_cmd_short "Marcar nuevo" rls_string STRING_r_view_download_show_cmd "Descargar" +rls_string STRING_r_view_download_show_cmd_short "Descargar" rls_string STRING_r_view_delete_show_cmd "Borrar" +rls_string STRING_r_view_delete_show_cmd_short "Borrar" rls_string STRING_r_view_show_info_cmd "InformaciĆ³n" rls_string STRING_r_error_playback_failed "No se pudo reproducir el capĆ­tulo" @@ -160,4 +164,13 @@ rls_string STRING_r_add_url "Enter address" rls_string STRING_r_add_search "Search for feed" rls_string STRING_r_search_feed_prompt "Enter search terms:" - +rls_string STRING_r_new_shows "New shows" +rls_string STRING_r_download_queue "Download queue" +rls_string STRING_r_mark_all_old_query "Mark all shows old?" +rls_string STRING_r_download_all_query "Add all shows to download queue?" +rls_string STRING_r_podcast_setting_autodelete "Delete old shows" +rls_string STRING_podcast_autodelete_option1 "Manually" +rls_string STRING_podcast_autodelete_option2 "1 day after playing" +rls_string STRING_podcast_autodelete_option3 "7 days after playing" +rls_string STRING_podcast_autodelete_option4 "30 days after playing" +rls_string STRING_r_download_all_shows "Download all shows" diff -r 31968c23152c -r 931d0db6374d application/data/PodcastQueueView.ra --- a/application/data/PodcastQueueView.ra Fri Nov 19 01:47:31 2010 +0000 +++ b/application/data/PodcastQueueView.ra Sun Nov 21 20:11:07 2010 +0000 @@ -139,6 +139,25 @@ } }; }; + }, + TBAR_CTRL + { + type = EAknCtButton; + id = EPodcastEmpty; + control = AVKON_BUTTON + { + states = + { + AVKON_BUTTON_STATE + { + bmpfile = APPICON; + bmpid = EMbmPodcastEmpty; + bmpmask = EMbmPodcastEmpty_mask; + helptxt = ""; + } + }; + }; } + }; } diff -r 31968c23152c -r 931d0db6374d application/data/PodcastShowsView.ra --- a/application/data/PodcastShowsView.ra Fri Nov 19 01:47:31 2010 +0000 +++ b/application/data/PodcastShowsView.ra Sun Nov 21 20:11:07 2010 +0000 @@ -183,12 +183,10 @@ }; }; }, -// we keep the download toolbar button in S^3, but always disable it -// because there are drawing issues with only one item in the toolbar TBAR_CTRL { type = EAknCtButton; - id = EPodcastDownloadShow; + id = EPodcastEmpty; control = AVKON_BUTTON { states = @@ -196,10 +194,9 @@ AVKON_BUTTON_STATE { bmpfile = APPICON; - bmpid = EMbmPodcastDownload; - bmpmask = EMbmPodcastDownload_mask; - //txt = STRING_r_view_download_show_cmd; - helptxt = STRING_r_view_download_show_cmd; + bmpid = EMbmPodcastEmpty; + bmpmask = EMbmPodcastEmpty_mask; + helptxt = ""; } }; }; diff -r 31968c23152c -r 931d0db6374d application/data/icons/appicon.svg --- a/application/data/icons/appicon.svg Fri Nov 19 01:47:31 2010 +0000 +++ b/application/data/icons/appicon.svg Sun Nov 21 20:11:07 2010 +0000 @@ -1,29 +1,34 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + diff -r 31968c23152c -r 931d0db6374d application/data/icons/feed.svg --- a/application/data/icons/feed.svg Fri Nov 19 01:47:31 2010 +0000 +++ b/application/data/icons/feed.svg Sun Nov 21 20:11:07 2010 +0000 @@ -1,26 +1,19 @@ - + - - - - - - - + diff -r 31968c23152c -r 931d0db6374d application/data/icons/mark_old_all.svg --- a/application/data/icons/mark_old_all.svg Fri Nov 19 01:47:31 2010 +0000 +++ b/application/data/icons/mark_old_all.svg Sun Nov 21 20:11:07 2010 +0000 @@ -5,9 +5,9 @@ x="0px" y="0px" width="32px" height="32px" viewBox="0 0 32 32" enable-background="new 0 0 32 32" xml:space="preserve"> - - - + + + diff -r 31968c23152c -r 931d0db6374d application/group/bld.inf --- a/application/group/bld.inf Fri Nov 19 01:47:31 2010 +0000 +++ b/application/group/bld.inf Sun Nov 21 20:11:07 2010 +0000 @@ -80,5 +80,6 @@ -c16,1 update.svg\ -c16,1 update_all.svg\ -c16,1 update_cancel.svg\ - -c16,1 download.svg + -c16,1 download.svg\ + -c16,1 empty.svg END diff -r 31968c23152c -r 931d0db6374d application/inc/Podcast.hrh --- a/application/inc/Podcast.hrh Fri Nov 19 01:47:31 2010 +0000 +++ b/application/inc/Podcast.hrh Sun Nov 21 20:11:07 2010 +0000 @@ -66,7 +66,8 @@ EPodcastResetDb, EPodcastTabFeeds, EPodcastTabQueue, - EPodcastTabNew + EPodcastTabNew, + EPodcastEmpty }; enum TPodcastControl diff -r 31968c23152c -r 931d0db6374d application/src/PodcastQueueView.cpp --- a/application/src/PodcastQueueView.cpp Fri Nov 19 01:47:31 2010 +0000 +++ b/application/src/PodcastQueueView.cpp Sun Nov 21 20:11:07 2010 +0000 @@ -373,7 +373,10 @@ toolbar->SetItemDimmed(EPodcastRemoveAllDownloads, itemCnt == 0, ETrue); toolbar->HideItem(EPodcastSuspendDownloads,iPodcastModel.SettingsEngine().DownloadSuspended(), ETrue); toolbar->HideItem(EPodcastResumeDownloads,!iPodcastModel.SettingsEngine().DownloadSuspended(), ETrue); - toolbar->SetItemDimmed(EPodcastRemoveDownload, itemCnt == 0, ETrue); + toolbar->SetItemDimmed(EPodcastRemoveDownload, itemCnt == 0, ETrue); + toolbar->HideItem(EPodcastEmpty, EFalse, ETrue ); + toolbar->SetItemDimmed(EPodcastEmpty, ETrue, ETrue); + } } diff -r 31968c23152c -r 931d0db6374d application/src/PodcastShowsView.cpp --- a/application/src/PodcastShowsView.cpp Fri Nov 19 01:47:31 2010 +0000 +++ b/application/src/PodcastShowsView.cpp Sun Nov 21 20:11:07 2010 +0000 @@ -801,10 +801,10 @@ toolbar->HideItem(EPodcastCancelUpdateAllFeeds, !updatingState, ETrue ); - // there seems to be drawing bugs in the toolbar if there is only - // one or two buttons defined in the resource, so we have download - // there but always hidden - toolbar->HideItem(EPodcastDownloadShow, ETrue, ETrue ); + + toolbar->HideItem(EPodcastEmpty, EFalse, ETrue ); + toolbar->SetItemDimmed(EPodcastEmpty, ETrue, ETrue); + toolbar->HideItem(EPodcastDownloadAll, !iShowNewShows, ETrue); TBool showMarkAllPlayed = EFalse; diff -r 31968c23152c -r 931d0db6374d engine/src/ShowEngine.cpp --- a/engine/src/ShowEngine.cpp Fri Nov 19 01:47:31 2010 +0000 +++ b/engine/src/ShowEngine.cpp Sun Nov 21 20:11:07 2010 +0000 @@ -575,6 +575,23 @@ { User::Leave(KErrCorrupt); } + + // now update DB + _LIT(KSqlStatement2, "update shows set downloadstate=%d and deletedate = 0 where downloadstate=%d and deletedate != 0 and deletedate < \"%Ld\""); + iSqlBuffer.Format(KSqlStatement2, ENotDownloaded, EDownloaded, now.Int64()); + + + rc = sqlite3_prepare16_v2(&iDB, (const void*) iSqlBuffer.PtrZ(), -1, + &st, (const void**) NULL); + + if (rc == SQLITE_OK) + { + rc = sqlite3_step(st); + Cleanup_sqlite3_finalize_PushL(st); + CleanupStack::PopAndDestroy();//st + } + + DP("CShowEngine::DBGetOldShowsL END"); } diff -r 31968c23152c -r 931d0db6374d group/defines.h --- a/group/defines.h Fri Nov 19 01:47:31 2010 +0000 +++ b/group/defines.h Sun Nov 21 20:11:07 2010 +0000 @@ -2,6 +2,6 @@ #define DEFINES_H_ // MPX integration can not be enabled for self signed versions -//#define ENABLE_MPX_INTEGRATION +#define ENABLE_MPX_INTEGRATION #endif /* DEFINES_H_ */