示例#1
0
bool CPlay::IsVisible(const CFileItem& item) const
{
  if (item.m_bIsFolder)
    return false; //! @todo implement
  if (item.IsPVR())
    return false; // pvr has its own implementation for this
  return item.IsVideo() || item.IsDVD() || item.IsCDDA();
}
示例#2
0
bool CMarkUnWatched::IsVisible(const CFileItem& item) const
{
  if (!item.HasVideoInfoTag())
    return false;
  if (item.IsPVR())
    return false; // pvr has its own implementation for this
  if (item.m_bIsFolder) //Only allow db content to be updated recursively
    return item.IsVideoDb();
  return item.GetVideoInfoTag()->m_playCount > 0;
}
示例#3
0
bool CResume::IsVisible(const CFileItem& item) const
{
  if (item.IsPVR())
    return false; // pvr has its own implementation for this
  return CGUIWindowVideoBase::HasResumeItemOffset(&item);
}
示例#4
0
bool CVideoInfo::IsVisible(const CFileItem& item) const
{
  if (item.IsPVR())
    return false; // pvr has its own implementation for this
  return item.HasVideoInfoTag() && item.GetVideoInfoTag()->m_type == m_mediaType;
}