Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
seriesinforemotesearchquery.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_SERIESINFOREMOTESEARCHQUERY_H
31#define JELLYFIN_DTO_SERIESINFOREMOTESEARCHQUERY_H
32
33#include <QJsonObject>
34#include <QJsonValue>
35#include <QSharedPointer>
36#include <QString>
37#include <optional>
38
41
42namespace Jellyfin {
43// Forward declaration
44class ApiClient;
45}
46namespace Jellyfin {
47namespace DTO {
48
49
51public:
53 QSharedPointer<SeriesInfo> searchInfo,
54 QString itemId,
56 );
57
59
64
65 static SeriesInfoRemoteSearchQuery fromJson(QJsonObject source);
66 void setFromJson(QJsonObject source);
67 QJsonObject toJson() const;
68
69 // Properties
70
71 QSharedPointer<SeriesInfo> searchInfo() const;
72
73 void setSearchInfo(QSharedPointer<SeriesInfo> newSearchInfo);
74
75
76 QString itemId() const;
77
78 void setItemId(QString newItemId);
79
83 QString searchProviderName() const;
87 void setSearchProviderName(QString newSearchProviderName);
88 bool searchProviderNameNull() const;
90
94 bool includeDisabledProviders() const;
98 void setIncludeDisabledProviders(bool newIncludeDisabledProviders);
99
100
101protected:
102 QSharedPointer<SeriesInfo> m_searchInfo = QSharedPointer<SeriesInfo>();
103 QString m_itemId;
106
107private:
108 // Private constructor which generates an invalid object, for use withing SeriesInfoRemoteSearchQuery::fromJson();
110};
111
112
113} // NS DTO
114
115namespace Support {
116
118
119template <>
121
122template<>
124
125} // NS DTO
126} // NS Jellyfin
127
128#endif // JELLYFIN_DTO_SERIESINFOREMOTESEARCHQUERY_H
Definition seriesinforemotesearchquery.h:50
QString m_itemId
Definition seriesinforemotesearchquery.h:103
bool m_includeDisabledProviders
Definition seriesinforemotesearchquery.h:105
bool searchProviderNameNull() const
Definition seriesinforemotesearchquery.cpp:108
void setItemId(QString newItemId)
Definition seriesinforemotesearchquery.cpp:99
QSharedPointer< SeriesInfo > searchInfo() const
Definition seriesinforemotesearchquery.cpp:91
QString itemId() const
Definition seriesinforemotesearchquery.cpp:97
void setFromJson(QJsonObject source)
Definition seriesinforemotesearchquery.cpp:69
void replaceData(SeriesInfoRemoteSearchQuery &other)
Definition seriesinforemotesearchquery.cpp:55
static SeriesInfoRemoteSearchQuery fromJson(QJsonObject source)
Definition seriesinforemotesearchquery.cpp:62
QString searchProviderName() const
Will only search within the given provider when set.
Definition seriesinforemotesearchquery.cpp:103
void setSearchInfo(QSharedPointer< SeriesInfo > newSearchInfo)
Definition seriesinforemotesearchquery.cpp:93
void setIncludeDisabledProviders(bool newIncludeDisabledProviders)
Gets or sets a value indicating whether disabled providers should be included.
Definition seriesinforemotesearchquery.cpp:118
void setSearchProviderName(QString newSearchProviderName)
Will only search within the given provider when set.
Definition seriesinforemotesearchquery.cpp:105
QString m_searchProviderName
Definition seriesinforemotesearchquery.h:104
void setSearchProviderNameNull()
Definition seriesinforemotesearchquery.cpp:112
QJsonObject toJson() const
Definition seriesinforemotesearchquery.cpp:77
QSharedPointer< SeriesInfo > m_searchInfo
Definition seriesinforemotesearchquery.h:102
bool includeDisabledProviders() const
Gets or sets a value indicating whether disabled providers should be included.
Definition seriesinforemotesearchquery.cpp:116
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