Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
xbmcmetadataoptions.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_XBMCMETADATAOPTIONS_H
31#define JELLYFIN_DTO_XBMCMETADATAOPTIONS_H
32
33#include <QJsonObject>
34#include <QJsonValue>
35#include <QString>
36#include <optional>
37
39
40namespace Jellyfin {
41// Forward declaration
42class ApiClient;
43}
44namespace Jellyfin {
45namespace DTO {
46
47
49public:
51 QString releaseDateFormat,
55 );
56
58
63
64 static XbmcMetadataOptions fromJson(QJsonObject source);
65 void setFromJson(QJsonObject source);
66 QJsonObject toJson() const;
67
68 // Properties
69
70 QString userId() const;
71
72 void setUserId(QString newUserId);
73 bool userIdNull() const;
74 void setUserIdNull();
75
76
77 QString releaseDateFormat() const;
78
79 void setReleaseDateFormat(QString newReleaseDateFormat);
80
81
82 bool saveImagePathsInNfo() const;
83
84 void setSaveImagePathsInNfo(bool newSaveImagePathsInNfo);
85
86
87 bool enablePathSubstitution() const;
88
89 void setEnablePathSubstitution(bool newEnablePathSubstitution);
90
91
93
94 void setEnableExtraThumbsDuplication(bool newEnableExtraThumbsDuplication);
95
96
97protected:
98 QString m_userId;
103
104private:
105 // Private constructor which generates an invalid object, for use withing XbmcMetadataOptions::fromJson();
107};
108
109
110} // NS DTO
111
112namespace Support {
113
115
116template <>
118
119template<>
121
122} // NS DTO
123} // NS Jellyfin
124
125#endif // JELLYFIN_DTO_XBMCMETADATAOPTIONS_H
An Api client for Jellyfin. Handles requests and authentication.
Definition apiclient.h:90
Definition xbmcmetadataoptions.h:48
bool enablePathSubstitution() const
Definition xbmcmetadataoptions.cpp:122
bool userIdNull() const
Definition xbmcmetadataoptions.cpp:102
void setEnablePathSubstitution(bool newEnablePathSubstitution)
Definition xbmcmetadataoptions.cpp:124
void setSaveImagePathsInNfo(bool newSaveImagePathsInNfo)
Definition xbmcmetadataoptions.cpp:118
void setEnableExtraThumbsDuplication(bool newEnableExtraThumbsDuplication)
Definition xbmcmetadataoptions.cpp:130
QString m_releaseDateFormat
Definition xbmcmetadataoptions.h:99
static XbmcMetadataOptions fromJson(QJsonObject source)
Definition xbmcmetadataoptions.cpp:66
bool m_enablePathSubstitution
Definition xbmcmetadataoptions.h:101
bool saveImagePathsInNfo() const
Definition xbmcmetadataoptions.cpp:116
bool enableExtraThumbsDuplication() const
Definition xbmcmetadataoptions.cpp:128
void setUserIdNull()
Definition xbmcmetadataoptions.cpp:106
XbmcMetadataOptions(QString releaseDateFormat, bool saveImagePathsInNfo, bool enablePathSubstitution, bool enableExtraThumbsDuplication)
Definition xbmcmetadataoptions.cpp:36
bool m_enableExtraThumbsDuplication
Definition xbmcmetadataoptions.h:102
QString releaseDateFormat() const
Definition xbmcmetadataoptions.cpp:110
void setUserId(QString newUserId)
Definition xbmcmetadataoptions.cpp:99
QString userId() const
Definition xbmcmetadataoptions.cpp:97
bool m_saveImagePathsInNfo
Definition xbmcmetadataoptions.h:100
void replaceData(XbmcMetadataOptions &other)
Definition xbmcmetadataoptions.cpp:58
QJsonObject toJson() const
Definition xbmcmetadataoptions.cpp:82
QString m_userId
Definition xbmcmetadataoptions.h:98
void setFromJson(QJsonObject source)
Definition xbmcmetadataoptions.cpp:73
void setReleaseDateFormat(QString newReleaseDateFormat)
Definition xbmcmetadataoptions.cpp:112
Contains auto-generated Data Transfer Objects for the Jellyfin HTTP API.
Definition accessschedule.h:128
Jellyfin::DTO::XbmcMetadataOptions XbmcMetadataOptions
Definition xbmcmetadataoptions.h:114
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