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 QStringList foldersAddedTo,
54 QStringList foldersRemovedFrom,
55 QStringList itemsAdded,
56 QStringList itemsRemoved,
57 QStringList itemsUpdated,
58 QStringList collectionFolders,
59 bool isEmpty
60 );
61
63
67 void replaceData(LibraryUpdateInfo &other);
68
69 static LibraryUpdateInfo fromJson(QJsonObject source);
70 void setFromJson(QJsonObject source);
71 QJsonObject toJson() const;
72
73 // Properties
77 QStringList foldersAddedTo() const;
81 void setFoldersAddedTo(QStringList newFoldersAddedTo);
82
86 QStringList foldersRemovedFrom() const;
90 void setFoldersRemovedFrom(QStringList newFoldersRemovedFrom);
91
95 QStringList itemsAdded() const;
99 void setItemsAdded(QStringList newItemsAdded);
100
104 QStringList itemsRemoved() const;
108 void setItemsRemoved(QStringList newItemsRemoved);
109
113 QStringList itemsUpdated() const;
117 void setItemsUpdated(QStringList newItemsUpdated);
118
119
120 QStringList collectionFolders() const;
121
122 void setCollectionFolders(QStringList newCollectionFolders);
123
124
125 bool isEmpty() const;
126
127 void setIsEmpty(bool newIsEmpty);
128
129
130protected:
131 QStringList m_foldersAddedTo;
133 QStringList m_itemsAdded;
134 QStringList m_itemsRemoved;
135 QStringList m_itemsUpdated;
138
139private:
140 // Private constructor which generates an invalid object, for use withing LibraryUpdateInfo::fromJson();
142};
143
144
145} // NS DTO
146
147namespace Support {
148
150
151template <>
153
154template<>
156
157} // NS DTO
158} // NS Jellyfin
159
160#endif // JELLYFIN_DTO_LIBRARYUPDATEINFO_H
An Api client for Jellyfin. Handles requests and authentication.
Definition apiclient.h:90
Definition libraryupdateinfo.h:50
QStringList m_foldersRemovedFrom
Definition libraryupdateinfo.h:132
void setFoldersRemovedFrom(QStringList newFoldersRemovedFrom)
Gets or sets the folders removed from.
Definition libraryupdateinfo.cpp:115
void setIsEmpty(bool newIsEmpty)
Definition libraryupdateinfo.cpp:145
void setCollectionFolders(QStringList newCollectionFolders)
Definition libraryupdateinfo.cpp:139
QStringList foldersAddedTo() const
Gets or sets the folders added to.
Definition libraryupdateinfo.cpp:107
QStringList itemsRemoved() const
Gets or sets the items removed.
Definition libraryupdateinfo.cpp:125
QStringList m_collectionFolders
Definition libraryupdateinfo.h:136
bool m_isEmpty
Definition libraryupdateinfo.h:137
QStringList m_itemsAdded
Definition libraryupdateinfo.h:133
bool isEmpty() const
Definition libraryupdateinfo.cpp:143
QJsonObject toJson() const
Definition libraryupdateinfo.cpp:94
void setFoldersAddedTo(QStringList newFoldersAddedTo)
Gets or sets the folders added to.
Definition libraryupdateinfo.cpp:109
static LibraryUpdateInfo fromJson(QJsonObject source)
Definition libraryupdateinfo.cpp:76
QStringList itemsUpdated() const
Gets or sets the items updated.
Definition libraryupdateinfo.cpp:131
QStringList collectionFolders() const
Definition libraryupdateinfo.cpp:137
void setFromJson(QJsonObject source)
Definition libraryupdateinfo.cpp:83
QStringList m_itemsUpdated
Definition libraryupdateinfo.h:135
QStringList m_itemsRemoved
Definition libraryupdateinfo.h:134
QStringList itemsAdded() const
Gets or sets the items added.
Definition libraryupdateinfo.cpp:119
void setItemsUpdated(QStringList newItemsUpdated)
Gets or sets the items updated.
Definition libraryupdateinfo.cpp:133
void replaceData(LibraryUpdateInfo &other)
Definition libraryupdateinfo.cpp:66
void setItemsRemoved(QStringList newItemsRemoved)
Gets or sets the items removed.
Definition libraryupdateinfo.cpp:127
QStringList m_foldersAddedTo
Definition libraryupdateinfo.h:131
LibraryUpdateInfo(QStringList foldersAddedTo, QStringList foldersRemovedFrom, QStringList itemsAdded, QStringList itemsRemoved, QStringList itemsUpdated, QStringList collectionFolders, bool isEmpty)
Definition libraryupdateinfo.cpp:36
QStringList foldersRemovedFrom() const
Gets or sets the folders removed from.
Definition libraryupdateinfo.cpp:113
void setItemsAdded(QStringList newItemsAdded)
Gets or sets the items added.
Definition libraryupdateinfo.cpp:121
Contains auto-generated Data Transfer Objects for the Jellyfin HTTP API.
Definition accessschedule.h:128
Jellyfin::DTO::LibraryUpdateInfo LibraryUpdateInfo
Definition libraryupdateinfo.h:149
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