Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
itemcounts.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_ITEMCOUNTS_H
31#define JELLYFIN_DTO_ITEMCOUNTS_H
32
33#include <QJsonObject>
34#include <QJsonValue>
35#include <optional>
36
38
39namespace Jellyfin {
40// Forward declaration
41class ApiClient;
42}
43namespace Jellyfin {
44namespace DTO {
45
46
48public:
50 qint32 movieCount,
51 qint32 seriesCount,
52 qint32 episodeCount,
53 qint32 artistCount,
54 qint32 programCount,
55 qint32 trailerCount,
56 qint32 songCount,
57 qint32 albumCount,
58 qint32 musicVideoCount,
59 qint32 boxSetCount,
60 qint32 bookCount,
61 qint32 itemCount
62 );
63
64 ItemCounts(const ItemCounts &other);
65
69 void replaceData(ItemCounts &other);
70
71 static ItemCounts fromJson(QJsonObject source);
72 void setFromJson(QJsonObject source);
73 QJsonObject toJson() const;
74
75 // Properties
79 qint32 movieCount() const;
83 void setMovieCount(qint32 newMovieCount);
84
88 qint32 seriesCount() const;
92 void setSeriesCount(qint32 newSeriesCount);
93
97 qint32 episodeCount() const;
101 void setEpisodeCount(qint32 newEpisodeCount);
102
106 qint32 artistCount() const;
110 void setArtistCount(qint32 newArtistCount);
111
115 qint32 programCount() const;
119 void setProgramCount(qint32 newProgramCount);
120
124 qint32 trailerCount() const;
128 void setTrailerCount(qint32 newTrailerCount);
129
133 qint32 songCount() const;
137 void setSongCount(qint32 newSongCount);
138
142 qint32 albumCount() const;
146 void setAlbumCount(qint32 newAlbumCount);
147
151 qint32 musicVideoCount() const;
155 void setMusicVideoCount(qint32 newMusicVideoCount);
156
160 qint32 boxSetCount() const;
164 void setBoxSetCount(qint32 newBoxSetCount);
165
169 qint32 bookCount() const;
173 void setBookCount(qint32 newBookCount);
174
178 qint32 itemCount() const;
182 void setItemCount(qint32 newItemCount);
183
184
185protected:
198
199private:
200 // Private constructor which generates an invalid object, for use withing ItemCounts::fromJson();
201 ItemCounts();
202};
203
204
205} // NS DTO
206
207namespace Support {
208
210
211template <>
212ItemCounts fromJsonValue(const QJsonValue &source, convertType<ItemCounts>);
213
214template<>
215QJsonValue toJsonValue(const ItemCounts &source, convertType<ItemCounts>);
216
217} // NS DTO
218} // NS Jellyfin
219
220#endif // JELLYFIN_DTO_ITEMCOUNTS_H
Definition itemcounts.h:47
void setTrailerCount(qint32 newTrailerCount)
Gets or sets the trailer count.
Definition itemcounts.cpp:169
void setMovieCount(qint32 newMovieCount)
Gets or sets the movie count.
Definition itemcounts.cpp:139
static ItemCounts fromJson(QJsonObject source)
Definition itemcounts.cpp:96
qint32 m_itemCount
Definition itemcounts.h:197
qint32 albumCount() const
Gets or sets the album count.
Definition itemcounts.cpp:179
void setProgramCount(qint32 newProgramCount)
Gets or sets the program count.
Definition itemcounts.cpp:163
qint32 programCount() const
Gets or sets the program count.
Definition itemcounts.cpp:161
qint32 seriesCount() const
Gets or sets the series count.
Definition itemcounts.cpp:143
QJsonObject toJson() const
Definition itemcounts.cpp:119
qint32 movieCount() const
Gets or sets the movie count.
Definition itemcounts.cpp:137
void setArtistCount(qint32 newArtistCount)
Gets or sets the artist count.
Definition itemcounts.cpp:157
qint32 m_programCount
Definition itemcounts.h:190
qint32 artistCount() const
Gets or sets the artist count.
Definition itemcounts.cpp:155
void setSeriesCount(qint32 newSeriesCount)
Gets or sets the series count.
Definition itemcounts.cpp:145
qint32 episodeCount() const
Gets or sets the episode count.
Definition itemcounts.cpp:149
qint32 musicVideoCount() const
Gets or sets the music video count.
Definition itemcounts.cpp:185
qint32 m_songCount
Definition itemcounts.h:192
qint32 bookCount() const
Gets or sets the book count.
Definition itemcounts.cpp:197
qint32 trailerCount() const
Gets or sets the trailer count.
Definition itemcounts.cpp:167
qint32 m_seriesCount
Definition itemcounts.h:187
qint32 m_artistCount
Definition itemcounts.h:189
qint32 m_movieCount
Definition itemcounts.h:186
qint32 songCount() const
Gets or sets the song count.
Definition itemcounts.cpp:173
void setBoxSetCount(qint32 newBoxSetCount)
Gets or sets the box set count.
Definition itemcounts.cpp:193
qint32 m_albumCount
Definition itemcounts.h:193
void setItemCount(qint32 newItemCount)
Gets or sets the item count.
Definition itemcounts.cpp:205
void replaceData(ItemCounts &other)
Definition itemcounts.cpp:81
qint32 boxSetCount() const
Gets or sets the box set count.
Definition itemcounts.cpp:191
qint32 m_trailerCount
Definition itemcounts.h:191
void setEpisodeCount(qint32 newEpisodeCount)
Gets or sets the episode count.
Definition itemcounts.cpp:151
void setFromJson(QJsonObject source)
Definition itemcounts.cpp:103
qint32 m_bookCount
Definition itemcounts.h:196
qint32 itemCount() const
Gets or sets the item count.
Definition itemcounts.cpp:203
qint32 m_musicVideoCount
Definition itemcounts.h:194
qint32 m_boxSetCount
Definition itemcounts.h:195
void setSongCount(qint32 newSongCount)
Gets or sets the song count.
Definition itemcounts.cpp:175
void setMusicVideoCount(qint32 newMusicVideoCount)
Gets or sets the music video count.
Definition itemcounts.cpp:187
void setAlbumCount(qint32 newAlbumCount)
Gets or sets the album count.
Definition itemcounts.cpp:181
qint32 m_episodeCount
Definition itemcounts.h:188
void setBookCount(qint32 newBookCount)
Gets or sets the book count.
Definition itemcounts.cpp:199
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