Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
itemlookup.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_ITEMLOOKUP_H
31#define JELLYFIN_LOADER_HTTP_ITEMLOOKUP_H
32
33#include <optional>
34
48
49namespace Jellyfin {
50// Forward declaration
51class ApiClient;
52}
53namespace Jellyfin {
54namespace Loader {
55namespace HTTP {
56
57using namespace Jellyfin::DTO;
58
63class GetExternalIdInfosLoader : public Jellyfin::Support::HttpLoader<QList<ExternalIdInfo>, GetExternalIdInfosParams> {
64public:
65 explicit GetExternalIdInfosLoader(ApiClient *apiClient = nullptr);
66
67protected:
68 QString path(const GetExternalIdInfosParams& parameters) const override;
69 QUrlQuery query(const GetExternalIdInfosParams& parameters) const override;
70 QByteArray body(const GetExternalIdInfosParams& parameters) const override;
71 QNetworkAccessManager::Operation operation() const override;
72};
77class ApplySearchCriteriaLoader : public Jellyfin::Support::HttpLoader<void, ApplySearchCriteriaParams> {
78public:
80
81protected:
82 QString path(const ApplySearchCriteriaParams& parameters) const override;
83 QUrlQuery query(const ApplySearchCriteriaParams& parameters) const override;
84 QByteArray body(const ApplySearchCriteriaParams& parameters) const override;
85 QNetworkAccessManager::Operation operation() const override;
86};
91class GetBookRemoteSearchResultsLoader : public Jellyfin::Support::HttpLoader<QList<RemoteSearchResult>, GetBookRemoteSearchResultsParams> {
92public:
94
95protected:
96 QString path(const GetBookRemoteSearchResultsParams& parameters) const override;
97 QUrlQuery query(const GetBookRemoteSearchResultsParams& parameters) const override;
98 QByteArray body(const GetBookRemoteSearchResultsParams& parameters) const override;
99 QNetworkAccessManager::Operation operation() const override;
100};
105class GetBoxSetRemoteSearchResultsLoader : public Jellyfin::Support::HttpLoader<QList<RemoteSearchResult>, GetBoxSetRemoteSearchResultsParams> {
106public:
108
109protected:
110 QString path(const GetBoxSetRemoteSearchResultsParams& parameters) const override;
111 QUrlQuery query(const GetBoxSetRemoteSearchResultsParams& parameters) const override;
112 QByteArray body(const GetBoxSetRemoteSearchResultsParams& parameters) const override;
113 QNetworkAccessManager::Operation operation() const override;
114};
119class GetMovieRemoteSearchResultsLoader : public Jellyfin::Support::HttpLoader<QList<RemoteSearchResult>, GetMovieRemoteSearchResultsParams> {
120public:
122
123protected:
124 QString path(const GetMovieRemoteSearchResultsParams& parameters) const override;
125 QUrlQuery query(const GetMovieRemoteSearchResultsParams& parameters) const override;
126 QByteArray body(const GetMovieRemoteSearchResultsParams& parameters) const override;
127 QNetworkAccessManager::Operation operation() const override;
128};
133class GetMusicAlbumRemoteSearchResultsLoader : public Jellyfin::Support::HttpLoader<QList<RemoteSearchResult>, GetMusicAlbumRemoteSearchResultsParams> {
134public:
136
137protected:
138 QString path(const GetMusicAlbumRemoteSearchResultsParams& parameters) const override;
139 QUrlQuery query(const GetMusicAlbumRemoteSearchResultsParams& parameters) const override;
140 QByteArray body(const GetMusicAlbumRemoteSearchResultsParams& parameters) const override;
141 QNetworkAccessManager::Operation operation() const override;
142};
147class GetMusicArtistRemoteSearchResultsLoader : public Jellyfin::Support::HttpLoader<QList<RemoteSearchResult>, GetMusicArtistRemoteSearchResultsParams> {
148public:
150
151protected:
152 QString path(const GetMusicArtistRemoteSearchResultsParams& parameters) const override;
153 QUrlQuery query(const GetMusicArtistRemoteSearchResultsParams& parameters) const override;
154 QByteArray body(const GetMusicArtistRemoteSearchResultsParams& parameters) const override;
155 QNetworkAccessManager::Operation operation() const override;
156};
161class GetMusicVideoRemoteSearchResultsLoader : public Jellyfin::Support::HttpLoader<QList<RemoteSearchResult>, GetMusicVideoRemoteSearchResultsParams> {
162public:
164
165protected:
166 QString path(const GetMusicVideoRemoteSearchResultsParams& parameters) const override;
167 QUrlQuery query(const GetMusicVideoRemoteSearchResultsParams& parameters) const override;
168 QByteArray body(const GetMusicVideoRemoteSearchResultsParams& parameters) const override;
169 QNetworkAccessManager::Operation operation() const override;
170};
175class GetPersonRemoteSearchResultsLoader : public Jellyfin::Support::HttpLoader<QList<RemoteSearchResult>, GetPersonRemoteSearchResultsParams> {
176public:
178
179protected:
180 QString path(const GetPersonRemoteSearchResultsParams& parameters) const override;
181 QUrlQuery query(const GetPersonRemoteSearchResultsParams& parameters) const override;
182 QByteArray body(const GetPersonRemoteSearchResultsParams& parameters) const override;
183 QNetworkAccessManager::Operation operation() const override;
184};
189class GetSeriesRemoteSearchResultsLoader : public Jellyfin::Support::HttpLoader<QList<RemoteSearchResult>, GetSeriesRemoteSearchResultsParams> {
190public:
192
193protected:
194 QString path(const GetSeriesRemoteSearchResultsParams& parameters) const override;
195 QUrlQuery query(const GetSeriesRemoteSearchResultsParams& parameters) const override;
196 QByteArray body(const GetSeriesRemoteSearchResultsParams& parameters) const override;
197 QNetworkAccessManager::Operation operation() const override;
198};
203class GetTrailerRemoteSearchResultsLoader : public Jellyfin::Support::HttpLoader<QList<RemoteSearchResult>, GetTrailerRemoteSearchResultsParams> {
204public:
206
207protected:
208 QString path(const GetTrailerRemoteSearchResultsParams& parameters) const override;
209 QUrlQuery query(const GetTrailerRemoteSearchResultsParams& parameters) const override;
210 QByteArray body(const GetTrailerRemoteSearchResultsParams& parameters) const override;
211 QNetworkAccessManager::Operation operation() const override;
212};
213
214} // NS HTTP
215} // NS Loader
216} // NS Jellyfin
217
218#endif // JELLYFIN_LOADER_HTTP_ITEMLOOKUP_H
An Api client for Jellyfin. Handles requests and authentication.
Definition apiclient.h:90
Definition requesttypes.h:418
Definition requesttypes.h:4897
Applies search criteria to an item and refreshes metadata.
Definition itemlookup.h:77
QNetworkAccessManager::Operation operation() const override
Definition itemlookup.cpp:93
QString path(const ApplySearchCriteriaParams &parameters) const override
Definition itemlookup.cpp:70
QByteArray body(const ApplySearchCriteriaParams &parameters) const override
Definition itemlookup.cpp:89
ApplySearchCriteriaLoader(ApiClient *apiClient=nullptr)
Definition itemlookup.cpp:67
QUrlQuery query(const ApplySearchCriteriaParams &parameters) const override
Definition itemlookup.cpp:76
Get book remote search.
Definition itemlookup.h:91
QUrlQuery query(const GetBookRemoteSearchResultsParams &parameters) const override
Definition itemlookup.cpp:108
QString path(const GetBookRemoteSearchResultsParams &parameters) const override
Definition itemlookup.cpp:102
QNetworkAccessManager::Operation operation() const override
Definition itemlookup.cpp:122
QByteArray body(const GetBookRemoteSearchResultsParams &parameters) const override
Definition itemlookup.cpp:118
GetBookRemoteSearchResultsLoader(ApiClient *apiClient=nullptr)
Definition itemlookup.cpp:99
Get box set remote search.
Definition itemlookup.h:105
QString path(const GetBoxSetRemoteSearchResultsParams &parameters) const override
Definition itemlookup.cpp:131
QNetworkAccessManager::Operation operation() const override
Definition itemlookup.cpp:151
QUrlQuery query(const GetBoxSetRemoteSearchResultsParams &parameters) const override
Definition itemlookup.cpp:137
QByteArray body(const GetBoxSetRemoteSearchResultsParams &parameters) const override
Definition itemlookup.cpp:147
GetBoxSetRemoteSearchResultsLoader(ApiClient *apiClient=nullptr)
Definition itemlookup.cpp:128
Get the item's external id info.
Definition itemlookup.h:63
GetExternalIdInfosLoader(ApiClient *apiClient=nullptr)
Definition itemlookup.cpp:38
QUrlQuery query(const GetExternalIdInfosParams &parameters) const override
Definition itemlookup.cpp:47
QString path(const GetExternalIdInfosParams &parameters) const override
Definition itemlookup.cpp:41
QNetworkAccessManager::Operation operation() const override
Definition itemlookup.cpp:61
QByteArray body(const GetExternalIdInfosParams &parameters) const override
Definition itemlookup.cpp:57
Get movie remote search.
Definition itemlookup.h:119
QString path(const GetMovieRemoteSearchResultsParams &parameters) const override
Definition itemlookup.cpp:160
GetMovieRemoteSearchResultsLoader(ApiClient *apiClient=nullptr)
Definition itemlookup.cpp:157
QNetworkAccessManager::Operation operation() const override
Definition itemlookup.cpp:180
QUrlQuery query(const GetMovieRemoteSearchResultsParams &parameters) const override
Definition itemlookup.cpp:166
QByteArray body(const GetMovieRemoteSearchResultsParams &parameters) const override
Definition itemlookup.cpp:176
Get music album remote search.
Definition itemlookup.h:133
QNetworkAccessManager::Operation operation() const override
Definition itemlookup.cpp:209
QString path(const GetMusicAlbumRemoteSearchResultsParams &parameters) const override
Definition itemlookup.cpp:189
QByteArray body(const GetMusicAlbumRemoteSearchResultsParams &parameters) const override
Definition itemlookup.cpp:205
GetMusicAlbumRemoteSearchResultsLoader(ApiClient *apiClient=nullptr)
Definition itemlookup.cpp:186
QUrlQuery query(const GetMusicAlbumRemoteSearchResultsParams &parameters) const override
Definition itemlookup.cpp:195
Get music artist remote search.
Definition itemlookup.h:147
QNetworkAccessManager::Operation operation() const override
Definition itemlookup.cpp:238
QByteArray body(const GetMusicArtistRemoteSearchResultsParams &parameters) const override
Definition itemlookup.cpp:234
QString path(const GetMusicArtistRemoteSearchResultsParams &parameters) const override
Definition itemlookup.cpp:218
GetMusicArtistRemoteSearchResultsLoader(ApiClient *apiClient=nullptr)
Definition itemlookup.cpp:215
QUrlQuery query(const GetMusicArtistRemoteSearchResultsParams &parameters) const override
Definition itemlookup.cpp:224
Get music video remote search.
Definition itemlookup.h:161
GetMusicVideoRemoteSearchResultsLoader(ApiClient *apiClient=nullptr)
Definition itemlookup.cpp:244
QNetworkAccessManager::Operation operation() const override
Definition itemlookup.cpp:267
QUrlQuery query(const GetMusicVideoRemoteSearchResultsParams &parameters) const override
Definition itemlookup.cpp:253
QString path(const GetMusicVideoRemoteSearchResultsParams &parameters) const override
Definition itemlookup.cpp:247
QByteArray body(const GetMusicVideoRemoteSearchResultsParams &parameters) const override
Definition itemlookup.cpp:263
Get person remote search.
Definition itemlookup.h:175
QString path(const GetPersonRemoteSearchResultsParams &parameters) const override
Definition itemlookup.cpp:276
QByteArray body(const GetPersonRemoteSearchResultsParams &parameters) const override
Definition itemlookup.cpp:292
GetPersonRemoteSearchResultsLoader(ApiClient *apiClient=nullptr)
Definition itemlookup.cpp:273
QUrlQuery query(const GetPersonRemoteSearchResultsParams &parameters) const override
Definition itemlookup.cpp:282
QNetworkAccessManager::Operation operation() const override
Definition itemlookup.cpp:296
Get series remote search.
Definition itemlookup.h:189
QUrlQuery query(const GetSeriesRemoteSearchResultsParams &parameters) const override
Definition itemlookup.cpp:311
QByteArray body(const GetSeriesRemoteSearchResultsParams &parameters) const override
Definition itemlookup.cpp:321
QNetworkAccessManager::Operation operation() const override
Definition itemlookup.cpp:325
QString path(const GetSeriesRemoteSearchResultsParams &parameters) const override
Definition itemlookup.cpp:305
GetSeriesRemoteSearchResultsLoader(ApiClient *apiClient=nullptr)
Definition itemlookup.cpp:302
Get trailer remote search.
Definition itemlookup.h:203
QNetworkAccessManager::Operation operation() const override
Definition itemlookup.cpp:354
QUrlQuery query(const GetTrailerRemoteSearchResultsParams &parameters) const override
Definition itemlookup.cpp:340
GetTrailerRemoteSearchResultsLoader(ApiClient *apiClient=nullptr)
Definition itemlookup.cpp:331
QString path(const GetTrailerRemoteSearchResultsParams &parameters) const override
Definition itemlookup.cpp:334
QByteArray body(const GetTrailerRemoteSearchResultsParams &parameters) const override
Definition itemlookup.cpp:350
Definition loader.h:285
ApiClient * apiClient() const
Definition loader.h:95
Contains auto-generated Data Transfer Objects for the Jellyfin HTTP API.