Kodi Documentation 23.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
PlayListFileItemClassify.cpp File Reference
#include "playlists/PlayListFileItemClassify.h"
#include "FileItem.h"
#include "FileItemList.h"
#include "URL.h"
#include "music/MusicFileItemClassify.h"
#include "playlists/PlayListFactory.h"
#include "pvr/PVRItem.h"
#include "utils/ItemProperties.h"
#include "utils/URIUtils.h"
#include "utils/Variant.h"
#include "video/VideoFileItemClassify.h"
#include <algorithm>
#include <optional>

Namespaces

namespace  KODI
 
namespace  KODI::PLAYLIST
 

Functions

bool KODI::PLAYLIST::IsPlayList (const CFileItem &item)
 Check whether an item is a playlist.
 
bool KODI::PLAYLIST::IsSmartPlayList (const CFileItem &item)
 Check whether an item is a smart playlist.
 
Type KODI::PLAYLIST::TypeFor (const CFileItemList &items)
 The playlist for items nobody named one for: Video if any of them is video, else Audio if any is audio, else Video.
 
Type KODI::PLAYLIST::TypeFor (const CFileItemList &entries, const CFileItem &source)
 The playlist for the entries read from source: as for any items, except that when no entry says what it is, source decides.
 
Type KODI::PLAYLIST::TypeFor (const CFileItem &item)
 The playlist for an item nobody named one for: Audio if it holds only audio, else Video.
 
std::optional< MEDIA::Streams > KODI::PLAYLIST::StreamsOf (const CFileItem &item)
 What an item holds: a channel's is whether it is radio or TV, a picture holds video only, a video or a game video and audio, and audio only audio; nothing when it is none of these.
 
bool KODI::PLAYLIST::YieldsNoEntries (const CFileItem &item)
 Whether an item neither is nor contains a playlist entry: the parent item or an archive.
 
bool KODI::PLAYLIST::HoldsEntries (const CFileItem &item)
 Whether an item is read for the entries it holds: a smart playlist, or a playlist file that is not a game's list of discs.
 
bool KODI::PLAYLIST::CanBeEntry (const CFileItem &item)
 Whether an item can become a playlist entry: not a folder, an NFO, or anything that yields no entries.