Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
KODI::PLAYLIST::CPlayListM3U Class Reference

#include <PlayListM3U.h>

Inheritance diagram for KODI::PLAYLIST::CPlayListM3U:
KODI::PLAYLIST::CPlayList

Public Member Functions

 CPlayListM3U (void)
 
 ~CPlayListM3U (void) override
 
bool Load (const std::string &strFileName) override
 
void Save (const std::string &strFileName) const override
 
- Public Member Functions inherited from KODI::PLAYLIST::CPlayList
 CPlayList (Id id=Id::TYPE_NONE)
 
virtual ~CPlayList (void)=default
 
virtual bool LoadData (std::istream &stream)
 
virtual bool LoadData (const std::string &strData)
 
void Add (const CPlayList &playlist)
 
void Add (const std::shared_ptr< CFileItem > &pItem)
 
void Add (const CFileItemList &items)
 
void Insert (const CPlayList &playlist, int iPosition=-1)
 
void Insert (const CFileItemList &items, int iPosition=-1)
 
void Insert (const std::shared_ptr< CFileItem > &item, int iPosition=-1)
 
int FindOrder (int iOrder) const
 
const std::string & GetName () const
 
void Remove (const std::string &strFileName)
 
void Remove (int position)
 
bool Swap (int position1, int position2)
 
bool Expand (int position)
 
void Clear ()
 
int size () const
 
int RemoveDVDItems ()
 
const std::shared_ptr< CFileItemoperator[] (int iItem) const
 
std::shared_ptr< CFileItemoperator[] (int iItem)
 
void Shuffle (int iPosition=0)
 
void UnShuffle ()
 
bool IsShuffled () const
 
void SetPlayed (bool bPlayed)
 
bool WasPlayed () const
 
void SetUnPlayable (int iItem)
 
int GetPlayable () const
 
void UpdateItem (const CFileItem *item)
 
const std::string & ResolveURL (const std::shared_ptr< CFileItem > &item) const
 

Static Public Member Functions

static std::map< std::string, std::string > ParseStreamLine (const std::string &streamLine)
 

Static Public Attributes

static const char * StartMarker = "#EXTCPlayListM3U::M3U"
 
static const char * InfoMarker = "#EXTINF"
 
static const char * ArtistMarker = "#EXTART"
 
static const char * AlbumMarker = "#EXTALB"
 
static const char * PropertyMarker = "#KODIPROP"
 
static const char * VLCOptMarker = "#EXTVLCOPT"
 
static const char * StreamMarker = "#EXT-X-STREAM-INF"
 
static const char * BandwidthMarker = "BANDWIDTH"
 
static const char * OffsetMarker = "#EXT-KX-OFFSET"
 

Additional Inherited Members

- Protected Types inherited from KODI::PLAYLIST::CPlayList
typedef std::vector< std::shared_ptr< CFileItem > >::iterator ivecItems
 
- Protected Attributes inherited from KODI::PLAYLIST::CPlayList
Id m_id
 
std::string m_strPlayListName
 
std::string m_strBasePath
 
int m_iPlayableItems
 
bool m_bShuffled
 
bool m_bWasPlayed
 
std::vector< std::shared_ptr< CFileItem > > m_vecItems
 

Constructor & Destructor Documentation

◆ CPlayListM3U()

KODI::PLAYLIST::CPlayListM3U::CPlayListM3U ( void )
default

◆ ~CPlayListM3U()

KODI::PLAYLIST::CPlayListM3U::~CPlayListM3U ( void )
overridedefault

Member Function Documentation

◆ Load()

bool KODI::PLAYLIST::CPlayListM3U::Load ( const std::string & strFileName)
overridevirtual

Reimplemented from KODI::PLAYLIST::CPlayList.

◆ ParseStreamLine()

std::map< std::string, std::string > KODI::PLAYLIST::CPlayListM3U::ParseStreamLine ( const std::string & streamLine)
static

◆ Save()

void KODI::PLAYLIST::CPlayListM3U::Save ( const std::string & strFileName) const
overridevirtual

Reimplemented from KODI::PLAYLIST::CPlayList.

Member Data Documentation

◆ AlbumMarker

const char * KODI::PLAYLIST::CPlayListM3U::AlbumMarker = "#EXTALB"
static

◆ ArtistMarker

const char * KODI::PLAYLIST::CPlayListM3U::ArtistMarker = "#EXTART"
static

◆ BandwidthMarker

const char * KODI::PLAYLIST::CPlayListM3U::BandwidthMarker = "BANDWIDTH"
static

◆ InfoMarker

const char * KODI::PLAYLIST::CPlayListM3U::InfoMarker = "#EXTINF"
static

◆ OffsetMarker

const char * KODI::PLAYLIST::CPlayListM3U::OffsetMarker = "#EXT-KX-OFFSET"
static

◆ PropertyMarker

const char * KODI::PLAYLIST::CPlayListM3U::PropertyMarker = "#KODIPROP"
static

◆ StartMarker

const char * KODI::PLAYLIST::CPlayListM3U::StartMarker = "#EXTCPlayListM3U::M3U"
static

◆ StreamMarker

const char * KODI::PLAYLIST::CPlayListM3U::StreamMarker = "#EXT-X-STREAM-INF"
static

◆ VLCOptMarker

const char * KODI::PLAYLIST::CPlayListM3U::VLCOptMarker = "#EXTVLCOPT"
static

The documentation for this class was generated from the following files: