Added mark new/old to queue view RCL_3
authorSebastian Brannstrom <sebastianb@symbian.org>
Mon, 22 Nov 2010 00:32:23 +0000
branchRCL_3
changeset 387 422f96ee6672
parent 383 931d0db6374d
child 388 5f24605de6cf
Added mark new/old to queue view
application/data/PodcastQueueView.ra
application/src/PodcastQueueView.cpp
--- a/application/data/PodcastQueueView.ra	Sun Nov 21 20:11:07 2010 +0000
+++ b/application/data/PodcastQueueView.ra	Mon Nov 22 00:32:23 2010 +0000
@@ -58,6 +58,18 @@
 			},
 		MENU_ITEM
 			{
+			txt = STRING_r_view_mark_as_unplayed_cmd_short;
+			command = EPodcastMarkAsUnplayed;
+			flags = EEikMenuItemSpecific;
+			},
+		MENU_ITEM
+			{
+			txt = STRING_r_view_mark_as_played_cmd_short;
+			command = EPodcastMarkAsPlayed;
+			flags = EEikMenuItemSpecific;
+			},
+		MENU_ITEM
+			{
 			txt = STRING_r_view_remove_download_short_cmd;
 			command = EPodcastRemoveDownload;
 			flags = EEikMenuItemSpecific;
--- a/application/src/PodcastQueueView.cpp	Sun Nov 21 20:11:07 2010 +0000
+++ b/application/src/PodcastQueueView.cpp	Mon Nov 22 00:32:23 2010 +0000
@@ -351,7 +351,12 @@
 		if (index >= 0 && index < iPodcastModel.ActiveShowList().Count())
 			{			
 			aMenuPane->SetItemDimmed(EPodcastMoveDownloadDown, dimDown);
-			aMenuPane->SetItemDimmed(EPodcastMoveDownloadUp, dimUp);			
+			aMenuPane->SetItemDimmed(EPodcastMoveDownloadUp, dimUp);
+			CShowInfo *info = iPodcastModel.ActiveShowList()[index];
+
+			aMenuPane->SetItemDimmed(EPodcastMarkAsPlayed, info->PlayState() != ENeverPlayed);
+			aMenuPane->SetItemDimmed(EPodcastMarkAsUnplayed, info->PlayState() == ENeverPlayed);
+
 			}
 		}
 	}