Permalink
Browse files

Merge pull request #4033 from xhaggi/pvr-listitem-isactive

[gui] adds listitem info label inprogress to determine if epg item is in progress
  • Loading branch information...
2 parents 44040c9 + e7d365a commit f3a4aecce7bd3709f518e016f002dc2f0fd80da6 @xhaggi xhaggi committed Apr 28, 2014
Showing with 10 additions and 0 deletions.
  1. +9 −0 xbmc/GUIInfoManager.cpp
  2. +1 −0 xbmc/GUIInfoManager.h
View
@@ -580,6 +580,7 @@ const infomap listitem_labels[]= {{ "thumb", LISTITEM_THUMB },
{ "hasepg", LISTITEM_HAS_EPG },
{ "hastimer", LISTITEM_HASTIMER },
{ "isrecording", LISTITEM_ISRECORDING },
+ { "inprogress", LISTITEM_INPROGRESS },
{ "isencrypted", LISTITEM_ISENCRYPTED },
{ "progress", LISTITEM_PROGRESS },
{ "dateadded", LISTITEM_DATE_ADDED },
@@ -5154,6 +5155,14 @@ bool CGUIInfoManager::GetItemBool(const CGUIListItem *item, int condition) const
return timer->GetPVRTimerInfoTag()->IsRecording();
}
}
+ else if (condition == LISTITEM_INPROGRESS)
+ {
+ if (!g_PVRManager.IsStarted())
+ return false;
+
+ if (pItem->HasEPGInfoTag())
+ return pItem->GetEPGInfoTag()->IsActive();
+ }
else if (condition == LISTITEM_HASTIMER)
{
if (pItem->HasEPGInfoTag())
View
@@ -647,6 +647,7 @@ namespace INFO
#define LISTITEM_VOTES (LISTITEM_START + 139)
#define LISTITEM_STEREOSCOPIC_MODE (LISTITEM_START + 140)
#define LISTITEM_IS_STEREOSCOPIC (LISTITEM_START + 141)
+#define LISTITEM_INPROGRESS (LISTITEM_START + 142)
#define LISTITEM_PROPERTY_START (LISTITEM_START + 200)
#define LISTITEM_PROPERTY_END (LISTITEM_PROPERTY_START + 1000)

0 comments on commit f3a4aec

Please sign in to comment.