Kodi Development 22.0
for Binary and Script based Add-Ons
 
Loading...
Searching...
No Matches
PlayList.h
1/*
2 * Copyright (C) 2005-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
4 *
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
7 */
8
9#pragma once
10
11#include "AddonClass.h"
12#include "Exception.h"
13#include "ListItem.h"
14#include "playlists/PlayList.h"
15
16namespace XBMCAddon
17{
18 namespace xbmc
19 {
20 XBMCCOMMONS_STANDARD_EXCEPTION(PlayListException);
21
22 //
48 //
49 class PlayList : public AddonClass
50 {
51 int iPlayList;
52 KODI::PLAYLIST::CPlayList* pPlayList;
53
54 public:
55 explicit PlayList(int playList);
56 ~PlayList() override;
57
58#ifdef DOXYGEN_SHOULD_USE_THIS
67#else
68 inline int getPlayListId() const { return iPlayList; }
69#endif
70
71#ifdef DOXYGEN_SHOULD_USE_THIS
98 add(...);
99#else
100 void add(const String& url, XBMCAddon::xbmcgui::ListItem* listitem = NULL, int index = -1);
101#endif
102
103#ifdef DOXYGEN_SHOULD_USE_THIS
115 load(...);
116#else
117 bool load(const char* filename);
118#endif
119
120#ifdef DOXYGEN_SHOULD_USE_THIS
128 remove(...);
129#else
130 void remove(const char* filename);
131#endif
132
133#ifdef DOXYGEN_SHOULD_USE_THIS
140#else
141 void clear();
142#endif
143
144#ifdef DOXYGEN_SHOULD_USE_THIS
153#else
154 int size();
155#endif
156
157#ifdef DOXYGEN_SHOULD_USE_THIS
164#else
165 void shuffle();
166#endif
167
168#ifdef DOXYGEN_SHOULD_USE_THIS
175#else
176 void unshuffle();
177#endif
178
179#ifdef DOXYGEN_SHOULD_USE_THIS
188#else
189 int getposition();
190#endif
191
192#ifdef DOXYGEN_SHOULD_USE_THIS
204 [](...);
205#else
206 XBMCAddon::xbmcgui::ListItem* operator[](long i);
207#endif
208 };
210 }
211}
212
Definition PlayList.h:50
Definition ListItem.h:54
remove(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
add(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
load(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
size()
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
unshuffle()
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
clear()
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
getposition()
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
getPlayListId()
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
shuffle()
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...