Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
libraryupdateinfo.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_LIBRARYUPDATEINFO_H
31#define JELLYFIN_DTO_LIBRARYUPDATEINFO_H
32
33#include <QJsonObject>
34#include <QJsonValue>
35#include <QList>
36#include <QString>
37#include <QStringList>
38#include <optional>
39
41
42namespace Jellyfin {
43// Forward declaration
44class ApiClient;
45}
46namespace Jellyfin {
47namespace DTO {
48
49
51public:
53 bool isEmpty
54 );
55
57
61 void replaceData(LibraryUpdateInfo &other);
62
63 static LibraryUpdateInfo fromJson(QJsonObject source);
64 void setFromJson(QJsonObject source);
65 QJsonObject toJson() const;
66
67 // Properties
71 QStringList foldersAddedTo() const;
75 void setFoldersAddedTo(QStringList newFoldersAddedTo);
76 bool foldersAddedToNull() const;
78
82 QStringList foldersRemovedFrom() const;
86 void setFoldersRemovedFrom(QStringList newFoldersRemovedFrom);
87 bool foldersRemovedFromNull() const;
89
93 QStringList itemsAdded() const;
97 void setItemsAdded(QStringList newItemsAdded);
98 bool itemsAddedNull() const;
99 void setItemsAddedNull();
100
104 QStringList itemsRemoved() const;
108 void setItemsRemoved(QStringList newItemsRemoved);
109 bool itemsRemovedNull() const;
110 void setItemsRemovedNull();
111
115 QStringList itemsUpdated() const;
119 void setItemsUpdated(QStringList newItemsUpdated);
120 bool itemsUpdatedNull() const;
121 void setItemsUpdatedNull();
122
123
124 QStringList collectionFolders() const;
125
126 void setCollectionFolders(QStringList newCollectionFolders);
127 bool collectionFoldersNull() const;
129
130
131 bool isEmpty() const;
132
133 void setIsEmpty(bool newIsEmpty);
134
135
136protected:
137 QStringList m_foldersAddedTo;
139 QStringList m_itemsAdded;
140 QStringList m_itemsRemoved;
141 QStringList m_itemsUpdated;
144
145private:
146 // Private constructor which generates an invalid object, for use withing LibraryUpdateInfo::fromJson();
148};
149
150
151} // NS DTO
152
153namespace Support {
154
156
157template <>
159
160template<>
162
163} // NS DTO
164} // NS Jellyfin
165
166#endif // JELLYFIN_DTO_LIBRARYUPDATEINFO_H
Definition libraryupdateinfo.h:50
void setItemsRemovedNull()
Definition libraryupdateinfo.cpp:167
QStringList m_foldersRemovedFrom
Definition libraryupdateinfo.h:138
void setFoldersRemovedFrom(QStringList newFoldersRemovedFrom)
Gets or sets the folders removed from.
Definition libraryupdateinfo.cpp:134
void setIsEmpty(bool newIsEmpty)
Definition libraryupdateinfo.cpp:199
bool itemsAddedNull() const
Definition libraryupdateinfo.cpp:150
void setCollectionFolders(QStringList newCollectionFolders)
Definition libraryupdateinfo.cpp:186
QStringList foldersAddedTo() const
Gets or sets the folders added to.
Definition libraryupdateinfo.cpp:119
QStringList itemsRemoved() const
Gets or sets the items removed.
Definition libraryupdateinfo.cpp:158
QStringList m_collectionFolders
Definition libraryupdateinfo.h:142
bool m_isEmpty
Definition libraryupdateinfo.h:143
QStringList m_itemsAdded
Definition libraryupdateinfo.h:139
bool isEmpty() const
Definition libraryupdateinfo.cpp:197
QJsonObject toJson() const
Definition libraryupdateinfo.cpp:82
void setFoldersAddedTo(QStringList newFoldersAddedTo)
Gets or sets the folders added to.
Definition libraryupdateinfo.cpp:121
static LibraryUpdateInfo fromJson(QJsonObject source)
Definition libraryupdateinfo.cpp:64
bool foldersAddedToNull() const
Definition libraryupdateinfo.cpp:124
bool collectionFoldersNull() const
Definition libraryupdateinfo.cpp:189
void setFoldersAddedToNull()
Definition libraryupdateinfo.cpp:128
QStringList itemsUpdated() const
Gets or sets the items updated.
Definition libraryupdateinfo.cpp:171
void setItemsAddedNull()
Definition libraryupdateinfo.cpp:154
QStringList collectionFolders() const
Definition libraryupdateinfo.cpp:184
void setFromJson(QJsonObject source)
Definition libraryupdateinfo.cpp:71
QStringList m_itemsUpdated
Definition libraryupdateinfo.h:141
bool itemsUpdatedNull() const
Definition libraryupdateinfo.cpp:176
bool itemsRemovedNull() const
Definition libraryupdateinfo.cpp:163
void setFoldersRemovedFromNull()
Definition libraryupdateinfo.cpp:141
QStringList m_itemsRemoved
Definition libraryupdateinfo.h:140
QStringList itemsAdded() const
Gets or sets the items added.
Definition libraryupdateinfo.cpp:145
bool foldersRemovedFromNull() const
Definition libraryupdateinfo.cpp:137
void setItemsUpdated(QStringList newItemsUpdated)
Gets or sets the items updated.
Definition libraryupdateinfo.cpp:173
void setItemsUpdatedNull()
Definition libraryupdateinfo.cpp:180
void replaceData(LibraryUpdateInfo &other)
Definition libraryupdateinfo.cpp:54
void setItemsRemoved(QStringList newItemsRemoved)
Gets or sets the items removed.
Definition libraryupdateinfo.cpp:160
QStringList m_foldersAddedTo
Definition libraryupdateinfo.h:137
void setCollectionFoldersNull()
Definition libraryupdateinfo.cpp:193
QStringList foldersRemovedFrom() const
Gets or sets the folders removed from.
Definition libraryupdateinfo.cpp:132
void setItemsAdded(QStringList newItemsAdded)
Gets or sets the items added.
Definition libraryupdateinfo.cpp:147
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