Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
artistinforemotesearchquery.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_ARTISTINFOREMOTESEARCHQUERY_H
31#define JELLYFIN_DTO_ARTISTINFOREMOTESEARCHQUERY_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<ArtistInfo> searchInfo,
54 QString itemId,
56 );
57
59
64
65 static ArtistInfoRemoteSearchQuery fromJson(QJsonObject source);
66 void setFromJson(QJsonObject source);
67 QJsonObject toJson() const;
68
69 // Properties
70
71 QSharedPointer<ArtistInfo> searchInfo() const;
72
73 void setSearchInfo(QSharedPointer<ArtistInfo> 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<ArtistInfo> m_searchInfo = QSharedPointer<ArtistInfo>();
103 QString m_itemId;
106
107private:
108 // Private constructor which generates an invalid object, for use withing ArtistInfoRemoteSearchQuery::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_ARTISTINFOREMOTESEARCHQUERY_H
Definition artistinforemotesearchquery.h:50
QSharedPointer< ArtistInfo > m_searchInfo
Definition artistinforemotesearchquery.h:102
QString itemId() const
Definition artistinforemotesearchquery.cpp:97
bool m_includeDisabledProviders
Definition artistinforemotesearchquery.h:105
QSharedPointer< ArtistInfo > searchInfo() const
Definition artistinforemotesearchquery.cpp:91
void setFromJson(QJsonObject source)
Definition artistinforemotesearchquery.cpp:69
QJsonObject toJson() const
Definition artistinforemotesearchquery.cpp:77
void setItemId(QString newItemId)
Definition artistinforemotesearchquery.cpp:99
QString m_searchProviderName
Definition artistinforemotesearchquery.h:104
void replaceData(ArtistInfoRemoteSearchQuery &other)
Definition artistinforemotesearchquery.cpp:55
bool searchProviderNameNull() const
Definition artistinforemotesearchquery.cpp:108
bool includeDisabledProviders() const
Gets or sets a value indicating whether disabled providers should be included.
Definition artistinforemotesearchquery.cpp:116
void setSearchProviderName(QString newSearchProviderName)
Will only search within the given provider when set.
Definition artistinforemotesearchquery.cpp:105
QString searchProviderName() const
Will only search within the given provider when set.
Definition artistinforemotesearchquery.cpp:103
QString m_itemId
Definition artistinforemotesearchquery.h:103
void setIncludeDisabledProviders(bool newIncludeDisabledProviders)
Gets or sets a value indicating whether disabled providers should be included.
Definition artistinforemotesearchquery.cpp:118
void setSearchInfo(QSharedPointer< ArtistInfo > newSearchInfo)
Definition artistinforemotesearchquery.cpp:93
void setSearchProviderNameNull()
Definition artistinforemotesearchquery.cpp:112
static ArtistInfoRemoteSearchQuery fromJson(QJsonObject source)
Definition artistinforemotesearchquery.cpp:62
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