Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
libraryoptionsresultdto.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_LIBRARYOPTIONSRESULTDTO_H
31#define JELLYFIN_DTO_LIBRARYOPTIONSRESULTDTO_H
32
33#include <QJsonObject>
34#include <QJsonValue>
35#include <QList>
36#include <QStringList>
37#include <optional>
38
42
43namespace Jellyfin {
44// Forward declaration
45class ApiClient;
46}
47namespace Jellyfin {
48namespace DTO {
49
50
52public:
59 );
60
62
67
68 static LibraryOptionsResultDto fromJson(QJsonObject source);
69 void setFromJson(QJsonObject source);
70 QJsonObject toJson() const;
71
72 // Properties
80 void setMetadataSavers(QList<LibraryOptionInfoDto> newMetadataSavers);
81
89 void setMetadataReaders(QList<LibraryOptionInfoDto> newMetadataReaders);
90
98 void setSubtitleFetchers(QList<LibraryOptionInfoDto> newSubtitleFetchers);
99
107 void setLyricFetchers(QList<LibraryOptionInfoDto> newLyricFetchers);
108
116 void setTypeOptions(QList<LibraryTypeOptionsDto> newTypeOptions);
117
118
119protected:
125
126private:
127 // Private constructor which generates an invalid object, for use withing LibraryOptionsResultDto::fromJson();
129};
130
131
132} // NS DTO
133
134namespace Support {
135
137
138template <>
140
141template<>
143
144} // NS DTO
145} // NS Jellyfin
146
147#endif // JELLYFIN_DTO_LIBRARYOPTIONSRESULTDTO_H
An Api client for Jellyfin. Handles requests and authentication.
Definition apiclient.h:90
Definition libraryoptionsresultdto.h:51
QList< LibraryOptionInfoDto > lyricFetchers() const
Gets or sets the list of lyric fetchers.
Definition libraryoptionsresultdto.cpp:113
QList< LibraryOptionInfoDto > m_subtitleFetchers
Definition libraryoptionsresultdto.h:122
QList< LibraryOptionInfoDto > m_metadataSavers
Definition libraryoptionsresultdto.h:120
QJsonObject toJson() const
Definition libraryoptionsresultdto.cpp:84
QList< LibraryOptionInfoDto > subtitleFetchers() const
Gets or sets the subtitle fetchers.
Definition libraryoptionsresultdto.cpp:107
QList< LibraryTypeOptionsDto > m_typeOptions
Definition libraryoptionsresultdto.h:124
void setFromJson(QJsonObject source)
Definition libraryoptionsresultdto.cpp:75
QList< LibraryOptionInfoDto > metadataSavers() const
Gets or sets the metadata savers.
Definition libraryoptionsresultdto.cpp:95
LibraryOptionsResultDto(QList< LibraryOptionInfoDto > metadataSavers, QList< LibraryOptionInfoDto > metadataReaders, QList< LibraryOptionInfoDto > subtitleFetchers, QList< LibraryOptionInfoDto > lyricFetchers, QList< LibraryTypeOptionsDto > typeOptions)
Definition libraryoptionsresultdto.cpp:36
QList< LibraryOptionInfoDto > metadataReaders() const
Gets or sets the metadata readers.
Definition libraryoptionsresultdto.cpp:101
void setSubtitleFetchers(QList< LibraryOptionInfoDto > newSubtitleFetchers)
Gets or sets the subtitle fetchers.
Definition libraryoptionsresultdto.cpp:109
void replaceData(LibraryOptionsResultDto &other)
Definition libraryoptionsresultdto.cpp:60
static LibraryOptionsResultDto fromJson(QJsonObject source)
Definition libraryoptionsresultdto.cpp:68
QList< LibraryOptionInfoDto > m_metadataReaders
Definition libraryoptionsresultdto.h:121
void setTypeOptions(QList< LibraryTypeOptionsDto > newTypeOptions)
Gets or sets the type options.
Definition libraryoptionsresultdto.cpp:121
void setLyricFetchers(QList< LibraryOptionInfoDto > newLyricFetchers)
Gets or sets the list of lyric fetchers.
Definition libraryoptionsresultdto.cpp:115
QList< LibraryTypeOptionsDto > typeOptions() const
Gets or sets the type options.
Definition libraryoptionsresultdto.cpp:119
void setMetadataSavers(QList< LibraryOptionInfoDto > newMetadataSavers)
Gets or sets the metadata savers.
Definition libraryoptionsresultdto.cpp:97
QList< LibraryOptionInfoDto > m_lyricFetchers
Definition libraryoptionsresultdto.h:123
void setMetadataReaders(QList< LibraryOptionInfoDto > newMetadataReaders)
Gets or sets the metadata readers.
Definition libraryoptionsresultdto.cpp:103
Definition mediaplayer2.h:20
Contains auto-generated Data Transfer Objects for the Jellyfin HTTP API.
Definition accessschedule.h:128
Jellyfin::DTO::LibraryOptionsResultDto LibraryOptionsResultDto
Definition libraryoptionsresultdto.h:136
AccessSchedule fromJsonValue(const QJsonValue &source, convertType< AccessSchedule >)
Definition accessschedule.cpp:133
QJsonValue toJsonValue(const AccessSchedule &source, convertType< AccessSchedule >)
Definition accessschedule.cpp:139
Definition jsonconvimpl.h:45