1
0
Fork 0
mirror of https://github.com/HenkKalkwater/harbour-sailfin.git synced 2025-09-04 01:42:44 +00:00

WIP: Playlist support

This commit is contained in:
Chris Josten 2021-05-21 15:46:30 +02:00
parent 228f81984b
commit fbc154fb56
16 changed files with 481 additions and 27 deletions

View file

@ -0,0 +1,42 @@
#ifndef JELLYFIN_MODEL_PLAYLIST_H
#define JELLYFIN_MODEL_PLAYLIST_H
#include <QSharedPointer>
#include <QString>
#include <QUrl>
#include <QVector>
namespace Jellyfin {
namespace Model {
// Forward declaration
class Item;
class Playlist {
public:
explicit Playlist();
/// Start loading data for the next item.
void preloadNext();
private:
/// Extra data about each itemId that this playlist manages
struct ExtendedItem {
QSharedPointer<Item> item;
/// The url from which this item can be streamed.
QUrl url;
/// Playsession that should be reported to Jellyfin's server.
QString playSession;
/// Text to be shown when an error occurred while fetching playback information.
QString errorText;
};
QVector<ExtendedItem> list;
};
}
}
#endif // JELLYFIN_MODEL_PLAYLIST_H