Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Toggle main menu visibility
Loading...
Searching...
No Matches
imageproviderinfo.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_DTO_IMAGEPROVIDERINFO_H
31
#define JELLYFIN_DTO_IMAGEPROVIDERINFO_H
32
33
#include <QJsonObject>
34
#include <QJsonValue>
35
#include <QList>
36
#include <QString>
37
#include <QStringList>
38
#include <optional>
39
40
#include "
JellyfinQt/dto/imagetype.h
"
41
#include "
JellyfinQt/support/jsonconv.h
"
42
43
namespace
Jellyfin
{
44
// Forward declaration
45
class
ApiClient
;
46
}
47
namespace
Jellyfin
{
48
namespace
DTO
{
49
50
51
class
ImageProviderInfo
{
52
public
:
53
ImageProviderInfo
(
54
QString
name
,
55
QList<ImageType>
supportedImages
56
);
57
58
ImageProviderInfo
(
const
ImageProviderInfo
&other);
59
63
void
replaceData
(
ImageProviderInfo
&other);
64
65
static
ImageProviderInfo
fromJson
(QJsonObject source);
66
void
setFromJson
(QJsonObject source);
67
QJsonObject
toJson
()
const
;
68
69
// Properties
73
QString
name
()
const
;
77
void
setName
(QString newName);
78
82
QList<ImageType>
supportedImages
()
const
;
86
void
setSupportedImages
(
QList<ImageType>
newSupportedImages);
87
88
89
protected
:
90
QString
m_name
;
91
QList<ImageType>
m_supportedImages
;
92
93
private
:
94
// Private constructor which generates an invalid object, for use withing ImageProviderInfo::fromJson();
95
ImageProviderInfo
();
96
};
97
98
99
}
// NS DTO
100
101
namespace
Support
{
102
103
using
ImageProviderInfo
=
Jellyfin::DTO::ImageProviderInfo
;
104
105
template
<>
106
ImageProviderInfo
fromJsonValue
(
const
QJsonValue &source,
convertType<ImageProviderInfo>
);
107
108
template
<>
109
QJsonValue
toJsonValue
(
const
ImageProviderInfo
&source,
convertType<ImageProviderInfo>
);
110
111
}
// NS DTO
112
}
// NS Jellyfin
113
114
#endif
// JELLYFIN_DTO_IMAGEPROVIDERINFO_H
Jellyfin::ApiClient
An Api client for Jellyfin. Handles requests and authentication.
Definition
apiclient.h:90
Jellyfin::DTO::ImageProviderInfo
Definition
imageproviderinfo.h:51
Jellyfin::DTO::ImageProviderInfo::ImageProviderInfo
ImageProviderInfo(QString name, QList< ImageType > supportedImages)
Definition
imageproviderinfo.cpp:36
Jellyfin::DTO::ImageProviderInfo::m_name
QString m_name
Definition
imageproviderinfo.h:90
Jellyfin::DTO::ImageProviderInfo::m_supportedImages
QList< ImageType > m_supportedImages
Definition
imageproviderinfo.h:91
Jellyfin::DTO::ImageProviderInfo::toJson
QJsonObject toJson() const
Definition
imageproviderinfo.cpp:69
Jellyfin::DTO::ImageProviderInfo::replaceData
void replaceData(ImageProviderInfo &other)
Definition
imageproviderinfo.cpp:51
Jellyfin::DTO::ImageProviderInfo::name
QString name() const
Gets the name.
Definition
imageproviderinfo.cpp:77
Jellyfin::DTO::ImageProviderInfo::setSupportedImages
void setSupportedImages(QList< ImageType > newSupportedImages)
Gets the supported image types.
Definition
imageproviderinfo.cpp:85
Jellyfin::DTO::ImageProviderInfo::fromJson
static ImageProviderInfo fromJson(QJsonObject source)
Definition
imageproviderinfo.cpp:56
Jellyfin::DTO::ImageProviderInfo::supportedImages
QList< ImageType > supportedImages() const
Gets the supported image types.
Definition
imageproviderinfo.cpp:83
Jellyfin::DTO::ImageProviderInfo::setFromJson
void setFromJson(QJsonObject source)
Definition
imageproviderinfo.cpp:63
Jellyfin::DTO::ImageProviderInfo::setName
void setName(QString newName)
Gets the name.
Definition
imageproviderinfo.cpp:79
QList
Definition
mediaplayer2.h:20
imagetype.h
jsonconv.h
Jellyfin::DTO
Contains auto-generated Data Transfer Objects for the Jellyfin HTTP API.
Jellyfin::Support
Definition
accessschedule.h:128
Jellyfin::Support::ImageProviderInfo
Jellyfin::DTO::ImageProviderInfo ImageProviderInfo
Definition
imageproviderinfo.h:103
Jellyfin::Support::fromJsonValue
AccessSchedule fromJsonValue(const QJsonValue &source, convertType< AccessSchedule >)
Definition
accessschedule.cpp:133
Jellyfin::Support::toJsonValue
QJsonValue toJsonValue(const AccessSchedule &source, convertType< AccessSchedule >)
Definition
accessschedule.cpp:139
Jellyfin
Jellyfin::Support::convertType
Definition
jsonconvimpl.h:45
core
include
JellyfinQt
dto
imageproviderinfo.h
Generated by
1.17.0