Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
instantmix.h
Go to the documentation of this file.
1/*
2 * Sailfin: a Jellyfin client written using Qt
3 * Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19/*
20 * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
21 * OVERWRITTEN AT SOME POINT!
22 *
23 * If there is a bug in this file, please fix the code generator used to generate this file found in
24 * core/openapigenerator.d.
25 *
26 * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
27 * file with a newer file if needed instead of manually updating the files.
28 */
29
30#ifndef JELLYFIN_LOADER_HTTP_INSTANTMIX_H
31#define JELLYFIN_LOADER_HTTP_INSTANTMIX_H
32
33#include <optional>
34
45
46namespace Jellyfin {
47// Forward declaration
48class ApiClient;
49}
50namespace Jellyfin {
51namespace Loader {
52namespace HTTP {
53
54using namespace Jellyfin::DTO;
55
60class GetInstantMixFromAlbumLoader : public Jellyfin::Support::HttpLoader<BaseItemDtoQueryResult, GetInstantMixFromAlbumParams> {
61public:
63
64protected:
65 QString path(const GetInstantMixFromAlbumParams& parameters) const override;
66 QUrlQuery query(const GetInstantMixFromAlbumParams& parameters) const override;
67 QByteArray body(const GetInstantMixFromAlbumParams& parameters) const override;
68 QNetworkAccessManager::Operation operation() const override;
69};
74class GetInstantMixFromArtistsLoader : public Jellyfin::Support::HttpLoader<BaseItemDtoQueryResult, GetInstantMixFromArtistsParams> {
75public:
77
78protected:
79 QString path(const GetInstantMixFromArtistsParams& parameters) const override;
80 QUrlQuery query(const GetInstantMixFromArtistsParams& parameters) const override;
81 QByteArray body(const GetInstantMixFromArtistsParams& parameters) const override;
82 QNetworkAccessManager::Operation operation() const override;
83};
88class GetInstantMixFromItemLoader : public Jellyfin::Support::HttpLoader<BaseItemDtoQueryResult, GetInstantMixFromItemParams> {
89public:
91
92protected:
93 QString path(const GetInstantMixFromItemParams& parameters) const override;
94 QUrlQuery query(const GetInstantMixFromItemParams& parameters) const override;
95 QByteArray body(const GetInstantMixFromItemParams& parameters) const override;
96 QNetworkAccessManager::Operation operation() const override;
97};
102class GetInstantMixFromMusicGenresLoader : public Jellyfin::Support::HttpLoader<BaseItemDtoQueryResult, GetInstantMixFromMusicGenresParams> {
103public:
105
106protected:
107 QString path(const GetInstantMixFromMusicGenresParams& parameters) const override;
108 QUrlQuery query(const GetInstantMixFromMusicGenresParams& parameters) const override;
109 QByteArray body(const GetInstantMixFromMusicGenresParams& parameters) const override;
110 QNetworkAccessManager::Operation operation() const override;
111};
116class GetInstantMixFromMusicGenreLoader : public Jellyfin::Support::HttpLoader<BaseItemDtoQueryResult, GetInstantMixFromMusicGenreParams> {
117public:
119
120protected:
121 QString path(const GetInstantMixFromMusicGenreParams& parameters) const override;
122 QUrlQuery query(const GetInstantMixFromMusicGenreParams& parameters) const override;
123 QByteArray body(const GetInstantMixFromMusicGenreParams& parameters) const override;
124 QNetworkAccessManager::Operation operation() const override;
125};
130class GetInstantMixFromPlaylistLoader : public Jellyfin::Support::HttpLoader<BaseItemDtoQueryResult, GetInstantMixFromPlaylistParams> {
131public:
133
134protected:
135 QString path(const GetInstantMixFromPlaylistParams& parameters) const override;
136 QUrlQuery query(const GetInstantMixFromPlaylistParams& parameters) const override;
137 QByteArray body(const GetInstantMixFromPlaylistParams& parameters) const override;
138 QNetworkAccessManager::Operation operation() const override;
139};
144class GetInstantMixFromSongLoader : public Jellyfin::Support::HttpLoader<BaseItemDtoQueryResult, GetInstantMixFromSongParams> {
145public:
147
148protected:
149 QString path(const GetInstantMixFromSongParams& parameters) const override;
150 QUrlQuery query(const GetInstantMixFromSongParams& parameters) const override;
151 QByteArray body(const GetInstantMixFromSongParams& parameters) const override;
152 QNetworkAccessManager::Operation operation() const override;
153};
154
155} // NS HTTP
156} // NS Loader
157} // NS Jellyfin
158
159#endif // JELLYFIN_LOADER_HTTP_INSTANTMIX_H
An Api client for Jellyfin. Handles requests and authentication.
Definition apiclient.h:90
Definition requesttypes.h:7039
Definition requesttypes.h:7403
Creates an instant playlist based on a given song.
Definition instantmix.h:60
QNetworkAccessManager::Operation operation() const override
Definition instantmix.cpp:82
QString path(const GetInstantMixFromAlbumParams &parameters) const override
Definition instantmix.cpp:41
QByteArray body(const GetInstantMixFromAlbumParams &parameters) const override
Definition instantmix.cpp:78
QUrlQuery query(const GetInstantMixFromAlbumParams &parameters) const override
Definition instantmix.cpp:47
GetInstantMixFromAlbumLoader(ApiClient *apiClient=nullptr)
Definition instantmix.cpp:38
Creates an instant playlist based on a given song.
Definition instantmix.h:74
QNetworkAccessManager::Operation operation() const override
Definition instantmix.cpp:132
QString path(const GetInstantMixFromArtistsParams &parameters) const override
Definition instantmix.cpp:91
GetInstantMixFromArtistsLoader(ApiClient *apiClient=nullptr)
Definition instantmix.cpp:88
QByteArray body(const GetInstantMixFromArtistsParams &parameters) const override
Definition instantmix.cpp:128
QUrlQuery query(const GetInstantMixFromArtistsParams &parameters) const override
Definition instantmix.cpp:97
Creates an instant playlist based on a given song.
Definition instantmix.h:88
GetInstantMixFromItemLoader(ApiClient *apiClient=nullptr)
Definition instantmix.cpp:138
QString path(const GetInstantMixFromItemParams &parameters) const override
Definition instantmix.cpp:141
QNetworkAccessManager::Operation operation() const override
Definition instantmix.cpp:182
QByteArray body(const GetInstantMixFromItemParams &parameters) const override
Definition instantmix.cpp:178
QUrlQuery query(const GetInstantMixFromItemParams &parameters) const override
Definition instantmix.cpp:147
Creates an instant playlist based on a given song.
Definition instantmix.h:116
QNetworkAccessManager::Operation operation() const override
Definition instantmix.cpp:282
QUrlQuery query(const GetInstantMixFromMusicGenreParams &parameters) const override
Definition instantmix.cpp:247
GetInstantMixFromMusicGenreLoader(ApiClient *apiClient=nullptr)
Definition instantmix.cpp:238
QByteArray body(const GetInstantMixFromMusicGenreParams &parameters) const override
Definition instantmix.cpp:278
QString path(const GetInstantMixFromMusicGenreParams &parameters) const override
Definition instantmix.cpp:241
Creates an instant playlist based on a given song.
Definition instantmix.h:102
QString path(const GetInstantMixFromMusicGenresParams &parameters) const override
Definition instantmix.cpp:191
QByteArray body(const GetInstantMixFromMusicGenresParams &parameters) const override
Definition instantmix.cpp:228
QNetworkAccessManager::Operation operation() const override
Definition instantmix.cpp:232
GetInstantMixFromMusicGenresLoader(ApiClient *apiClient=nullptr)
Definition instantmix.cpp:188
QUrlQuery query(const GetInstantMixFromMusicGenresParams &parameters) const override
Definition instantmix.cpp:197
Creates an instant playlist based on a given song.
Definition instantmix.h:130
QNetworkAccessManager::Operation operation() const override
Definition instantmix.cpp:332
GetInstantMixFromPlaylistLoader(ApiClient *apiClient=nullptr)
Definition instantmix.cpp:288
QUrlQuery query(const GetInstantMixFromPlaylistParams &parameters) const override
Definition instantmix.cpp:297
QByteArray body(const GetInstantMixFromPlaylistParams &parameters) const override
Definition instantmix.cpp:328
QString path(const GetInstantMixFromPlaylistParams &parameters) const override
Definition instantmix.cpp:291
Creates an instant playlist based on a given song.
Definition instantmix.h:144
QByteArray body(const GetInstantMixFromSongParams &parameters) const override
Definition instantmix.cpp:378
QString path(const GetInstantMixFromSongParams &parameters) const override
Definition instantmix.cpp:341
GetInstantMixFromSongLoader(ApiClient *apiClient=nullptr)
Definition instantmix.cpp:338
QUrlQuery query(const GetInstantMixFromSongParams &parameters) const override
Definition instantmix.cpp:347
QNetworkAccessManager::Operation operation() const override
Definition instantmix.cpp:382
Definition loader.h:285
ApiClient * apiClient() const
Definition loader.h:95
Contains auto-generated Data Transfer Objects for the Jellyfin HTTP API.