Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Toggle main menu visibility
Loading...
Searching...
No Matches
artists.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_ARTISTS_H
31
#define JELLYFIN_LOADER_HTTP_ARTISTS_H
32
33
#include <optional>
34
35
#include "
JellyfinQt/support/jsonconv.h
"
36
#include "
JellyfinQt/support/loader.h
"
37
#include "
JellyfinQt/loader/requesttypes.h
"
38
#include "
JellyfinQt/dto/baseitemdtoqueryresult.h
"
39
#include "
JellyfinQt/dto/baseitemdto.h
"
40
#include "
JellyfinQt/dto/baseitemdtoqueryresult.h
"
41
42
namespace
Jellyfin
{
43
// Forward declaration
44
class
ApiClient
;
45
}
46
namespace
Jellyfin
{
47
namespace
Loader
{
48
namespace
HTTP
{
49
50
using namespace
Jellyfin::DTO;
51
55
56
class
GetArtistsLoader
:
public
Jellyfin::Support::HttpLoader
<BaseItemDtoQueryResult, GetArtistsParams> {
57
public
:
58
explicit
GetArtistsLoader
(
ApiClient
*
apiClient
=
nullptr
);
59
60
protected
:
61
QString
path
(
const
GetArtistsParams
& parameters)
const override
;
62
QUrlQuery
query
(
const
GetArtistsParams
& parameters)
const override
;
63
QByteArray
body
(
const
GetArtistsParams
& parameters)
const override
;
64
QNetworkAccessManager::Operation
operation
()
const override
;
65
};
66
69
70
class
GetArtistByNameLoader
:
public
Jellyfin::Support::HttpLoader
<BaseItemDto, GetArtistByNameParams> {
71
public
:
72
explicit
GetArtistByNameLoader
(
ApiClient
*
apiClient
=
nullptr
);
73
74
protected
:
75
QString
path
(
const
GetArtistByNameParams
& parameters)
const override
;
76
QUrlQuery
query
(
const
GetArtistByNameParams
& parameters)
const override
;
77
QByteArray
body
(
const
GetArtistByNameParams
& parameters)
const override
;
78
QNetworkAccessManager::Operation
operation
()
const override
;
79
};
80
83
84
class
GetAlbumArtistsLoader
:
public
Jellyfin::Support::HttpLoader
<BaseItemDtoQueryResult, GetAlbumArtistsParams> {
85
public
:
86
explicit
GetAlbumArtistsLoader
(
ApiClient
*
apiClient
=
nullptr
);
87
88
protected
:
89
QString
path
(
const
GetAlbumArtistsParams
& parameters)
const override
;
90
QUrlQuery
query
(
const
GetAlbumArtistsParams
& parameters)
const override
;
91
QByteArray
body
(
const
GetAlbumArtistsParams
& parameters)
const override
;
92
QNetworkAccessManager::Operation
operation
()
const override
;
93
};
94
95
}
// NS HTTP
96
}
// NS Loader
97
}
// NS Jellyfin
98
99
#endif
// JELLYFIN_LOADER_HTTP_ARTISTS_H
baseitemdto.h
baseitemdtoqueryresult.h
Jellyfin::ApiClient
An Api client for Jellyfin. Handles requests and authentication.
Definition
apiclient.h:90
Jellyfin::Loader::GetAlbumArtistsParams
Definition
requesttypes.h:1513
Jellyfin::Loader::GetArtistByNameParams
Definition
requesttypes.h:1890
Jellyfin::Loader::GetArtistsParams
Definition
requesttypes.h:2098
Jellyfin::Loader::HTTP::GetAlbumArtistsLoader::body
QByteArray body(const GetAlbumArtistsParams ¶meters) const override
Definition
artists.cpp:310
Jellyfin::Loader::HTTP::GetAlbumArtistsLoader::path
QString path(const GetAlbumArtistsParams ¶meters) const override
Definition
artists.cpp:198
Jellyfin::Loader::HTTP::GetAlbumArtistsLoader::GetAlbumArtistsLoader
GetAlbumArtistsLoader(ApiClient *apiClient=nullptr)
Definition
artists.cpp:195
Jellyfin::Loader::HTTP::GetAlbumArtistsLoader::query
QUrlQuery query(const GetAlbumArtistsParams ¶meters) const override
Definition
artists.cpp:204
Jellyfin::Loader::HTTP::GetAlbumArtistsLoader::operation
QNetworkAccessManager::Operation operation() const override
Definition
artists.cpp:314
Jellyfin::Loader::HTTP::GetArtistByNameLoader::body
QByteArray body(const GetArtistByNameParams ¶meters) const override
Definition
artists.cpp:185
Jellyfin::Loader::HTTP::GetArtistByNameLoader::query
QUrlQuery query(const GetArtistByNameParams ¶meters) const override
Definition
artists.cpp:172
Jellyfin::Loader::HTTP::GetArtistByNameLoader::operation
QNetworkAccessManager::Operation operation() const override
Definition
artists.cpp:189
Jellyfin::Loader::HTTP::GetArtistByNameLoader::path
QString path(const GetArtistByNameParams ¶meters) const override
Definition
artists.cpp:166
Jellyfin::Loader::HTTP::GetArtistByNameLoader::GetArtistByNameLoader
GetArtistByNameLoader(ApiClient *apiClient=nullptr)
Definition
artists.cpp:163
Jellyfin::Loader::HTTP::GetArtistsLoader::path
QString path(const GetArtistsParams ¶meters) const override
Definition
artists.cpp:41
Jellyfin::Loader::HTTP::GetArtistsLoader::operation
QNetworkAccessManager::Operation operation() const override
Definition
artists.cpp:157
Jellyfin::Loader::HTTP::GetArtistsLoader::body
QByteArray body(const GetArtistsParams ¶meters) const override
Definition
artists.cpp:153
Jellyfin::Loader::HTTP::GetArtistsLoader::GetArtistsLoader
GetArtistsLoader(ApiClient *apiClient=nullptr)
Definition
artists.cpp:38
Jellyfin::Loader::HTTP::GetArtistsLoader::query
QUrlQuery query(const GetArtistsParams ¶meters) const override
Definition
artists.cpp:47
Jellyfin::Support::HttpLoader
Definition
loader.h:285
Jellyfin::Support::LoaderBase::apiClient
ApiClient * apiClient() const
Definition
loader.h:95
jsonconv.h
Jellyfin::Loader::HTTP
Definition
activitylog.h:46
Jellyfin::Loader
Definition
activitylog.h:45
Jellyfin
requesttypes.h
loader.h
core
include
JellyfinQt
loader
http
artists.h
Generated by
1.17.0