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