1
0
Fork 0
mirror of https://github.com/HenkKalkwater/harbour-sailfin.git synced 2025-09-05 10:12:46 +00:00

Merge branch 'master' into qtquick

This commit is contained in:
Chris Josten 2021-03-19 21:28:41 +01:00
commit 96e19548d7
585 changed files with 108386 additions and 1352 deletions

View file

@ -0,0 +1,85 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/accessschedule.h>
#include <JellyfinQt/DTO/dynamicdayofweek.h>
namespace Jellyfin {
namespace DTO {
AccessSchedule::AccessSchedule(QObject *parent) : QObject(parent) {}
AccessSchedule *AccessSchedule::fromJSON(QJsonObject source, QObject *parent) {
AccessSchedule *instance = new AccessSchedule(parent);
instance->updateFromJSON(source);
return instance;
}
void AccessSchedule::updateFromJSON(QJsonObject source) {
Q_UNIMPLEMENTED();
}
QJsonObject AccessSchedule::toJSON() {
Q_UNIMPLEMENTED();
QJsonObject result;
return result;
}
qint32 AccessSchedule::jellyfinId() const { return m_jellyfinId; }
void AccessSchedule::setJellyfinId(qint32 newJellyfinId) {
m_jellyfinId = newJellyfinId;
emit jellyfinIdChanged(newJellyfinId);
}
QString AccessSchedule::userId() const { return m_userId; }
void AccessSchedule::setUserId(QString newUserId) {
m_userId = newUserId;
emit userIdChanged(newUserId);
}
DynamicDayOfWeek AccessSchedule::dayOfWeek() const { return m_dayOfWeek; }
void AccessSchedule::setDayOfWeek(DynamicDayOfWeek newDayOfWeek) {
m_dayOfWeek = newDayOfWeek;
emit dayOfWeekChanged(newDayOfWeek);
}
double AccessSchedule::startHour() const { return m_startHour; }
void AccessSchedule::setStartHour(double newStartHour) {
m_startHour = newStartHour;
emit startHourChanged(newStartHour);
}
double AccessSchedule::endHour() const { return m_endHour; }
void AccessSchedule::setEndHour(double newEndHour) {
m_endHour = newEndHour;
emit endHourChanged(newEndHour);
}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,115 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/activitylogentry.h>
#include <JellyfinQt/DTO/loglevel.h>
namespace Jellyfin {
namespace DTO {
ActivityLogEntry::ActivityLogEntry(QObject *parent) : QObject(parent) {}
ActivityLogEntry *ActivityLogEntry::fromJSON(QJsonObject source, QObject *parent) {
ActivityLogEntry *instance = new ActivityLogEntry(parent);
instance->updateFromJSON(source);
return instance;
}
void ActivityLogEntry::updateFromJSON(QJsonObject source) {
Q_UNIMPLEMENTED();
}
QJsonObject ActivityLogEntry::toJSON() {
Q_UNIMPLEMENTED();
QJsonObject result;
return result;
}
qint64 ActivityLogEntry::jellyfinId() const { return m_jellyfinId; }
void ActivityLogEntry::setJellyfinId(qint64 newJellyfinId) {
m_jellyfinId = newJellyfinId;
emit jellyfinIdChanged(newJellyfinId);
}
QString ActivityLogEntry::name() const { return m_name; }
void ActivityLogEntry::setName(QString newName) {
m_name = newName;
emit nameChanged(newName);
}
QString ActivityLogEntry::overview() const { return m_overview; }
void ActivityLogEntry::setOverview(QString newOverview) {
m_overview = newOverview;
emit overviewChanged(newOverview);
}
QString ActivityLogEntry::shortOverview() const { return m_shortOverview; }
void ActivityLogEntry::setShortOverview(QString newShortOverview) {
m_shortOverview = newShortOverview;
emit shortOverviewChanged(newShortOverview);
}
QString ActivityLogEntry::type() const { return m_type; }
void ActivityLogEntry::setType(QString newType) {
m_type = newType;
emit typeChanged(newType);
}
QString ActivityLogEntry::itemId() const { return m_itemId; }
void ActivityLogEntry::setItemId(QString newItemId) {
m_itemId = newItemId;
emit itemIdChanged(newItemId);
}
QDateTime ActivityLogEntry::date() const { return m_date; }
void ActivityLogEntry::setDate(QDateTime newDate) {
m_date = newDate;
emit dateChanged(newDate);
}
QString ActivityLogEntry::userId() const { return m_userId; }
void ActivityLogEntry::setUserId(QString newUserId) {
m_userId = newUserId;
emit userIdChanged(newUserId);
}
QString ActivityLogEntry::userPrimaryImageTag() const { return m_userPrimaryImageTag; }
void ActivityLogEntry::setUserPrimaryImageTag(QString newUserPrimaryImageTag) {
m_userPrimaryImageTag = newUserPrimaryImageTag;
emit userPrimaryImageTagChanged(newUserPrimaryImageTag);
}
LogLevel ActivityLogEntry::severity() const { return m_severity; }
void ActivityLogEntry::setSeverity(LogLevel newSeverity) {
m_severity = newSeverity;
emit severityChanged(newSeverity);
}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,71 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/activitylogentryqueryresult.h>
namespace Jellyfin {
namespace DTO {
ActivityLogEntryQueryResult::ActivityLogEntryQueryResult(QObject *parent) : QObject(parent) {}
ActivityLogEntryQueryResult *ActivityLogEntryQueryResult::fromJSON(QJsonObject source, QObject *parent) {
ActivityLogEntryQueryResult *instance = new ActivityLogEntryQueryResult(parent);
instance->updateFromJSON(source);
return instance;
}
void ActivityLogEntryQueryResult::updateFromJSON(QJsonObject source) {
Q_UNIMPLEMENTED();
}
QJsonObject ActivityLogEntryQueryResult::toJSON() {
Q_UNIMPLEMENTED();
QJsonObject result;
return result;
}
QList<ActivityLogEntry *> ActivityLogEntryQueryResult::items() const { return m_items; }
void ActivityLogEntryQueryResult::setItems(QList<ActivityLogEntry *> newItems) {
m_items = newItems;
emit itemsChanged(newItems);
}
qint32 ActivityLogEntryQueryResult::totalRecordCount() const { return m_totalRecordCount; }
void ActivityLogEntryQueryResult::setTotalRecordCount(qint32 newTotalRecordCount) {
m_totalRecordCount = newTotalRecordCount;
emit totalRecordCountChanged(newTotalRecordCount);
}
qint32 ActivityLogEntryQueryResult::startIndex() const { return m_startIndex; }
void ActivityLogEntryQueryResult::setStartIndex(qint32 newStartIndex) {
m_startIndex = newStartIndex;
emit startIndexChanged(newStartIndex);
}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,59 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/addvirtualfolderdto.h>
namespace Jellyfin {
namespace DTO {
AddVirtualFolderDto::AddVirtualFolderDto(QObject *parent) : QObject(parent) {}
AddVirtualFolderDto *AddVirtualFolderDto::fromJSON(QJsonObject source, QObject *parent) {
AddVirtualFolderDto *instance = new AddVirtualFolderDto(parent);
instance->updateFromJSON(source);
return instance;
}
void AddVirtualFolderDto::updateFromJSON(QJsonObject source) {
Q_UNIMPLEMENTED();
}
QJsonObject AddVirtualFolderDto::toJSON() {
Q_UNIMPLEMENTED();
QJsonObject result;
return result;
}
LibraryOptions * AddVirtualFolderDto::libraryOptions() const { return m_libraryOptions; }
void AddVirtualFolderDto::setLibraryOptions(LibraryOptions * newLibraryOptions) {
m_libraryOptions = newLibraryOptions;
emit libraryOptionsChanged(newLibraryOptions);
}
} // NS Jellyfin
} // NS DTO

131
core/src/DTO/albuminfo.cpp Normal file
View file

@ -0,0 +1,131 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/albuminfo.h>
namespace Jellyfin {
namespace DTO {
AlbumInfo::AlbumInfo(QObject *parent) : QObject(parent) {}
AlbumInfo *AlbumInfo::fromJSON(QJsonObject source, QObject *parent) {
AlbumInfo *instance = new AlbumInfo(parent);
instance->updateFromJSON(source);
return instance;
}
void AlbumInfo::updateFromJSON(QJsonObject source) {
Q_UNIMPLEMENTED();
}
QJsonObject AlbumInfo::toJSON() {
Q_UNIMPLEMENTED();
QJsonObject result;
return result;
}
QString AlbumInfo::name() const { return m_name; }
void AlbumInfo::setName(QString newName) {
m_name = newName;
emit nameChanged(newName);
}
QString AlbumInfo::path() const { return m_path; }
void AlbumInfo::setPath(QString newPath) {
m_path = newPath;
emit pathChanged(newPath);
}
QString AlbumInfo::metadataLanguage() const { return m_metadataLanguage; }
void AlbumInfo::setMetadataLanguage(QString newMetadataLanguage) {
m_metadataLanguage = newMetadataLanguage;
emit metadataLanguageChanged(newMetadataLanguage);
}
QString AlbumInfo::metadataCountryCode() const { return m_metadataCountryCode; }
void AlbumInfo::setMetadataCountryCode(QString newMetadataCountryCode) {
m_metadataCountryCode = newMetadataCountryCode;
emit metadataCountryCodeChanged(newMetadataCountryCode);
}
QJsonObject AlbumInfo::providerIds() const { return m_providerIds; }
void AlbumInfo::setProviderIds(QJsonObject newProviderIds) {
m_providerIds = newProviderIds;
emit providerIdsChanged(newProviderIds);
}
qint32 AlbumInfo::year() const { return m_year; }
void AlbumInfo::setYear(qint32 newYear) {
m_year = newYear;
emit yearChanged(newYear);
}
qint32 AlbumInfo::indexNumber() const { return m_indexNumber; }
void AlbumInfo::setIndexNumber(qint32 newIndexNumber) {
m_indexNumber = newIndexNumber;
emit indexNumberChanged(newIndexNumber);
}
qint32 AlbumInfo::parentIndexNumber() const { return m_parentIndexNumber; }
void AlbumInfo::setParentIndexNumber(qint32 newParentIndexNumber) {
m_parentIndexNumber = newParentIndexNumber;
emit parentIndexNumberChanged(newParentIndexNumber);
}
QDateTime AlbumInfo::premiereDate() const { return m_premiereDate; }
void AlbumInfo::setPremiereDate(QDateTime newPremiereDate) {
m_premiereDate = newPremiereDate;
emit premiereDateChanged(newPremiereDate);
}
bool AlbumInfo::isAutomated() const { return m_isAutomated; }
void AlbumInfo::setIsAutomated(bool newIsAutomated) {
m_isAutomated = newIsAutomated;
emit isAutomatedChanged(newIsAutomated);
}
QStringList AlbumInfo::albumArtists() const { return m_albumArtists; }
void AlbumInfo::setAlbumArtists(QStringList newAlbumArtists) {
m_albumArtists = newAlbumArtists;
emit albumArtistsChanged(newAlbumArtists);
}
QJsonObject AlbumInfo::artistProviderIds() const { return m_artistProviderIds; }
void AlbumInfo::setArtistProviderIds(QJsonObject newArtistProviderIds) {
m_artistProviderIds = newArtistProviderIds;
emit artistProviderIdsChanged(newArtistProviderIds);
}
QList<SongInfo *> AlbumInfo::songInfos() const { return m_songInfos; }
void AlbumInfo::setSongInfos(QList<SongInfo *> newSongInfos) {
m_songInfos = newSongInfos;
emit songInfosChanged(newSongInfos);
}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,77 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/albuminforemotesearchquery.h>
namespace Jellyfin {
namespace DTO {
AlbumInfoRemoteSearchQuery::AlbumInfoRemoteSearchQuery(QObject *parent) : QObject(parent) {}
AlbumInfoRemoteSearchQuery *AlbumInfoRemoteSearchQuery::fromJSON(QJsonObject source, QObject *parent) {
AlbumInfoRemoteSearchQuery *instance = new AlbumInfoRemoteSearchQuery(parent);
instance->updateFromJSON(source);
return instance;
}
void AlbumInfoRemoteSearchQuery::updateFromJSON(QJsonObject source) {
Q_UNIMPLEMENTED();
}
QJsonObject AlbumInfoRemoteSearchQuery::toJSON() {
Q_UNIMPLEMENTED();
QJsonObject result;
return result;
}
AlbumInfo * AlbumInfoRemoteSearchQuery::searchInfo() const { return m_searchInfo; }
void AlbumInfoRemoteSearchQuery::setSearchInfo(AlbumInfo * newSearchInfo) {
m_searchInfo = newSearchInfo;
emit searchInfoChanged(newSearchInfo);
}
QString AlbumInfoRemoteSearchQuery::itemId() const { return m_itemId; }
void AlbumInfoRemoteSearchQuery::setItemId(QString newItemId) {
m_itemId = newItemId;
emit itemIdChanged(newItemId);
}
QString AlbumInfoRemoteSearchQuery::searchProviderName() const { return m_searchProviderName; }
void AlbumInfoRemoteSearchQuery::setSearchProviderName(QString newSearchProviderName) {
m_searchProviderName = newSearchProviderName;
emit searchProviderNameChanged(newSearchProviderName);
}
bool AlbumInfoRemoteSearchQuery::includeDisabledProviders() const { return m_includeDisabledProviders; }
void AlbumInfoRemoteSearchQuery::setIncludeDisabledProviders(bool newIncludeDisabledProviders) {
m_includeDisabledProviders = newIncludeDisabledProviders;
emit includeDisabledProvidersChanged(newIncludeDisabledProviders);
}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,71 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/allthememediaresult.h>
namespace Jellyfin {
namespace DTO {
AllThemeMediaResult::AllThemeMediaResult(QObject *parent) : QObject(parent) {}
AllThemeMediaResult *AllThemeMediaResult::fromJSON(QJsonObject source, QObject *parent) {
AllThemeMediaResult *instance = new AllThemeMediaResult(parent);
instance->updateFromJSON(source);
return instance;
}
void AllThemeMediaResult::updateFromJSON(QJsonObject source) {
Q_UNIMPLEMENTED();
}
QJsonObject AllThemeMediaResult::toJSON() {
Q_UNIMPLEMENTED();
QJsonObject result;
return result;
}
ThemeMediaResult * AllThemeMediaResult::themeVideosResult() const { return m_themeVideosResult; }
void AllThemeMediaResult::setThemeVideosResult(ThemeMediaResult * newThemeVideosResult) {
m_themeVideosResult = newThemeVideosResult;
emit themeVideosResultChanged(newThemeVideosResult);
}
ThemeMediaResult * AllThemeMediaResult::themeSongsResult() const { return m_themeSongsResult; }
void AllThemeMediaResult::setThemeSongsResult(ThemeMediaResult * newThemeSongsResult) {
m_themeSongsResult = newThemeSongsResult;
emit themeSongsResultChanged(newThemeSongsResult);
}
ThemeMediaResult * AllThemeMediaResult::soundtrackSongsResult() const { return m_soundtrackSongsResult; }
void AllThemeMediaResult::setSoundtrackSongsResult(ThemeMediaResult * newSoundtrackSongsResult) {
m_soundtrackSongsResult = newSoundtrackSongsResult;
emit soundtrackSongsResultChanged(newSoundtrackSongsResult);
}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,38 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/architecture.h>
namespace Jellyfin {
namespace DTO {
ArchitectureClass::ArchitectureClass() {}
} // NS Jellyfin
} // NS DTO

119
core/src/DTO/artistinfo.cpp Normal file
View file

@ -0,0 +1,119 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/artistinfo.h>
namespace Jellyfin {
namespace DTO {
ArtistInfo::ArtistInfo(QObject *parent) : QObject(parent) {}
ArtistInfo *ArtistInfo::fromJSON(QJsonObject source, QObject *parent) {
ArtistInfo *instance = new ArtistInfo(parent);
instance->updateFromJSON(source);
return instance;
}
void ArtistInfo::updateFromJSON(QJsonObject source) {
Q_UNIMPLEMENTED();
}
QJsonObject ArtistInfo::toJSON() {
Q_UNIMPLEMENTED();
QJsonObject result;
return result;
}
QString ArtistInfo::name() const { return m_name; }
void ArtistInfo::setName(QString newName) {
m_name = newName;
emit nameChanged(newName);
}
QString ArtistInfo::path() const { return m_path; }
void ArtistInfo::setPath(QString newPath) {
m_path = newPath;
emit pathChanged(newPath);
}
QString ArtistInfo::metadataLanguage() const { return m_metadataLanguage; }
void ArtistInfo::setMetadataLanguage(QString newMetadataLanguage) {
m_metadataLanguage = newMetadataLanguage;
emit metadataLanguageChanged(newMetadataLanguage);
}
QString ArtistInfo::metadataCountryCode() const { return m_metadataCountryCode; }
void ArtistInfo::setMetadataCountryCode(QString newMetadataCountryCode) {
m_metadataCountryCode = newMetadataCountryCode;
emit metadataCountryCodeChanged(newMetadataCountryCode);
}
QJsonObject ArtistInfo::providerIds() const { return m_providerIds; }
void ArtistInfo::setProviderIds(QJsonObject newProviderIds) {
m_providerIds = newProviderIds;
emit providerIdsChanged(newProviderIds);
}
qint32 ArtistInfo::year() const { return m_year; }
void ArtistInfo::setYear(qint32 newYear) {
m_year = newYear;
emit yearChanged(newYear);
}
qint32 ArtistInfo::indexNumber() const { return m_indexNumber; }
void ArtistInfo::setIndexNumber(qint32 newIndexNumber) {
m_indexNumber = newIndexNumber;
emit indexNumberChanged(newIndexNumber);
}
qint32 ArtistInfo::parentIndexNumber() const { return m_parentIndexNumber; }
void ArtistInfo::setParentIndexNumber(qint32 newParentIndexNumber) {
m_parentIndexNumber = newParentIndexNumber;
emit parentIndexNumberChanged(newParentIndexNumber);
}
QDateTime ArtistInfo::premiereDate() const { return m_premiereDate; }
void ArtistInfo::setPremiereDate(QDateTime newPremiereDate) {
m_premiereDate = newPremiereDate;
emit premiereDateChanged(newPremiereDate);
}
bool ArtistInfo::isAutomated() const { return m_isAutomated; }
void ArtistInfo::setIsAutomated(bool newIsAutomated) {
m_isAutomated = newIsAutomated;
emit isAutomatedChanged(newIsAutomated);
}
QList<SongInfo *> ArtistInfo::songInfos() const { return m_songInfos; }
void ArtistInfo::setSongInfos(QList<SongInfo *> newSongInfos) {
m_songInfos = newSongInfos;
emit songInfosChanged(newSongInfos);
}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,77 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/artistinforemotesearchquery.h>
namespace Jellyfin {
namespace DTO {
ArtistInfoRemoteSearchQuery::ArtistInfoRemoteSearchQuery(QObject *parent) : QObject(parent) {}
ArtistInfoRemoteSearchQuery *ArtistInfoRemoteSearchQuery::fromJSON(QJsonObject source, QObject *parent) {
ArtistInfoRemoteSearchQuery *instance = new ArtistInfoRemoteSearchQuery(parent);
instance->updateFromJSON(source);
return instance;
}
void ArtistInfoRemoteSearchQuery::updateFromJSON(QJsonObject source) {
Q_UNIMPLEMENTED();
}
QJsonObject ArtistInfoRemoteSearchQuery::toJSON() {
Q_UNIMPLEMENTED();
QJsonObject result;
return result;
}
ArtistInfo * ArtistInfoRemoteSearchQuery::searchInfo() const { return m_searchInfo; }
void ArtistInfoRemoteSearchQuery::setSearchInfo(ArtistInfo * newSearchInfo) {
m_searchInfo = newSearchInfo;
emit searchInfoChanged(newSearchInfo);
}
QString ArtistInfoRemoteSearchQuery::itemId() const { return m_itemId; }
void ArtistInfoRemoteSearchQuery::setItemId(QString newItemId) {
m_itemId = newItemId;
emit itemIdChanged(newItemId);
}
QString ArtistInfoRemoteSearchQuery::searchProviderName() const { return m_searchProviderName; }
void ArtistInfoRemoteSearchQuery::setSearchProviderName(QString newSearchProviderName) {
m_searchProviderName = newSearchProviderName;
emit searchProviderNameChanged(newSearchProviderName);
}
bool ArtistInfoRemoteSearchQuery::includeDisabledProviders() const { return m_includeDisabledProviders; }
void ArtistInfoRemoteSearchQuery::setIncludeDisabledProviders(bool newIncludeDisabledProviders) {
m_includeDisabledProviders = newIncludeDisabledProviders;
emit includeDisabledProvidersChanged(newIncludeDisabledProviders);
}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,71 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/authenticateuserbyname.h>
namespace Jellyfin {
namespace DTO {
AuthenticateUserByName::AuthenticateUserByName(QObject *parent) : QObject(parent) {}
AuthenticateUserByName *AuthenticateUserByName::fromJSON(QJsonObject source, QObject *parent) {
AuthenticateUserByName *instance = new AuthenticateUserByName(parent);
instance->updateFromJSON(source);
return instance;
}
void AuthenticateUserByName::updateFromJSON(QJsonObject source) {
Q_UNIMPLEMENTED();
}
QJsonObject AuthenticateUserByName::toJSON() {
Q_UNIMPLEMENTED();
QJsonObject result;
return result;
}
QString AuthenticateUserByName::username() const { return m_username; }
void AuthenticateUserByName::setUsername(QString newUsername) {
m_username = newUsername;
emit usernameChanged(newUsername);
}
QString AuthenticateUserByName::pw() const { return m_pw; }
void AuthenticateUserByName::setPw(QString newPw) {
m_pw = newPw;
emit pwChanged(newPw);
}
QString AuthenticateUserByName::password() const { return m_password; }
void AuthenticateUserByName::setPassword(QString newPassword) {
m_password = newPassword;
emit passwordChanged(newPassword);
}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,125 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/authenticationinfo.h>
namespace Jellyfin {
namespace DTO {
AuthenticationInfo::AuthenticationInfo(QObject *parent) : QObject(parent) {}
AuthenticationInfo *AuthenticationInfo::fromJSON(QJsonObject source, QObject *parent) {
AuthenticationInfo *instance = new AuthenticationInfo(parent);
instance->updateFromJSON(source);
return instance;
}
void AuthenticationInfo::updateFromJSON(QJsonObject source) {
Q_UNIMPLEMENTED();
}
QJsonObject AuthenticationInfo::toJSON() {
Q_UNIMPLEMENTED();
QJsonObject result;
return result;
}
qint64 AuthenticationInfo::jellyfinId() const { return m_jellyfinId; }
void AuthenticationInfo::setJellyfinId(qint64 newJellyfinId) {
m_jellyfinId = newJellyfinId;
emit jellyfinIdChanged(newJellyfinId);
}
QString AuthenticationInfo::accessToken() const { return m_accessToken; }
void AuthenticationInfo::setAccessToken(QString newAccessToken) {
m_accessToken = newAccessToken;
emit accessTokenChanged(newAccessToken);
}
QString AuthenticationInfo::deviceId() const { return m_deviceId; }
void AuthenticationInfo::setDeviceId(QString newDeviceId) {
m_deviceId = newDeviceId;
emit deviceIdChanged(newDeviceId);
}
QString AuthenticationInfo::appName() const { return m_appName; }
void AuthenticationInfo::setAppName(QString newAppName) {
m_appName = newAppName;
emit appNameChanged(newAppName);
}
QString AuthenticationInfo::appVersion() const { return m_appVersion; }
void AuthenticationInfo::setAppVersion(QString newAppVersion) {
m_appVersion = newAppVersion;
emit appVersionChanged(newAppVersion);
}
QString AuthenticationInfo::deviceName() const { return m_deviceName; }
void AuthenticationInfo::setDeviceName(QString newDeviceName) {
m_deviceName = newDeviceName;
emit deviceNameChanged(newDeviceName);
}
QString AuthenticationInfo::userId() const { return m_userId; }
void AuthenticationInfo::setUserId(QString newUserId) {
m_userId = newUserId;
emit userIdChanged(newUserId);
}
bool AuthenticationInfo::isActive() const { return m_isActive; }
void AuthenticationInfo::setIsActive(bool newIsActive) {
m_isActive = newIsActive;
emit isActiveChanged(newIsActive);
}
QDateTime AuthenticationInfo::dateCreated() const { return m_dateCreated; }
void AuthenticationInfo::setDateCreated(QDateTime newDateCreated) {
m_dateCreated = newDateCreated;
emit dateCreatedChanged(newDateCreated);
}
QDateTime AuthenticationInfo::dateRevoked() const { return m_dateRevoked; }
void AuthenticationInfo::setDateRevoked(QDateTime newDateRevoked) {
m_dateRevoked = newDateRevoked;
emit dateRevokedChanged(newDateRevoked);
}
QDateTime AuthenticationInfo::dateLastActivity() const { return m_dateLastActivity; }
void AuthenticationInfo::setDateLastActivity(QDateTime newDateLastActivity) {
m_dateLastActivity = newDateLastActivity;
emit dateLastActivityChanged(newDateLastActivity);
}
QString AuthenticationInfo::userName() const { return m_userName; }
void AuthenticationInfo::setUserName(QString newUserName) {
m_userName = newUserName;
emit userNameChanged(newUserName);
}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,71 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/authenticationinfoqueryresult.h>
namespace Jellyfin {
namespace DTO {
AuthenticationInfoQueryResult::AuthenticationInfoQueryResult(QObject *parent) : QObject(parent) {}
AuthenticationInfoQueryResult *AuthenticationInfoQueryResult::fromJSON(QJsonObject source, QObject *parent) {
AuthenticationInfoQueryResult *instance = new AuthenticationInfoQueryResult(parent);
instance->updateFromJSON(source);
return instance;
}
void AuthenticationInfoQueryResult::updateFromJSON(QJsonObject source) {
Q_UNIMPLEMENTED();
}
QJsonObject AuthenticationInfoQueryResult::toJSON() {
Q_UNIMPLEMENTED();
QJsonObject result;
return result;
}
QList<AuthenticationInfo *> AuthenticationInfoQueryResult::items() const { return m_items; }
void AuthenticationInfoQueryResult::setItems(QList<AuthenticationInfo *> newItems) {
m_items = newItems;
emit itemsChanged(newItems);
}
qint32 AuthenticationInfoQueryResult::totalRecordCount() const { return m_totalRecordCount; }
void AuthenticationInfoQueryResult::setTotalRecordCount(qint32 newTotalRecordCount) {
m_totalRecordCount = newTotalRecordCount;
emit totalRecordCountChanged(newTotalRecordCount);
}
qint32 AuthenticationInfoQueryResult::startIndex() const { return m_startIndex; }
void AuthenticationInfoQueryResult::setStartIndex(qint32 newStartIndex) {
m_startIndex = newStartIndex;
emit startIndexChanged(newStartIndex);
}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,77 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/authenticationresult.h>
namespace Jellyfin {
namespace DTO {
AuthenticationResult::AuthenticationResult(QObject *parent) : QObject(parent) {}
AuthenticationResult *AuthenticationResult::fromJSON(QJsonObject source, QObject *parent) {
AuthenticationResult *instance = new AuthenticationResult(parent);
instance->updateFromJSON(source);
return instance;
}
void AuthenticationResult::updateFromJSON(QJsonObject source) {
Q_UNIMPLEMENTED();
}
QJsonObject AuthenticationResult::toJSON() {
Q_UNIMPLEMENTED();
QJsonObject result;
return result;
}
UserDto * AuthenticationResult::user() const { return m_user; }
void AuthenticationResult::setUser(UserDto * newUser) {
m_user = newUser;
emit userChanged(newUser);
}
SessionInfo * AuthenticationResult::sessionInfo() const { return m_sessionInfo; }
void AuthenticationResult::setSessionInfo(SessionInfo * newSessionInfo) {
m_sessionInfo = newSessionInfo;
emit sessionInfoChanged(newSessionInfo);
}
QString AuthenticationResult::accessToken() const { return m_accessToken; }
void AuthenticationResult::setAccessToken(QString newAccessToken) {
m_accessToken = newAccessToken;
emit accessTokenChanged(newAccessToken);
}
QString AuthenticationResult::serverId() const { return m_serverId; }
void AuthenticationResult::setServerId(QString newServerId) {
m_serverId = newServerId;
emit serverIdChanged(newServerId);
}
} // NS Jellyfin
} // NS DTO

119
core/src/DTO/baseitem.cpp Normal file
View file

@ -0,0 +1,119 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/baseitem.h>
namespace Jellyfin {
namespace DTO {
BaseItem::BaseItem(QObject *parent) : QObject(parent) {}
BaseItem *BaseItem::fromJSON(QJsonObject source, QObject *parent) {
BaseItem *instance = new BaseItem(parent);
instance->updateFromJSON(source);
return instance;
}
void BaseItem::updateFromJSON(QJsonObject source) {
Q_UNIMPLEMENTED();
}
QJsonObject BaseItem::toJSON() {
Q_UNIMPLEMENTED();
QJsonObject result;
return result;
}
qint64 BaseItem::size() const { return m_size; }
void BaseItem::setSize(qint64 newSize) {
m_size = newSize;
emit sizeChanged(newSize);
}
QString BaseItem::container() const { return m_container; }
void BaseItem::setContainer(QString newContainer) {
m_container = newContainer;
emit containerChanged(newContainer);
}
QDateTime BaseItem::dateLastSaved() const { return m_dateLastSaved; }
void BaseItem::setDateLastSaved(QDateTime newDateLastSaved) {
m_dateLastSaved = newDateLastSaved;
emit dateLastSavedChanged(newDateLastSaved);
}
QList<MediaUrl *> BaseItem::remoteTrailers() const { return m_remoteTrailers; }
void BaseItem::setRemoteTrailers(QList<MediaUrl *> newRemoteTrailers) {
m_remoteTrailers = newRemoteTrailers;
emit remoteTrailersChanged(newRemoteTrailers);
}
bool BaseItem::isHD() const { return m_isHD; }
void BaseItem::setIsHD(bool newIsHD) {
m_isHD = newIsHD;
emit isHDChanged(newIsHD);
}
bool BaseItem::isShortcut() const { return m_isShortcut; }
void BaseItem::setIsShortcut(bool newIsShortcut) {
m_isShortcut = newIsShortcut;
emit isShortcutChanged(newIsShortcut);
}
QString BaseItem::shortcutPath() const { return m_shortcutPath; }
void BaseItem::setShortcutPath(QString newShortcutPath) {
m_shortcutPath = newShortcutPath;
emit shortcutPathChanged(newShortcutPath);
}
qint32 BaseItem::width() const { return m_width; }
void BaseItem::setWidth(qint32 newWidth) {
m_width = newWidth;
emit widthChanged(newWidth);
}
qint32 BaseItem::height() const { return m_height; }
void BaseItem::setHeight(qint32 newHeight) {
m_height = newHeight;
emit heightChanged(newHeight);
}
QStringList BaseItem::extraIds() const { return m_extraIds; }
void BaseItem::setExtraIds(QStringList newExtraIds) {
m_extraIds = newExtraIds;
emit extraIdsChanged(newExtraIds);
}
bool BaseItem::supportsExternalTransfer() const { return m_supportsExternalTransfer; }
void BaseItem::setSupportsExternalTransfer(bool newSupportsExternalTransfer) {
m_supportsExternalTransfer = newSupportsExternalTransfer;
emit supportsExternalTransferChanged(newSupportsExternalTransfer);
}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,970 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/baseitemdto.h>
#include <JellyfinQt/DTO/channeltype.h>
#include <JellyfinQt/DTO/dayofweek.h>
#include <JellyfinQt/DTO/imageorientation.h>
#include <JellyfinQt/DTO/isotype.h>
#include <JellyfinQt/DTO/locationtype.h>
#include <JellyfinQt/DTO/metadatafield.h>
#include <JellyfinQt/DTO/playaccess.h>
#include <JellyfinQt/DTO/programaudio.h>
#include <JellyfinQt/DTO/video3dformat.h>
#include <JellyfinQt/DTO/videotype.h>
namespace Jellyfin {
namespace DTO {
BaseItemDto::BaseItemDto(QObject *parent) : QObject(parent) {}
BaseItemDto *BaseItemDto::fromJSON(QJsonObject source, QObject *parent) {
BaseItemDto *instance = new BaseItemDto(parent);
instance->updateFromJSON(source);
return instance;
}
void BaseItemDto::updateFromJSON(QJsonObject source) {
Q_UNIMPLEMENTED();
}
QJsonObject BaseItemDto::toJSON() {
Q_UNIMPLEMENTED();
QJsonObject result;
return result;
}
QString BaseItemDto::name() const { return m_name; }
void BaseItemDto::setName(QString newName) {
m_name = newName;
emit nameChanged(newName);
}
QString BaseItemDto::originalTitle() const { return m_originalTitle; }
void BaseItemDto::setOriginalTitle(QString newOriginalTitle) {
m_originalTitle = newOriginalTitle;
emit originalTitleChanged(newOriginalTitle);
}
QString BaseItemDto::serverId() const { return m_serverId; }
void BaseItemDto::setServerId(QString newServerId) {
m_serverId = newServerId;
emit serverIdChanged(newServerId);
}
QString BaseItemDto::jellyfinId() const { return m_jellyfinId; }
void BaseItemDto::setJellyfinId(QString newJellyfinId) {
m_jellyfinId = newJellyfinId;
emit jellyfinIdChanged(newJellyfinId);
}
QString BaseItemDto::etag() const { return m_etag; }
void BaseItemDto::setEtag(QString newEtag) {
m_etag = newEtag;
emit etagChanged(newEtag);
}
QString BaseItemDto::sourceType() const { return m_sourceType; }
void BaseItemDto::setSourceType(QString newSourceType) {
m_sourceType = newSourceType;
emit sourceTypeChanged(newSourceType);
}
QString BaseItemDto::playlistItemId() const { return m_playlistItemId; }
void BaseItemDto::setPlaylistItemId(QString newPlaylistItemId) {
m_playlistItemId = newPlaylistItemId;
emit playlistItemIdChanged(newPlaylistItemId);
}
QDateTime BaseItemDto::dateCreated() const { return m_dateCreated; }
void BaseItemDto::setDateCreated(QDateTime newDateCreated) {
m_dateCreated = newDateCreated;
emit dateCreatedChanged(newDateCreated);
}
QDateTime BaseItemDto::dateLastMediaAdded() const { return m_dateLastMediaAdded; }
void BaseItemDto::setDateLastMediaAdded(QDateTime newDateLastMediaAdded) {
m_dateLastMediaAdded = newDateLastMediaAdded;
emit dateLastMediaAddedChanged(newDateLastMediaAdded);
}
QString BaseItemDto::extraType() const { return m_extraType; }
void BaseItemDto::setExtraType(QString newExtraType) {
m_extraType = newExtraType;
emit extraTypeChanged(newExtraType);
}
qint32 BaseItemDto::airsBeforeSeasonNumber() const { return m_airsBeforeSeasonNumber; }
void BaseItemDto::setAirsBeforeSeasonNumber(qint32 newAirsBeforeSeasonNumber) {
m_airsBeforeSeasonNumber = newAirsBeforeSeasonNumber;
emit airsBeforeSeasonNumberChanged(newAirsBeforeSeasonNumber);
}
qint32 BaseItemDto::airsAfterSeasonNumber() const { return m_airsAfterSeasonNumber; }
void BaseItemDto::setAirsAfterSeasonNumber(qint32 newAirsAfterSeasonNumber) {
m_airsAfterSeasonNumber = newAirsAfterSeasonNumber;
emit airsAfterSeasonNumberChanged(newAirsAfterSeasonNumber);
}
qint32 BaseItemDto::airsBeforeEpisodeNumber() const { return m_airsBeforeEpisodeNumber; }
void BaseItemDto::setAirsBeforeEpisodeNumber(qint32 newAirsBeforeEpisodeNumber) {
m_airsBeforeEpisodeNumber = newAirsBeforeEpisodeNumber;
emit airsBeforeEpisodeNumberChanged(newAirsBeforeEpisodeNumber);
}
bool BaseItemDto::canDelete() const { return m_canDelete; }
void BaseItemDto::setCanDelete(bool newCanDelete) {
m_canDelete = newCanDelete;
emit canDeleteChanged(newCanDelete);
}
bool BaseItemDto::canDownload() const { return m_canDownload; }
void BaseItemDto::setCanDownload(bool newCanDownload) {
m_canDownload = newCanDownload;
emit canDownloadChanged(newCanDownload);
}
bool BaseItemDto::hasSubtitles() const { return m_hasSubtitles; }
void BaseItemDto::setHasSubtitles(bool newHasSubtitles) {
m_hasSubtitles = newHasSubtitles;
emit hasSubtitlesChanged(newHasSubtitles);
}
QString BaseItemDto::preferredMetadataLanguage() const { return m_preferredMetadataLanguage; }
void BaseItemDto::setPreferredMetadataLanguage(QString newPreferredMetadataLanguage) {
m_preferredMetadataLanguage = newPreferredMetadataLanguage;
emit preferredMetadataLanguageChanged(newPreferredMetadataLanguage);
}
QString BaseItemDto::preferredMetadataCountryCode() const { return m_preferredMetadataCountryCode; }
void BaseItemDto::setPreferredMetadataCountryCode(QString newPreferredMetadataCountryCode) {
m_preferredMetadataCountryCode = newPreferredMetadataCountryCode;
emit preferredMetadataCountryCodeChanged(newPreferredMetadataCountryCode);
}
bool BaseItemDto::supportsSync() const { return m_supportsSync; }
void BaseItemDto::setSupportsSync(bool newSupportsSync) {
m_supportsSync = newSupportsSync;
emit supportsSyncChanged(newSupportsSync);
}
QString BaseItemDto::container() const { return m_container; }
void BaseItemDto::setContainer(QString newContainer) {
m_container = newContainer;
emit containerChanged(newContainer);
}
QString BaseItemDto::sortName() const { return m_sortName; }
void BaseItemDto::setSortName(QString newSortName) {
m_sortName = newSortName;
emit sortNameChanged(newSortName);
}
QString BaseItemDto::forcedSortName() const { return m_forcedSortName; }
void BaseItemDto::setForcedSortName(QString newForcedSortName) {
m_forcedSortName = newForcedSortName;
emit forcedSortNameChanged(newForcedSortName);
}
Video3DFormat BaseItemDto::video3DFormat() const { return m_video3DFormat; }
void BaseItemDto::setVideo3DFormat(Video3DFormat newVideo3DFormat) {
m_video3DFormat = newVideo3DFormat;
emit video3DFormatChanged(newVideo3DFormat);
}
QDateTime BaseItemDto::premiereDate() const { return m_premiereDate; }
void BaseItemDto::setPremiereDate(QDateTime newPremiereDate) {
m_premiereDate = newPremiereDate;
emit premiereDateChanged(newPremiereDate);
}
QList<ExternalUrl *> BaseItemDto::externalUrls() const { return m_externalUrls; }
void BaseItemDto::setExternalUrls(QList<ExternalUrl *> newExternalUrls) {
m_externalUrls = newExternalUrls;
emit externalUrlsChanged(newExternalUrls);
}
QList<MediaSourceInfo *> BaseItemDto::mediaSources() const { return m_mediaSources; }
void BaseItemDto::setMediaSources(QList<MediaSourceInfo *> newMediaSources) {
m_mediaSources = newMediaSources;
emit mediaSourcesChanged(newMediaSources);
}
float BaseItemDto::criticRating() const { return m_criticRating; }
void BaseItemDto::setCriticRating(float newCriticRating) {
m_criticRating = newCriticRating;
emit criticRatingChanged(newCriticRating);
}
QStringList BaseItemDto::productionLocations() const { return m_productionLocations; }
void BaseItemDto::setProductionLocations(QStringList newProductionLocations) {
m_productionLocations = newProductionLocations;
emit productionLocationsChanged(newProductionLocations);
}
QString BaseItemDto::path() const { return m_path; }
void BaseItemDto::setPath(QString newPath) {
m_path = newPath;
emit pathChanged(newPath);
}
bool BaseItemDto::enableMediaSourceDisplay() const { return m_enableMediaSourceDisplay; }
void BaseItemDto::setEnableMediaSourceDisplay(bool newEnableMediaSourceDisplay) {
m_enableMediaSourceDisplay = newEnableMediaSourceDisplay;
emit enableMediaSourceDisplayChanged(newEnableMediaSourceDisplay);
}
QString BaseItemDto::officialRating() const { return m_officialRating; }
void BaseItemDto::setOfficialRating(QString newOfficialRating) {
m_officialRating = newOfficialRating;
emit officialRatingChanged(newOfficialRating);
}
QString BaseItemDto::customRating() const { return m_customRating; }
void BaseItemDto::setCustomRating(QString newCustomRating) {
m_customRating = newCustomRating;
emit customRatingChanged(newCustomRating);
}
QString BaseItemDto::channelId() const { return m_channelId; }
void BaseItemDto::setChannelId(QString newChannelId) {
m_channelId = newChannelId;
emit channelIdChanged(newChannelId);
}
QString BaseItemDto::channelName() const { return m_channelName; }
void BaseItemDto::setChannelName(QString newChannelName) {
m_channelName = newChannelName;
emit channelNameChanged(newChannelName);
}
QString BaseItemDto::overview() const { return m_overview; }
void BaseItemDto::setOverview(QString newOverview) {
m_overview = newOverview;
emit overviewChanged(newOverview);
}
QStringList BaseItemDto::taglines() const { return m_taglines; }
void BaseItemDto::setTaglines(QStringList newTaglines) {
m_taglines = newTaglines;
emit taglinesChanged(newTaglines);
}
QStringList BaseItemDto::genres() const { return m_genres; }
void BaseItemDto::setGenres(QStringList newGenres) {
m_genres = newGenres;
emit genresChanged(newGenres);
}
float BaseItemDto::communityRating() const { return m_communityRating; }
void BaseItemDto::setCommunityRating(float newCommunityRating) {
m_communityRating = newCommunityRating;
emit communityRatingChanged(newCommunityRating);
}
qint64 BaseItemDto::cumulativeRunTimeTicks() const { return m_cumulativeRunTimeTicks; }
void BaseItemDto::setCumulativeRunTimeTicks(qint64 newCumulativeRunTimeTicks) {
m_cumulativeRunTimeTicks = newCumulativeRunTimeTicks;
emit cumulativeRunTimeTicksChanged(newCumulativeRunTimeTicks);
}
qint64 BaseItemDto::runTimeTicks() const { return m_runTimeTicks; }
void BaseItemDto::setRunTimeTicks(qint64 newRunTimeTicks) {
m_runTimeTicks = newRunTimeTicks;
emit runTimeTicksChanged(newRunTimeTicks);
}
PlayAccess BaseItemDto::playAccess() const { return m_playAccess; }
void BaseItemDto::setPlayAccess(PlayAccess newPlayAccess) {
m_playAccess = newPlayAccess;
emit playAccessChanged(newPlayAccess);
}
QString BaseItemDto::aspectRatio() const { return m_aspectRatio; }
void BaseItemDto::setAspectRatio(QString newAspectRatio) {
m_aspectRatio = newAspectRatio;
emit aspectRatioChanged(newAspectRatio);
}
qint32 BaseItemDto::productionYear() const { return m_productionYear; }
void BaseItemDto::setProductionYear(qint32 newProductionYear) {
m_productionYear = newProductionYear;
emit productionYearChanged(newProductionYear);
}
bool BaseItemDto::isPlaceHolder() const { return m_isPlaceHolder; }
void BaseItemDto::setIsPlaceHolder(bool newIsPlaceHolder) {
m_isPlaceHolder = newIsPlaceHolder;
emit isPlaceHolderChanged(newIsPlaceHolder);
}
QString BaseItemDto::number() const { return m_number; }
void BaseItemDto::setNumber(QString newNumber) {
m_number = newNumber;
emit numberChanged(newNumber);
}
QString BaseItemDto::channelNumber() const { return m_channelNumber; }
void BaseItemDto::setChannelNumber(QString newChannelNumber) {
m_channelNumber = newChannelNumber;
emit channelNumberChanged(newChannelNumber);
}
qint32 BaseItemDto::indexNumber() const { return m_indexNumber; }
void BaseItemDto::setIndexNumber(qint32 newIndexNumber) {
m_indexNumber = newIndexNumber;
emit indexNumberChanged(newIndexNumber);
}
qint32 BaseItemDto::indexNumberEnd() const { return m_indexNumberEnd; }
void BaseItemDto::setIndexNumberEnd(qint32 newIndexNumberEnd) {
m_indexNumberEnd = newIndexNumberEnd;
emit indexNumberEndChanged(newIndexNumberEnd);
}
qint32 BaseItemDto::parentIndexNumber() const { return m_parentIndexNumber; }
void BaseItemDto::setParentIndexNumber(qint32 newParentIndexNumber) {
m_parentIndexNumber = newParentIndexNumber;
emit parentIndexNumberChanged(newParentIndexNumber);
}
QList<MediaUrl *> BaseItemDto::remoteTrailers() const { return m_remoteTrailers; }
void BaseItemDto::setRemoteTrailers(QList<MediaUrl *> newRemoteTrailers) {
m_remoteTrailers = newRemoteTrailers;
emit remoteTrailersChanged(newRemoteTrailers);
}
QJsonObject BaseItemDto::providerIds() const { return m_providerIds; }
void BaseItemDto::setProviderIds(QJsonObject newProviderIds) {
m_providerIds = newProviderIds;
emit providerIdsChanged(newProviderIds);
}
bool BaseItemDto::isHD() const { return m_isHD; }
void BaseItemDto::setIsHD(bool newIsHD) {
m_isHD = newIsHD;
emit isHDChanged(newIsHD);
}
bool BaseItemDto::isFolder() const { return m_isFolder; }
void BaseItemDto::setIsFolder(bool newIsFolder) {
m_isFolder = newIsFolder;
emit isFolderChanged(newIsFolder);
}
QString BaseItemDto::parentId() const { return m_parentId; }
void BaseItemDto::setParentId(QString newParentId) {
m_parentId = newParentId;
emit parentIdChanged(newParentId);
}
QString BaseItemDto::type() const { return m_type; }
void BaseItemDto::setType(QString newType) {
m_type = newType;
emit typeChanged(newType);
}
QList<BaseItemPerson *> BaseItemDto::people() const { return m_people; }
void BaseItemDto::setPeople(QList<BaseItemPerson *> newPeople) {
m_people = newPeople;
emit peopleChanged(newPeople);
}
QList<NameGuidPair *> BaseItemDto::studios() const { return m_studios; }
void BaseItemDto::setStudios(QList<NameGuidPair *> newStudios) {
m_studios = newStudios;
emit studiosChanged(newStudios);
}
QList<NameGuidPair *> BaseItemDto::genreItems() const { return m_genreItems; }
void BaseItemDto::setGenreItems(QList<NameGuidPair *> newGenreItems) {
m_genreItems = newGenreItems;
emit genreItemsChanged(newGenreItems);
}
QString BaseItemDto::parentLogoItemId() const { return m_parentLogoItemId; }
void BaseItemDto::setParentLogoItemId(QString newParentLogoItemId) {
m_parentLogoItemId = newParentLogoItemId;
emit parentLogoItemIdChanged(newParentLogoItemId);
}
QString BaseItemDto::parentBackdropItemId() const { return m_parentBackdropItemId; }
void BaseItemDto::setParentBackdropItemId(QString newParentBackdropItemId) {
m_parentBackdropItemId = newParentBackdropItemId;
emit parentBackdropItemIdChanged(newParentBackdropItemId);
}
QStringList BaseItemDto::parentBackdropImageTags() const { return m_parentBackdropImageTags; }
void BaseItemDto::setParentBackdropImageTags(QStringList newParentBackdropImageTags) {
m_parentBackdropImageTags = newParentBackdropImageTags;
emit parentBackdropImageTagsChanged(newParentBackdropImageTags);
}
qint32 BaseItemDto::localTrailerCount() const { return m_localTrailerCount; }
void BaseItemDto::setLocalTrailerCount(qint32 newLocalTrailerCount) {
m_localTrailerCount = newLocalTrailerCount;
emit localTrailerCountChanged(newLocalTrailerCount);
}
UserItemDataDto * BaseItemDto::userData() const { return m_userData; }
void BaseItemDto::setUserData(UserItemDataDto * newUserData) {
m_userData = newUserData;
emit userDataChanged(newUserData);
}
qint32 BaseItemDto::recursiveItemCount() const { return m_recursiveItemCount; }
void BaseItemDto::setRecursiveItemCount(qint32 newRecursiveItemCount) {
m_recursiveItemCount = newRecursiveItemCount;
emit recursiveItemCountChanged(newRecursiveItemCount);
}
qint32 BaseItemDto::childCount() const { return m_childCount; }
void BaseItemDto::setChildCount(qint32 newChildCount) {
m_childCount = newChildCount;
emit childCountChanged(newChildCount);
}
QString BaseItemDto::seriesName() const { return m_seriesName; }
void BaseItemDto::setSeriesName(QString newSeriesName) {
m_seriesName = newSeriesName;
emit seriesNameChanged(newSeriesName);
}
QString BaseItemDto::seriesId() const { return m_seriesId; }
void BaseItemDto::setSeriesId(QString newSeriesId) {
m_seriesId = newSeriesId;
emit seriesIdChanged(newSeriesId);
}
QString BaseItemDto::seasonId() const { return m_seasonId; }
void BaseItemDto::setSeasonId(QString newSeasonId) {
m_seasonId = newSeasonId;
emit seasonIdChanged(newSeasonId);
}
qint32 BaseItemDto::specialFeatureCount() const { return m_specialFeatureCount; }
void BaseItemDto::setSpecialFeatureCount(qint32 newSpecialFeatureCount) {
m_specialFeatureCount = newSpecialFeatureCount;
emit specialFeatureCountChanged(newSpecialFeatureCount);
}
QString BaseItemDto::displayPreferencesId() const { return m_displayPreferencesId; }
void BaseItemDto::setDisplayPreferencesId(QString newDisplayPreferencesId) {
m_displayPreferencesId = newDisplayPreferencesId;
emit displayPreferencesIdChanged(newDisplayPreferencesId);
}
QString BaseItemDto::status() const { return m_status; }
void BaseItemDto::setStatus(QString newStatus) {
m_status = newStatus;
emit statusChanged(newStatus);
}
QString BaseItemDto::airTime() const { return m_airTime; }
void BaseItemDto::setAirTime(QString newAirTime) {
m_airTime = newAirTime;
emit airTimeChanged(newAirTime);
}
QList<DayOfWeek> BaseItemDto::airDays() const { return m_airDays; }
void BaseItemDto::setAirDays(QList<DayOfWeek> newAirDays) {
m_airDays = newAirDays;
emit airDaysChanged(newAirDays);
}
QStringList BaseItemDto::tags() const { return m_tags; }
void BaseItemDto::setTags(QStringList newTags) {
m_tags = newTags;
emit tagsChanged(newTags);
}
double BaseItemDto::primaryImageAspectRatio() const { return m_primaryImageAspectRatio; }
void BaseItemDto::setPrimaryImageAspectRatio(double newPrimaryImageAspectRatio) {
m_primaryImageAspectRatio = newPrimaryImageAspectRatio;
emit primaryImageAspectRatioChanged(newPrimaryImageAspectRatio);
}
QStringList BaseItemDto::artists() const { return m_artists; }
void BaseItemDto::setArtists(QStringList newArtists) {
m_artists = newArtists;
emit artistsChanged(newArtists);
}
QList<NameGuidPair *> BaseItemDto::artistItems() const { return m_artistItems; }
void BaseItemDto::setArtistItems(QList<NameGuidPair *> newArtistItems) {
m_artistItems = newArtistItems;
emit artistItemsChanged(newArtistItems);
}
QString BaseItemDto::album() const { return m_album; }
void BaseItemDto::setAlbum(QString newAlbum) {
m_album = newAlbum;
emit albumChanged(newAlbum);
}
QString BaseItemDto::collectionType() const { return m_collectionType; }
void BaseItemDto::setCollectionType(QString newCollectionType) {
m_collectionType = newCollectionType;
emit collectionTypeChanged(newCollectionType);
}
QString BaseItemDto::displayOrder() const { return m_displayOrder; }
void BaseItemDto::setDisplayOrder(QString newDisplayOrder) {
m_displayOrder = newDisplayOrder;
emit displayOrderChanged(newDisplayOrder);
}
QString BaseItemDto::albumId() const { return m_albumId; }
void BaseItemDto::setAlbumId(QString newAlbumId) {
m_albumId = newAlbumId;
emit albumIdChanged(newAlbumId);
}
QString BaseItemDto::albumPrimaryImageTag() const { return m_albumPrimaryImageTag; }
void BaseItemDto::setAlbumPrimaryImageTag(QString newAlbumPrimaryImageTag) {
m_albumPrimaryImageTag = newAlbumPrimaryImageTag;
emit albumPrimaryImageTagChanged(newAlbumPrimaryImageTag);
}
QString BaseItemDto::seriesPrimaryImageTag() const { return m_seriesPrimaryImageTag; }
void BaseItemDto::setSeriesPrimaryImageTag(QString newSeriesPrimaryImageTag) {
m_seriesPrimaryImageTag = newSeriesPrimaryImageTag;
emit seriesPrimaryImageTagChanged(newSeriesPrimaryImageTag);
}
QString BaseItemDto::albumArtist() const { return m_albumArtist; }
void BaseItemDto::setAlbumArtist(QString newAlbumArtist) {
m_albumArtist = newAlbumArtist;
emit albumArtistChanged(newAlbumArtist);
}
QList<NameGuidPair *> BaseItemDto::albumArtists() const { return m_albumArtists; }
void BaseItemDto::setAlbumArtists(QList<NameGuidPair *> newAlbumArtists) {
m_albumArtists = newAlbumArtists;
emit albumArtistsChanged(newAlbumArtists);
}
QString BaseItemDto::seasonName() const { return m_seasonName; }
void BaseItemDto::setSeasonName(QString newSeasonName) {
m_seasonName = newSeasonName;
emit seasonNameChanged(newSeasonName);
}
QList<MediaStream *> BaseItemDto::mediaStreams() const { return m_mediaStreams; }
void BaseItemDto::setMediaStreams(QList<MediaStream *> newMediaStreams) {
m_mediaStreams = newMediaStreams;
emit mediaStreamsChanged(newMediaStreams);
}
VideoType BaseItemDto::videoType() const { return m_videoType; }
void BaseItemDto::setVideoType(VideoType newVideoType) {
m_videoType = newVideoType;
emit videoTypeChanged(newVideoType);
}
qint32 BaseItemDto::partCount() const { return m_partCount; }
void BaseItemDto::setPartCount(qint32 newPartCount) {
m_partCount = newPartCount;
emit partCountChanged(newPartCount);
}
qint32 BaseItemDto::mediaSourceCount() const { return m_mediaSourceCount; }
void BaseItemDto::setMediaSourceCount(qint32 newMediaSourceCount) {
m_mediaSourceCount = newMediaSourceCount;
emit mediaSourceCountChanged(newMediaSourceCount);
}
QJsonObject BaseItemDto::imageTags() const { return m_imageTags; }
void BaseItemDto::setImageTags(QJsonObject newImageTags) {
m_imageTags = newImageTags;
emit imageTagsChanged(newImageTags);
}
QStringList BaseItemDto::backdropImageTags() const { return m_backdropImageTags; }
void BaseItemDto::setBackdropImageTags(QStringList newBackdropImageTags) {
m_backdropImageTags = newBackdropImageTags;
emit backdropImageTagsChanged(newBackdropImageTags);
}
QStringList BaseItemDto::screenshotImageTags() const { return m_screenshotImageTags; }
void BaseItemDto::setScreenshotImageTags(QStringList newScreenshotImageTags) {
m_screenshotImageTags = newScreenshotImageTags;
emit screenshotImageTagsChanged(newScreenshotImageTags);
}
QString BaseItemDto::parentLogoImageTag() const { return m_parentLogoImageTag; }
void BaseItemDto::setParentLogoImageTag(QString newParentLogoImageTag) {
m_parentLogoImageTag = newParentLogoImageTag;
emit parentLogoImageTagChanged(newParentLogoImageTag);
}
QString BaseItemDto::parentArtItemId() const { return m_parentArtItemId; }
void BaseItemDto::setParentArtItemId(QString newParentArtItemId) {
m_parentArtItemId = newParentArtItemId;
emit parentArtItemIdChanged(newParentArtItemId);
}
QString BaseItemDto::parentArtImageTag() const { return m_parentArtImageTag; }
void BaseItemDto::setParentArtImageTag(QString newParentArtImageTag) {
m_parentArtImageTag = newParentArtImageTag;
emit parentArtImageTagChanged(newParentArtImageTag);
}
QString BaseItemDto::seriesThumbImageTag() const { return m_seriesThumbImageTag; }
void BaseItemDto::setSeriesThumbImageTag(QString newSeriesThumbImageTag) {
m_seriesThumbImageTag = newSeriesThumbImageTag;
emit seriesThumbImageTagChanged(newSeriesThumbImageTag);
}
QJsonObject BaseItemDto::imageBlurHashes() const { return m_imageBlurHashes; }
void BaseItemDto::setImageBlurHashes(QJsonObject newImageBlurHashes) {
m_imageBlurHashes = newImageBlurHashes;
emit imageBlurHashesChanged(newImageBlurHashes);
}
QString BaseItemDto::seriesStudio() const { return m_seriesStudio; }
void BaseItemDto::setSeriesStudio(QString newSeriesStudio) {
m_seriesStudio = newSeriesStudio;
emit seriesStudioChanged(newSeriesStudio);
}
QString BaseItemDto::parentThumbItemId() const { return m_parentThumbItemId; }
void BaseItemDto::setParentThumbItemId(QString newParentThumbItemId) {
m_parentThumbItemId = newParentThumbItemId;
emit parentThumbItemIdChanged(newParentThumbItemId);
}
QString BaseItemDto::parentThumbImageTag() const { return m_parentThumbImageTag; }
void BaseItemDto::setParentThumbImageTag(QString newParentThumbImageTag) {
m_parentThumbImageTag = newParentThumbImageTag;
emit parentThumbImageTagChanged(newParentThumbImageTag);
}
QString BaseItemDto::parentPrimaryImageItemId() const { return m_parentPrimaryImageItemId; }
void BaseItemDto::setParentPrimaryImageItemId(QString newParentPrimaryImageItemId) {
m_parentPrimaryImageItemId = newParentPrimaryImageItemId;
emit parentPrimaryImageItemIdChanged(newParentPrimaryImageItemId);
}
QString BaseItemDto::parentPrimaryImageTag() const { return m_parentPrimaryImageTag; }
void BaseItemDto::setParentPrimaryImageTag(QString newParentPrimaryImageTag) {
m_parentPrimaryImageTag = newParentPrimaryImageTag;
emit parentPrimaryImageTagChanged(newParentPrimaryImageTag);
}
QList<ChapterInfo *> BaseItemDto::chapters() const { return m_chapters; }
void BaseItemDto::setChapters(QList<ChapterInfo *> newChapters) {
m_chapters = newChapters;
emit chaptersChanged(newChapters);
}
LocationType BaseItemDto::locationType() const { return m_locationType; }
void BaseItemDto::setLocationType(LocationType newLocationType) {
m_locationType = newLocationType;
emit locationTypeChanged(newLocationType);
}
IsoType BaseItemDto::isoType() const { return m_isoType; }
void BaseItemDto::setIsoType(IsoType newIsoType) {
m_isoType = newIsoType;
emit isoTypeChanged(newIsoType);
}
QString BaseItemDto::mediaType() const { return m_mediaType; }
void BaseItemDto::setMediaType(QString newMediaType) {
m_mediaType = newMediaType;
emit mediaTypeChanged(newMediaType);
}
QDateTime BaseItemDto::endDate() const { return m_endDate; }
void BaseItemDto::setEndDate(QDateTime newEndDate) {
m_endDate = newEndDate;
emit endDateChanged(newEndDate);
}
QList<MetadataField> BaseItemDto::lockedFields() const { return m_lockedFields; }
void BaseItemDto::setLockedFields(QList<MetadataField> newLockedFields) {
m_lockedFields = newLockedFields;
emit lockedFieldsChanged(newLockedFields);
}
qint32 BaseItemDto::trailerCount() const { return m_trailerCount; }
void BaseItemDto::setTrailerCount(qint32 newTrailerCount) {
m_trailerCount = newTrailerCount;
emit trailerCountChanged(newTrailerCount);
}
qint32 BaseItemDto::movieCount() const { return m_movieCount; }
void BaseItemDto::setMovieCount(qint32 newMovieCount) {
m_movieCount = newMovieCount;
emit movieCountChanged(newMovieCount);
}
qint32 BaseItemDto::seriesCount() const { return m_seriesCount; }
void BaseItemDto::setSeriesCount(qint32 newSeriesCount) {
m_seriesCount = newSeriesCount;
emit seriesCountChanged(newSeriesCount);
}
qint32 BaseItemDto::programCount() const { return m_programCount; }
void BaseItemDto::setProgramCount(qint32 newProgramCount) {
m_programCount = newProgramCount;
emit programCountChanged(newProgramCount);
}
qint32 BaseItemDto::episodeCount() const { return m_episodeCount; }
void BaseItemDto::setEpisodeCount(qint32 newEpisodeCount) {
m_episodeCount = newEpisodeCount;
emit episodeCountChanged(newEpisodeCount);
}
qint32 BaseItemDto::songCount() const { return m_songCount; }
void BaseItemDto::setSongCount(qint32 newSongCount) {
m_songCount = newSongCount;
emit songCountChanged(newSongCount);
}
qint32 BaseItemDto::albumCount() const { return m_albumCount; }
void BaseItemDto::setAlbumCount(qint32 newAlbumCount) {
m_albumCount = newAlbumCount;
emit albumCountChanged(newAlbumCount);
}
qint32 BaseItemDto::artistCount() const { return m_artistCount; }
void BaseItemDto::setArtistCount(qint32 newArtistCount) {
m_artistCount = newArtistCount;
emit artistCountChanged(newArtistCount);
}
qint32 BaseItemDto::musicVideoCount() const { return m_musicVideoCount; }
void BaseItemDto::setMusicVideoCount(qint32 newMusicVideoCount) {
m_musicVideoCount = newMusicVideoCount;
emit musicVideoCountChanged(newMusicVideoCount);
}
bool BaseItemDto::lockData() const { return m_lockData; }
void BaseItemDto::setLockData(bool newLockData) {
m_lockData = newLockData;
emit lockDataChanged(newLockData);
}
qint32 BaseItemDto::width() const { return m_width; }
void BaseItemDto::setWidth(qint32 newWidth) {
m_width = newWidth;
emit widthChanged(newWidth);
}
qint32 BaseItemDto::height() const { return m_height; }
void BaseItemDto::setHeight(qint32 newHeight) {
m_height = newHeight;
emit heightChanged(newHeight);
}
QString BaseItemDto::cameraMake() const { return m_cameraMake; }
void BaseItemDto::setCameraMake(QString newCameraMake) {
m_cameraMake = newCameraMake;
emit cameraMakeChanged(newCameraMake);
}
QString BaseItemDto::cameraModel() const { return m_cameraModel; }
void BaseItemDto::setCameraModel(QString newCameraModel) {
m_cameraModel = newCameraModel;
emit cameraModelChanged(newCameraModel);
}
QString BaseItemDto::software() const { return m_software; }
void BaseItemDto::setSoftware(QString newSoftware) {
m_software = newSoftware;
emit softwareChanged(newSoftware);
}
double BaseItemDto::exposureTime() const { return m_exposureTime; }
void BaseItemDto::setExposureTime(double newExposureTime) {
m_exposureTime = newExposureTime;
emit exposureTimeChanged(newExposureTime);
}
double BaseItemDto::focalLength() const { return m_focalLength; }
void BaseItemDto::setFocalLength(double newFocalLength) {
m_focalLength = newFocalLength;
emit focalLengthChanged(newFocalLength);
}
ImageOrientation BaseItemDto::imageOrientation() const { return m_imageOrientation; }
void BaseItemDto::setImageOrientation(ImageOrientation newImageOrientation) {
m_imageOrientation = newImageOrientation;
emit imageOrientationChanged(newImageOrientation);
}
double BaseItemDto::aperture() const { return m_aperture; }
void BaseItemDto::setAperture(double newAperture) {
m_aperture = newAperture;
emit apertureChanged(newAperture);
}
double BaseItemDto::shutterSpeed() const { return m_shutterSpeed; }
void BaseItemDto::setShutterSpeed(double newShutterSpeed) {
m_shutterSpeed = newShutterSpeed;
emit shutterSpeedChanged(newShutterSpeed);
}
double BaseItemDto::latitude() const { return m_latitude; }
void BaseItemDto::setLatitude(double newLatitude) {
m_latitude = newLatitude;
emit latitudeChanged(newLatitude);
}
double BaseItemDto::longitude() const { return m_longitude; }
void BaseItemDto::setLongitude(double newLongitude) {
m_longitude = newLongitude;
emit longitudeChanged(newLongitude);
}
double BaseItemDto::altitude() const { return m_altitude; }
void BaseItemDto::setAltitude(double newAltitude) {
m_altitude = newAltitude;
emit altitudeChanged(newAltitude);
}
qint32 BaseItemDto::isoSpeedRating() const { return m_isoSpeedRating; }
void BaseItemDto::setIsoSpeedRating(qint32 newIsoSpeedRating) {
m_isoSpeedRating = newIsoSpeedRating;
emit isoSpeedRatingChanged(newIsoSpeedRating);
}
QString BaseItemDto::seriesTimerId() const { return m_seriesTimerId; }
void BaseItemDto::setSeriesTimerId(QString newSeriesTimerId) {
m_seriesTimerId = newSeriesTimerId;
emit seriesTimerIdChanged(newSeriesTimerId);
}
QString BaseItemDto::programId() const { return m_programId; }
void BaseItemDto::setProgramId(QString newProgramId) {
m_programId = newProgramId;
emit programIdChanged(newProgramId);
}
QString BaseItemDto::channelPrimaryImageTag() const { return m_channelPrimaryImageTag; }
void BaseItemDto::setChannelPrimaryImageTag(QString newChannelPrimaryImageTag) {
m_channelPrimaryImageTag = newChannelPrimaryImageTag;
emit channelPrimaryImageTagChanged(newChannelPrimaryImageTag);
}
QDateTime BaseItemDto::startDate() const { return m_startDate; }
void BaseItemDto::setStartDate(QDateTime newStartDate) {
m_startDate = newStartDate;
emit startDateChanged(newStartDate);
}
double BaseItemDto::completionPercentage() const { return m_completionPercentage; }
void BaseItemDto::setCompletionPercentage(double newCompletionPercentage) {
m_completionPercentage = newCompletionPercentage;
emit completionPercentageChanged(newCompletionPercentage);
}
bool BaseItemDto::isRepeat() const { return m_isRepeat; }
void BaseItemDto::setIsRepeat(bool newIsRepeat) {
m_isRepeat = newIsRepeat;
emit isRepeatChanged(newIsRepeat);
}
QString BaseItemDto::episodeTitle() const { return m_episodeTitle; }
void BaseItemDto::setEpisodeTitle(QString newEpisodeTitle) {
m_episodeTitle = newEpisodeTitle;
emit episodeTitleChanged(newEpisodeTitle);
}
ChannelType BaseItemDto::channelType() const { return m_channelType; }
void BaseItemDto::setChannelType(ChannelType newChannelType) {
m_channelType = newChannelType;
emit channelTypeChanged(newChannelType);
}
ProgramAudio BaseItemDto::audio() const { return m_audio; }
void BaseItemDto::setAudio(ProgramAudio newAudio) {
m_audio = newAudio;
emit audioChanged(newAudio);
}
bool BaseItemDto::isMovie() const { return m_isMovie; }
void BaseItemDto::setIsMovie(bool newIsMovie) {
m_isMovie = newIsMovie;
emit isMovieChanged(newIsMovie);
}
bool BaseItemDto::isSports() const { return m_isSports; }
void BaseItemDto::setIsSports(bool newIsSports) {
m_isSports = newIsSports;
emit isSportsChanged(newIsSports);
}
bool BaseItemDto::isSeries() const { return m_isSeries; }
void BaseItemDto::setIsSeries(bool newIsSeries) {
m_isSeries = newIsSeries;
emit isSeriesChanged(newIsSeries);
}
bool BaseItemDto::isLive() const { return m_isLive; }
void BaseItemDto::setIsLive(bool newIsLive) {
m_isLive = newIsLive;
emit isLiveChanged(newIsLive);
}
bool BaseItemDto::isNews() const { return m_isNews; }
void BaseItemDto::setIsNews(bool newIsNews) {
m_isNews = newIsNews;
emit isNewsChanged(newIsNews);
}
bool BaseItemDto::isKids() const { return m_isKids; }
void BaseItemDto::setIsKids(bool newIsKids) {
m_isKids = newIsKids;
emit isKidsChanged(newIsKids);
}
bool BaseItemDto::isPremiere() const { return m_isPremiere; }
void BaseItemDto::setIsPremiere(bool newIsPremiere) {
m_isPremiere = newIsPremiere;
emit isPremiereChanged(newIsPremiere);
}
QString BaseItemDto::timerId() const { return m_timerId; }
void BaseItemDto::setTimerId(QString newTimerId) {
m_timerId = newTimerId;
emit timerIdChanged(newTimerId);
}
BaseItemDto * BaseItemDto::currentProgram() const { return m_currentProgram; }
void BaseItemDto::setCurrentProgram(BaseItemDto * newCurrentProgram) {
m_currentProgram = newCurrentProgram;
emit currentProgramChanged(newCurrentProgram);
}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,71 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/baseitemdtoqueryresult.h>
namespace Jellyfin {
namespace DTO {
BaseItemDtoQueryResult::BaseItemDtoQueryResult(QObject *parent) : QObject(parent) {}
BaseItemDtoQueryResult *BaseItemDtoQueryResult::fromJSON(QJsonObject source, QObject *parent) {
BaseItemDtoQueryResult *instance = new BaseItemDtoQueryResult(parent);
instance->updateFromJSON(source);
return instance;
}
void BaseItemDtoQueryResult::updateFromJSON(QJsonObject source) {
Q_UNIMPLEMENTED();
}
QJsonObject BaseItemDtoQueryResult::toJSON() {
Q_UNIMPLEMENTED();
QJsonObject result;
return result;
}
QList<BaseItemDto *> BaseItemDtoQueryResult::items() const { return m_items; }
void BaseItemDtoQueryResult::setItems(QList<BaseItemDto *> newItems) {
m_items = newItems;
emit itemsChanged(newItems);
}
qint32 BaseItemDtoQueryResult::totalRecordCount() const { return m_totalRecordCount; }
void BaseItemDtoQueryResult::setTotalRecordCount(qint32 newTotalRecordCount) {
m_totalRecordCount = newTotalRecordCount;
emit totalRecordCountChanged(newTotalRecordCount);
}
qint32 BaseItemDtoQueryResult::startIndex() const { return m_startIndex; }
void BaseItemDtoQueryResult::setStartIndex(qint32 newStartIndex) {
m_startIndex = newStartIndex;
emit startIndexChanged(newStartIndex);
}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,89 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/baseitemperson.h>
namespace Jellyfin {
namespace DTO {
BaseItemPerson::BaseItemPerson(QObject *parent) : QObject(parent) {}
BaseItemPerson *BaseItemPerson::fromJSON(QJsonObject source, QObject *parent) {
BaseItemPerson *instance = new BaseItemPerson(parent);
instance->updateFromJSON(source);
return instance;
}
void BaseItemPerson::updateFromJSON(QJsonObject source) {
Q_UNIMPLEMENTED();
}
QJsonObject BaseItemPerson::toJSON() {
Q_UNIMPLEMENTED();
QJsonObject result;
return result;
}
QString BaseItemPerson::name() const { return m_name; }
void BaseItemPerson::setName(QString newName) {
m_name = newName;
emit nameChanged(newName);
}
QString BaseItemPerson::jellyfinId() const { return m_jellyfinId; }
void BaseItemPerson::setJellyfinId(QString newJellyfinId) {
m_jellyfinId = newJellyfinId;
emit jellyfinIdChanged(newJellyfinId);
}
QString BaseItemPerson::role() const { return m_role; }
void BaseItemPerson::setRole(QString newRole) {
m_role = newRole;
emit roleChanged(newRole);
}
QString BaseItemPerson::type() const { return m_type; }
void BaseItemPerson::setType(QString newType) {
m_type = newType;
emit typeChanged(newType);
}
QString BaseItemPerson::primaryImageTag() const { return m_primaryImageTag; }
void BaseItemPerson::setPrimaryImageTag(QString newPrimaryImageTag) {
m_primaryImageTag = newPrimaryImageTag;
emit primaryImageTagChanged(newPrimaryImageTag);
}
QJsonObject BaseItemPerson::imageBlurHashes() const { return m_imageBlurHashes; }
void BaseItemPerson::setImageBlurHashes(QJsonObject newImageBlurHashes) {
m_imageBlurHashes = newImageBlurHashes;
emit imageBlurHashesChanged(newImageBlurHashes);
}
} // NS Jellyfin
} // NS DTO

View file

119
core/src/DTO/bookinfo.cpp Normal file
View file

@ -0,0 +1,119 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/bookinfo.h>
namespace Jellyfin {
namespace DTO {
BookInfo::BookInfo(QObject *parent) : QObject(parent) {}
BookInfo *BookInfo::fromJSON(QJsonObject source, QObject *parent) {
BookInfo *instance = new BookInfo(parent);
instance->updateFromJSON(source);
return instance;
}
void BookInfo::updateFromJSON(QJsonObject source) {
Q_UNIMPLEMENTED();
}
QJsonObject BookInfo::toJSON() {
Q_UNIMPLEMENTED();
QJsonObject result;
return result;
}
QString BookInfo::name() const { return m_name; }
void BookInfo::setName(QString newName) {
m_name = newName;
emit nameChanged(newName);
}
QString BookInfo::path() const { return m_path; }
void BookInfo::setPath(QString newPath) {
m_path = newPath;
emit pathChanged(newPath);
}
QString BookInfo::metadataLanguage() const { return m_metadataLanguage; }
void BookInfo::setMetadataLanguage(QString newMetadataLanguage) {
m_metadataLanguage = newMetadataLanguage;
emit metadataLanguageChanged(newMetadataLanguage);
}
QString BookInfo::metadataCountryCode() const { return m_metadataCountryCode; }
void BookInfo::setMetadataCountryCode(QString newMetadataCountryCode) {
m_metadataCountryCode = newMetadataCountryCode;
emit metadataCountryCodeChanged(newMetadataCountryCode);
}
QJsonObject BookInfo::providerIds() const { return m_providerIds; }
void BookInfo::setProviderIds(QJsonObject newProviderIds) {
m_providerIds = newProviderIds;
emit providerIdsChanged(newProviderIds);
}
qint32 BookInfo::year() const { return m_year; }
void BookInfo::setYear(qint32 newYear) {
m_year = newYear;
emit yearChanged(newYear);
}
qint32 BookInfo::indexNumber() const { return m_indexNumber; }
void BookInfo::setIndexNumber(qint32 newIndexNumber) {
m_indexNumber = newIndexNumber;
emit indexNumberChanged(newIndexNumber);
}
qint32 BookInfo::parentIndexNumber() const { return m_parentIndexNumber; }
void BookInfo::setParentIndexNumber(qint32 newParentIndexNumber) {
m_parentIndexNumber = newParentIndexNumber;
emit parentIndexNumberChanged(newParentIndexNumber);
}
QDateTime BookInfo::premiereDate() const { return m_premiereDate; }
void BookInfo::setPremiereDate(QDateTime newPremiereDate) {
m_premiereDate = newPremiereDate;
emit premiereDateChanged(newPremiereDate);
}
bool BookInfo::isAutomated() const { return m_isAutomated; }
void BookInfo::setIsAutomated(bool newIsAutomated) {
m_isAutomated = newIsAutomated;
emit isAutomatedChanged(newIsAutomated);
}
QString BookInfo::seriesName() const { return m_seriesName; }
void BookInfo::setSeriesName(QString newSeriesName) {
m_seriesName = newSeriesName;
emit seriesNameChanged(newSeriesName);
}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,77 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/bookinforemotesearchquery.h>
namespace Jellyfin {
namespace DTO {
BookInfoRemoteSearchQuery::BookInfoRemoteSearchQuery(QObject *parent) : QObject(parent) {}
BookInfoRemoteSearchQuery *BookInfoRemoteSearchQuery::fromJSON(QJsonObject source, QObject *parent) {
BookInfoRemoteSearchQuery *instance = new BookInfoRemoteSearchQuery(parent);
instance->updateFromJSON(source);
return instance;
}
void BookInfoRemoteSearchQuery::updateFromJSON(QJsonObject source) {
Q_UNIMPLEMENTED();
}
QJsonObject BookInfoRemoteSearchQuery::toJSON() {
Q_UNIMPLEMENTED();
QJsonObject result;
return result;
}
BookInfo * BookInfoRemoteSearchQuery::searchInfo() const { return m_searchInfo; }
void BookInfoRemoteSearchQuery::setSearchInfo(BookInfo * newSearchInfo) {
m_searchInfo = newSearchInfo;
emit searchInfoChanged(newSearchInfo);
}
QString BookInfoRemoteSearchQuery::itemId() const { return m_itemId; }
void BookInfoRemoteSearchQuery::setItemId(QString newItemId) {
m_itemId = newItemId;
emit itemIdChanged(newItemId);
}
QString BookInfoRemoteSearchQuery::searchProviderName() const { return m_searchProviderName; }
void BookInfoRemoteSearchQuery::setSearchProviderName(QString newSearchProviderName) {
m_searchProviderName = newSearchProviderName;
emit searchProviderNameChanged(newSearchProviderName);
}
bool BookInfoRemoteSearchQuery::includeDisabledProviders() const { return m_includeDisabledProviders; }
void BookInfoRemoteSearchQuery::setIncludeDisabledProviders(bool newIncludeDisabledProviders) {
m_includeDisabledProviders = newIncludeDisabledProviders;
emit includeDisabledProvidersChanged(newIncludeDisabledProviders);
}
} // NS Jellyfin
} // NS DTO

113
core/src/DTO/boxsetinfo.cpp Normal file
View file

@ -0,0 +1,113 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/boxsetinfo.h>
namespace Jellyfin {
namespace DTO {
BoxSetInfo::BoxSetInfo(QObject *parent) : QObject(parent) {}
BoxSetInfo *BoxSetInfo::fromJSON(QJsonObject source, QObject *parent) {
BoxSetInfo *instance = new BoxSetInfo(parent);
instance->updateFromJSON(source);
return instance;
}
void BoxSetInfo::updateFromJSON(QJsonObject source) {
Q_UNIMPLEMENTED();
}
QJsonObject BoxSetInfo::toJSON() {
Q_UNIMPLEMENTED();
QJsonObject result;
return result;
}
QString BoxSetInfo::name() const { return m_name; }
void BoxSetInfo::setName(QString newName) {
m_name = newName;
emit nameChanged(newName);
}
QString BoxSetInfo::path() const { return m_path; }
void BoxSetInfo::setPath(QString newPath) {
m_path = newPath;
emit pathChanged(newPath);
}
QString BoxSetInfo::metadataLanguage() const { return m_metadataLanguage; }
void BoxSetInfo::setMetadataLanguage(QString newMetadataLanguage) {
m_metadataLanguage = newMetadataLanguage;
emit metadataLanguageChanged(newMetadataLanguage);
}
QString BoxSetInfo::metadataCountryCode() const { return m_metadataCountryCode; }
void BoxSetInfo::setMetadataCountryCode(QString newMetadataCountryCode) {
m_metadataCountryCode = newMetadataCountryCode;
emit metadataCountryCodeChanged(newMetadataCountryCode);
}
QJsonObject BoxSetInfo::providerIds() const { return m_providerIds; }
void BoxSetInfo::setProviderIds(QJsonObject newProviderIds) {
m_providerIds = newProviderIds;
emit providerIdsChanged(newProviderIds);
}
qint32 BoxSetInfo::year() const { return m_year; }
void BoxSetInfo::setYear(qint32 newYear) {
m_year = newYear;
emit yearChanged(newYear);
}
qint32 BoxSetInfo::indexNumber() const { return m_indexNumber; }
void BoxSetInfo::setIndexNumber(qint32 newIndexNumber) {
m_indexNumber = newIndexNumber;
emit indexNumberChanged(newIndexNumber);
}
qint32 BoxSetInfo::parentIndexNumber() const { return m_parentIndexNumber; }
void BoxSetInfo::setParentIndexNumber(qint32 newParentIndexNumber) {
m_parentIndexNumber = newParentIndexNumber;
emit parentIndexNumberChanged(newParentIndexNumber);
}
QDateTime BoxSetInfo::premiereDate() const { return m_premiereDate; }
void BoxSetInfo::setPremiereDate(QDateTime newPremiereDate) {
m_premiereDate = newPremiereDate;
emit premiereDateChanged(newPremiereDate);
}
bool BoxSetInfo::isAutomated() const { return m_isAutomated; }
void BoxSetInfo::setIsAutomated(bool newIsAutomated) {
m_isAutomated = newIsAutomated;
emit isAutomatedChanged(newIsAutomated);
}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,77 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/boxsetinforemotesearchquery.h>
namespace Jellyfin {
namespace DTO {
BoxSetInfoRemoteSearchQuery::BoxSetInfoRemoteSearchQuery(QObject *parent) : QObject(parent) {}
BoxSetInfoRemoteSearchQuery *BoxSetInfoRemoteSearchQuery::fromJSON(QJsonObject source, QObject *parent) {
BoxSetInfoRemoteSearchQuery *instance = new BoxSetInfoRemoteSearchQuery(parent);
instance->updateFromJSON(source);
return instance;
}
void BoxSetInfoRemoteSearchQuery::updateFromJSON(QJsonObject source) {
Q_UNIMPLEMENTED();
}
QJsonObject BoxSetInfoRemoteSearchQuery::toJSON() {
Q_UNIMPLEMENTED();
QJsonObject result;
return result;
}
BoxSetInfo * BoxSetInfoRemoteSearchQuery::searchInfo() const { return m_searchInfo; }
void BoxSetInfoRemoteSearchQuery::setSearchInfo(BoxSetInfo * newSearchInfo) {
m_searchInfo = newSearchInfo;
emit searchInfoChanged(newSearchInfo);
}
QString BoxSetInfoRemoteSearchQuery::itemId() const { return m_itemId; }
void BoxSetInfoRemoteSearchQuery::setItemId(QString newItemId) {
m_itemId = newItemId;
emit itemIdChanged(newItemId);
}
QString BoxSetInfoRemoteSearchQuery::searchProviderName() const { return m_searchProviderName; }
void BoxSetInfoRemoteSearchQuery::setSearchProviderName(QString newSearchProviderName) {
m_searchProviderName = newSearchProviderName;
emit searchProviderNameChanged(newSearchProviderName);
}
bool BoxSetInfoRemoteSearchQuery::includeDisabledProviders() const { return m_includeDisabledProviders; }
void BoxSetInfoRemoteSearchQuery::setIncludeDisabledProviders(bool newIncludeDisabledProviders) {
m_includeDisabledProviders = newIncludeDisabledProviders;
emit includeDisabledProvidersChanged(newIncludeDisabledProviders);
}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,65 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/brandingoptions.h>
namespace Jellyfin {
namespace DTO {
BrandingOptions::BrandingOptions(QObject *parent) : QObject(parent) {}
BrandingOptions *BrandingOptions::fromJSON(QJsonObject source, QObject *parent) {
BrandingOptions *instance = new BrandingOptions(parent);
instance->updateFromJSON(source);
return instance;
}
void BrandingOptions::updateFromJSON(QJsonObject source) {
Q_UNIMPLEMENTED();
}
QJsonObject BrandingOptions::toJSON() {
Q_UNIMPLEMENTED();
QJsonObject result;
return result;
}
QString BrandingOptions::loginDisclaimer() const { return m_loginDisclaimer; }
void BrandingOptions::setLoginDisclaimer(QString newLoginDisclaimer) {
m_loginDisclaimer = newLoginDisclaimer;
emit loginDisclaimerChanged(newLoginDisclaimer);
}
QString BrandingOptions::customCss() const { return m_customCss; }
void BrandingOptions::setCustomCss(QString newCustomCss) {
m_customCss = newCustomCss;
emit customCssChanged(newCustomCss);
}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,77 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/bufferrequestdto.h>
namespace Jellyfin {
namespace DTO {
BufferRequestDto::BufferRequestDto(QObject *parent) : QObject(parent) {}
BufferRequestDto *BufferRequestDto::fromJSON(QJsonObject source, QObject *parent) {
BufferRequestDto *instance = new BufferRequestDto(parent);
instance->updateFromJSON(source);
return instance;
}
void BufferRequestDto::updateFromJSON(QJsonObject source) {
Q_UNIMPLEMENTED();
}
QJsonObject BufferRequestDto::toJSON() {
Q_UNIMPLEMENTED();
QJsonObject result;
return result;
}
QDateTime BufferRequestDto::when() const { return m_when; }
void BufferRequestDto::setWhen(QDateTime newWhen) {
m_when = newWhen;
emit whenChanged(newWhen);
}
qint64 BufferRequestDto::positionTicks() const { return m_positionTicks; }
void BufferRequestDto::setPositionTicks(qint64 newPositionTicks) {
m_positionTicks = newPositionTicks;
emit positionTicksChanged(newPositionTicks);
}
bool BufferRequestDto::isPlaying() const { return m_isPlaying; }
void BufferRequestDto::setIsPlaying(bool newIsPlaying) {
m_isPlaying = newIsPlaying;
emit isPlayingChanged(newIsPlaying);
}
QString BufferRequestDto::playlistItemId() const { return m_playlistItemId; }
void BufferRequestDto::setPlaylistItemId(QString newPlaylistItemId) {
m_playlistItemId = newPlaylistItemId;
emit playlistItemIdChanged(newPlaylistItemId);
}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,129 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/channelfeatures.h>
#include <JellyfinQt/DTO/channelitemsortfield.h>
#include <JellyfinQt/DTO/channelmediacontenttype.h>
#include <JellyfinQt/DTO/channelmediatype.h>
namespace Jellyfin {
namespace DTO {
ChannelFeatures::ChannelFeatures(QObject *parent) : QObject(parent) {}
ChannelFeatures *ChannelFeatures::fromJSON(QJsonObject source, QObject *parent) {
ChannelFeatures *instance = new ChannelFeatures(parent);
instance->updateFromJSON(source);
return instance;
}
void ChannelFeatures::updateFromJSON(QJsonObject source) {
Q_UNIMPLEMENTED();
}
QJsonObject ChannelFeatures::toJSON() {
Q_UNIMPLEMENTED();
QJsonObject result;
return result;
}
QString ChannelFeatures::name() const { return m_name; }
void ChannelFeatures::setName(QString newName) {
m_name = newName;
emit nameChanged(newName);
}
QString ChannelFeatures::jellyfinId() const { return m_jellyfinId; }
void ChannelFeatures::setJellyfinId(QString newJellyfinId) {
m_jellyfinId = newJellyfinId;
emit jellyfinIdChanged(newJellyfinId);
}
bool ChannelFeatures::canSearch() const { return m_canSearch; }
void ChannelFeatures::setCanSearch(bool newCanSearch) {
m_canSearch = newCanSearch;
emit canSearchChanged(newCanSearch);
}
QList<ChannelMediaType> ChannelFeatures::mediaTypes() const { return m_mediaTypes; }
void ChannelFeatures::setMediaTypes(QList<ChannelMediaType> newMediaTypes) {
m_mediaTypes = newMediaTypes;
emit mediaTypesChanged(newMediaTypes);
}
QList<ChannelMediaContentType> ChannelFeatures::contentTypes() const { return m_contentTypes; }
void ChannelFeatures::setContentTypes(QList<ChannelMediaContentType> newContentTypes) {
m_contentTypes = newContentTypes;
emit contentTypesChanged(newContentTypes);
}
qint32 ChannelFeatures::maxPageSize() const { return m_maxPageSize; }
void ChannelFeatures::setMaxPageSize(qint32 newMaxPageSize) {
m_maxPageSize = newMaxPageSize;
emit maxPageSizeChanged(newMaxPageSize);
}
qint32 ChannelFeatures::autoRefreshLevels() const { return m_autoRefreshLevels; }
void ChannelFeatures::setAutoRefreshLevels(qint32 newAutoRefreshLevels) {
m_autoRefreshLevels = newAutoRefreshLevels;
emit autoRefreshLevelsChanged(newAutoRefreshLevels);
}
QList<ChannelItemSortField> ChannelFeatures::defaultSortFields() const { return m_defaultSortFields; }
void ChannelFeatures::setDefaultSortFields(QList<ChannelItemSortField> newDefaultSortFields) {
m_defaultSortFields = newDefaultSortFields;
emit defaultSortFieldsChanged(newDefaultSortFields);
}
bool ChannelFeatures::supportsSortOrderToggle() const { return m_supportsSortOrderToggle; }
void ChannelFeatures::setSupportsSortOrderToggle(bool newSupportsSortOrderToggle) {
m_supportsSortOrderToggle = newSupportsSortOrderToggle;
emit supportsSortOrderToggleChanged(newSupportsSortOrderToggle);
}
bool ChannelFeatures::supportsLatestMedia() const { return m_supportsLatestMedia; }
void ChannelFeatures::setSupportsLatestMedia(bool newSupportsLatestMedia) {
m_supportsLatestMedia = newSupportsLatestMedia;
emit supportsLatestMediaChanged(newSupportsLatestMedia);
}
bool ChannelFeatures::canFilter() const { return m_canFilter; }
void ChannelFeatures::setCanFilter(bool newCanFilter) {
m_canFilter = newCanFilter;
emit canFilterChanged(newCanFilter);
}
bool ChannelFeatures::supportsContentDownloading() const { return m_supportsContentDownloading; }
void ChannelFeatures::setSupportsContentDownloading(bool newSupportsContentDownloading) {
m_supportsContentDownloading = newSupportsContentDownloading;
emit supportsContentDownloadingChanged(newSupportsContentDownloading);
}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,38 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/channelitemsortfield.h>
namespace Jellyfin {
namespace DTO {
ChannelItemSortFieldClass::ChannelItemSortFieldClass() {}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,77 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/channelmappingoptionsdto.h>
namespace Jellyfin {
namespace DTO {
ChannelMappingOptionsDto::ChannelMappingOptionsDto(QObject *parent) : QObject(parent) {}
ChannelMappingOptionsDto *ChannelMappingOptionsDto::fromJSON(QJsonObject source, QObject *parent) {
ChannelMappingOptionsDto *instance = new ChannelMappingOptionsDto(parent);
instance->updateFromJSON(source);
return instance;
}
void ChannelMappingOptionsDto::updateFromJSON(QJsonObject source) {
Q_UNIMPLEMENTED();
}
QJsonObject ChannelMappingOptionsDto::toJSON() {
Q_UNIMPLEMENTED();
QJsonObject result;
return result;
}
QList<TunerChannelMapping *> ChannelMappingOptionsDto::tunerChannels() const { return m_tunerChannels; }
void ChannelMappingOptionsDto::setTunerChannels(QList<TunerChannelMapping *> newTunerChannels) {
m_tunerChannels = newTunerChannels;
emit tunerChannelsChanged(newTunerChannels);
}
QList<NameIdPair *> ChannelMappingOptionsDto::providerChannels() const { return m_providerChannels; }
void ChannelMappingOptionsDto::setProviderChannels(QList<NameIdPair *> newProviderChannels) {
m_providerChannels = newProviderChannels;
emit providerChannelsChanged(newProviderChannels);
}
QList<NameValuePair *> ChannelMappingOptionsDto::mappings() const { return m_mappings; }
void ChannelMappingOptionsDto::setMappings(QList<NameValuePair *> newMappings) {
m_mappings = newMappings;
emit mappingsChanged(newMappings);
}
QString ChannelMappingOptionsDto::providerName() const { return m_providerName; }
void ChannelMappingOptionsDto::setProviderName(QString newProviderName) {
m_providerName = newProviderName;
emit providerNameChanged(newProviderName);
}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,38 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/channelmediacontenttype.h>
namespace Jellyfin {
namespace DTO {
ChannelMediaContentTypeClass::ChannelMediaContentTypeClass() {}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,38 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/channelmediatype.h>
namespace Jellyfin {
namespace DTO {
ChannelMediaTypeClass::ChannelMediaTypeClass() {}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,38 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/channeltype.h>
namespace Jellyfin {
namespace DTO {
ChannelTypeClass::ChannelTypeClass() {}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,83 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/chapterinfo.h>
namespace Jellyfin {
namespace DTO {
ChapterInfo::ChapterInfo(QObject *parent) : QObject(parent) {}
ChapterInfo *ChapterInfo::fromJSON(QJsonObject source, QObject *parent) {
ChapterInfo *instance = new ChapterInfo(parent);
instance->updateFromJSON(source);
return instance;
}
void ChapterInfo::updateFromJSON(QJsonObject source) {
Q_UNIMPLEMENTED();
}
QJsonObject ChapterInfo::toJSON() {
Q_UNIMPLEMENTED();
QJsonObject result;
return result;
}
qint64 ChapterInfo::startPositionTicks() const { return m_startPositionTicks; }
void ChapterInfo::setStartPositionTicks(qint64 newStartPositionTicks) {
m_startPositionTicks = newStartPositionTicks;
emit startPositionTicksChanged(newStartPositionTicks);
}
QString ChapterInfo::name() const { return m_name; }
void ChapterInfo::setName(QString newName) {
m_name = newName;
emit nameChanged(newName);
}
QString ChapterInfo::imagePath() const { return m_imagePath; }
void ChapterInfo::setImagePath(QString newImagePath) {
m_imagePath = newImagePath;
emit imagePathChanged(newImagePath);
}
QDateTime ChapterInfo::imageDateModified() const { return m_imageDateModified; }
void ChapterInfo::setImageDateModified(QDateTime newImageDateModified) {
m_imageDateModified = newImageDateModified;
emit imageDateModifiedChanged(newImageDateModified);
}
QString ChapterInfo::imageTag() const { return m_imageTag; }
void ChapterInfo::setImageTag(QString newImageTag) {
m_imageTag = newImageTag;
emit imageTagChanged(newImageTag);
}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,115 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/clientcapabilities.h>
#include <JellyfinQt/DTO/generalcommandtype.h>
namespace Jellyfin {
namespace DTO {
ClientCapabilities::ClientCapabilities(QObject *parent) : QObject(parent) {}
ClientCapabilities *ClientCapabilities::fromJSON(QJsonObject source, QObject *parent) {
ClientCapabilities *instance = new ClientCapabilities(parent);
instance->updateFromJSON(source);
return instance;
}
void ClientCapabilities::updateFromJSON(QJsonObject source) {
Q_UNIMPLEMENTED();
}
QJsonObject ClientCapabilities::toJSON() {
Q_UNIMPLEMENTED();
QJsonObject result;
return result;
}
QStringList ClientCapabilities::playableMediaTypes() const { return m_playableMediaTypes; }
void ClientCapabilities::setPlayableMediaTypes(QStringList newPlayableMediaTypes) {
m_playableMediaTypes = newPlayableMediaTypes;
emit playableMediaTypesChanged(newPlayableMediaTypes);
}
QList<GeneralCommandType> ClientCapabilities::supportedCommands() const { return m_supportedCommands; }
void ClientCapabilities::setSupportedCommands(QList<GeneralCommandType> newSupportedCommands) {
m_supportedCommands = newSupportedCommands;
emit supportedCommandsChanged(newSupportedCommands);
}
bool ClientCapabilities::supportsMediaControl() const { return m_supportsMediaControl; }
void ClientCapabilities::setSupportsMediaControl(bool newSupportsMediaControl) {
m_supportsMediaControl = newSupportsMediaControl;
emit supportsMediaControlChanged(newSupportsMediaControl);
}
bool ClientCapabilities::supportsContentUploading() const { return m_supportsContentUploading; }
void ClientCapabilities::setSupportsContentUploading(bool newSupportsContentUploading) {
m_supportsContentUploading = newSupportsContentUploading;
emit supportsContentUploadingChanged(newSupportsContentUploading);
}
QString ClientCapabilities::messageCallbackUrl() const { return m_messageCallbackUrl; }
void ClientCapabilities::setMessageCallbackUrl(QString newMessageCallbackUrl) {
m_messageCallbackUrl = newMessageCallbackUrl;
emit messageCallbackUrlChanged(newMessageCallbackUrl);
}
bool ClientCapabilities::supportsPersistentIdentifier() const { return m_supportsPersistentIdentifier; }
void ClientCapabilities::setSupportsPersistentIdentifier(bool newSupportsPersistentIdentifier) {
m_supportsPersistentIdentifier = newSupportsPersistentIdentifier;
emit supportsPersistentIdentifierChanged(newSupportsPersistentIdentifier);
}
bool ClientCapabilities::supportsSync() const { return m_supportsSync; }
void ClientCapabilities::setSupportsSync(bool newSupportsSync) {
m_supportsSync = newSupportsSync;
emit supportsSyncChanged(newSupportsSync);
}
DeviceProfile * ClientCapabilities::deviceProfile() const { return m_deviceProfile; }
void ClientCapabilities::setDeviceProfile(DeviceProfile * newDeviceProfile) {
m_deviceProfile = newDeviceProfile;
emit deviceProfileChanged(newDeviceProfile);
}
QString ClientCapabilities::appStoreUrl() const { return m_appStoreUrl; }
void ClientCapabilities::setAppStoreUrl(QString newAppStoreUrl) {
m_appStoreUrl = newAppStoreUrl;
emit appStoreUrlChanged(newAppStoreUrl);
}
QString ClientCapabilities::iconUrl() const { return m_iconUrl; }
void ClientCapabilities::setIconUrl(QString newIconUrl) {
m_iconUrl = newIconUrl;
emit iconUrlChanged(newIconUrl);
}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,115 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/clientcapabilitiesdto.h>
#include <JellyfinQt/DTO/generalcommandtype.h>
namespace Jellyfin {
namespace DTO {
ClientCapabilitiesDto::ClientCapabilitiesDto(QObject *parent) : QObject(parent) {}
ClientCapabilitiesDto *ClientCapabilitiesDto::fromJSON(QJsonObject source, QObject *parent) {
ClientCapabilitiesDto *instance = new ClientCapabilitiesDto(parent);
instance->updateFromJSON(source);
return instance;
}
void ClientCapabilitiesDto::updateFromJSON(QJsonObject source) {
Q_UNIMPLEMENTED();
}
QJsonObject ClientCapabilitiesDto::toJSON() {
Q_UNIMPLEMENTED();
QJsonObject result;
return result;
}
QStringList ClientCapabilitiesDto::playableMediaTypes() const { return m_playableMediaTypes; }
void ClientCapabilitiesDto::setPlayableMediaTypes(QStringList newPlayableMediaTypes) {
m_playableMediaTypes = newPlayableMediaTypes;
emit playableMediaTypesChanged(newPlayableMediaTypes);
}
QList<GeneralCommandType> ClientCapabilitiesDto::supportedCommands() const { return m_supportedCommands; }
void ClientCapabilitiesDto::setSupportedCommands(QList<GeneralCommandType> newSupportedCommands) {
m_supportedCommands = newSupportedCommands;
emit supportedCommandsChanged(newSupportedCommands);
}
bool ClientCapabilitiesDto::supportsMediaControl() const { return m_supportsMediaControl; }
void ClientCapabilitiesDto::setSupportsMediaControl(bool newSupportsMediaControl) {
m_supportsMediaControl = newSupportsMediaControl;
emit supportsMediaControlChanged(newSupportsMediaControl);
}
bool ClientCapabilitiesDto::supportsContentUploading() const { return m_supportsContentUploading; }
void ClientCapabilitiesDto::setSupportsContentUploading(bool newSupportsContentUploading) {
m_supportsContentUploading = newSupportsContentUploading;
emit supportsContentUploadingChanged(newSupportsContentUploading);
}
QString ClientCapabilitiesDto::messageCallbackUrl() const { return m_messageCallbackUrl; }
void ClientCapabilitiesDto::setMessageCallbackUrl(QString newMessageCallbackUrl) {
m_messageCallbackUrl = newMessageCallbackUrl;
emit messageCallbackUrlChanged(newMessageCallbackUrl);
}
bool ClientCapabilitiesDto::supportsPersistentIdentifier() const { return m_supportsPersistentIdentifier; }
void ClientCapabilitiesDto::setSupportsPersistentIdentifier(bool newSupportsPersistentIdentifier) {
m_supportsPersistentIdentifier = newSupportsPersistentIdentifier;
emit supportsPersistentIdentifierChanged(newSupportsPersistentIdentifier);
}
bool ClientCapabilitiesDto::supportsSync() const { return m_supportsSync; }
void ClientCapabilitiesDto::setSupportsSync(bool newSupportsSync) {
m_supportsSync = newSupportsSync;
emit supportsSyncChanged(newSupportsSync);
}
DeviceProfile * ClientCapabilitiesDto::deviceProfile() const { return m_deviceProfile; }
void ClientCapabilitiesDto::setDeviceProfile(DeviceProfile * newDeviceProfile) {
m_deviceProfile = newDeviceProfile;
emit deviceProfileChanged(newDeviceProfile);
}
QString ClientCapabilitiesDto::appStoreUrl() const { return m_appStoreUrl; }
void ClientCapabilitiesDto::setAppStoreUrl(QString newAppStoreUrl) {
m_appStoreUrl = newAppStoreUrl;
emit appStoreUrlChanged(newAppStoreUrl);
}
QString ClientCapabilitiesDto::iconUrl() const { return m_iconUrl; }
void ClientCapabilitiesDto::setIconUrl(QString newIconUrl) {
m_iconUrl = newIconUrl;
emit iconUrlChanged(newIconUrl);
}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,85 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/codecprofile.h>
#include <JellyfinQt/DTO/codectype.h>
namespace Jellyfin {
namespace DTO {
CodecProfile::CodecProfile(QObject *parent) : QObject(parent) {}
CodecProfile *CodecProfile::fromJSON(QJsonObject source, QObject *parent) {
CodecProfile *instance = new CodecProfile(parent);
instance->updateFromJSON(source);
return instance;
}
void CodecProfile::updateFromJSON(QJsonObject source) {
Q_UNIMPLEMENTED();
}
QJsonObject CodecProfile::toJSON() {
Q_UNIMPLEMENTED();
QJsonObject result;
return result;
}
CodecType CodecProfile::type() const { return m_type; }
void CodecProfile::setType(CodecType newType) {
m_type = newType;
emit typeChanged(newType);
}
QList<ProfileCondition *> CodecProfile::conditions() const { return m_conditions; }
void CodecProfile::setConditions(QList<ProfileCondition *> newConditions) {
m_conditions = newConditions;
emit conditionsChanged(newConditions);
}
QList<ProfileCondition *> CodecProfile::applyConditions() const { return m_applyConditions; }
void CodecProfile::setApplyConditions(QList<ProfileCondition *> newApplyConditions) {
m_applyConditions = newApplyConditions;
emit applyConditionsChanged(newApplyConditions);
}
QString CodecProfile::codec() const { return m_codec; }
void CodecProfile::setCodec(QString newCodec) {
m_codec = newCodec;
emit codecChanged(newCodec);
}
QString CodecProfile::container() const { return m_container; }
void CodecProfile::setContainer(QString newContainer) {
m_container = newContainer;
emit containerChanged(newContainer);
}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,38 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/codectype.h>
namespace Jellyfin {
namespace DTO {
CodecTypeClass::CodecTypeClass() {}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,59 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/collectioncreationresult.h>
namespace Jellyfin {
namespace DTO {
CollectionCreationResult::CollectionCreationResult(QObject *parent) : QObject(parent) {}
CollectionCreationResult *CollectionCreationResult::fromJSON(QJsonObject source, QObject *parent) {
CollectionCreationResult *instance = new CollectionCreationResult(parent);
instance->updateFromJSON(source);
return instance;
}
void CollectionCreationResult::updateFromJSON(QJsonObject source) {
Q_UNIMPLEMENTED();
}
QJsonObject CollectionCreationResult::toJSON() {
Q_UNIMPLEMENTED();
QJsonObject result;
return result;
}
QString CollectionCreationResult::jellyfinId() const { return m_jellyfinId; }
void CollectionCreationResult::setJellyfinId(QString newJellyfinId) {
m_jellyfinId = newJellyfinId;
emit jellyfinIdChanged(newJellyfinId);
}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,97 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/configurationpageinfo.h>
#include <JellyfinQt/DTO/configurationpagetype.h>
namespace Jellyfin {
namespace DTO {
ConfigurationPageInfo::ConfigurationPageInfo(QObject *parent) : QObject(parent) {}
ConfigurationPageInfo *ConfigurationPageInfo::fromJSON(QJsonObject source, QObject *parent) {
ConfigurationPageInfo *instance = new ConfigurationPageInfo(parent);
instance->updateFromJSON(source);
return instance;
}
void ConfigurationPageInfo::updateFromJSON(QJsonObject source) {
Q_UNIMPLEMENTED();
}
QJsonObject ConfigurationPageInfo::toJSON() {
Q_UNIMPLEMENTED();
QJsonObject result;
return result;
}
QString ConfigurationPageInfo::name() const { return m_name; }
void ConfigurationPageInfo::setName(QString newName) {
m_name = newName;
emit nameChanged(newName);
}
bool ConfigurationPageInfo::enableInMainMenu() const { return m_enableInMainMenu; }
void ConfigurationPageInfo::setEnableInMainMenu(bool newEnableInMainMenu) {
m_enableInMainMenu = newEnableInMainMenu;
emit enableInMainMenuChanged(newEnableInMainMenu);
}
QString ConfigurationPageInfo::menuSection() const { return m_menuSection; }
void ConfigurationPageInfo::setMenuSection(QString newMenuSection) {
m_menuSection = newMenuSection;
emit menuSectionChanged(newMenuSection);
}
QString ConfigurationPageInfo::menuIcon() const { return m_menuIcon; }
void ConfigurationPageInfo::setMenuIcon(QString newMenuIcon) {
m_menuIcon = newMenuIcon;
emit menuIconChanged(newMenuIcon);
}
QString ConfigurationPageInfo::displayName() const { return m_displayName; }
void ConfigurationPageInfo::setDisplayName(QString newDisplayName) {
m_displayName = newDisplayName;
emit displayNameChanged(newDisplayName);
}
ConfigurationPageType ConfigurationPageInfo::configurationPageType() const { return m_configurationPageType; }
void ConfigurationPageInfo::setConfigurationPageType(ConfigurationPageType newConfigurationPageType) {
m_configurationPageType = newConfigurationPageType;
emit configurationPageTypeChanged(newConfigurationPageType);
}
QString ConfigurationPageInfo::pluginId() const { return m_pluginId; }
void ConfigurationPageInfo::setPluginId(QString newPluginId) {
m_pluginId = newPluginId;
emit pluginIdChanged(newPluginId);
}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,38 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/configurationpagetype.h>
namespace Jellyfin {
namespace DTO {
ConfigurationPageTypeClass::ConfigurationPageTypeClass() {}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,73 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/containerprofile.h>
#include <JellyfinQt/DTO/dlnaprofiletype.h>
namespace Jellyfin {
namespace DTO {
ContainerProfile::ContainerProfile(QObject *parent) : QObject(parent) {}
ContainerProfile *ContainerProfile::fromJSON(QJsonObject source, QObject *parent) {
ContainerProfile *instance = new ContainerProfile(parent);
instance->updateFromJSON(source);
return instance;
}
void ContainerProfile::updateFromJSON(QJsonObject source) {
Q_UNIMPLEMENTED();
}
QJsonObject ContainerProfile::toJSON() {
Q_UNIMPLEMENTED();
QJsonObject result;
return result;
}
DlnaProfileType ContainerProfile::type() const { return m_type; }
void ContainerProfile::setType(DlnaProfileType newType) {
m_type = newType;
emit typeChanged(newType);
}
QList<ProfileCondition *> ContainerProfile::conditions() const { return m_conditions; }
void ContainerProfile::setConditions(QList<ProfileCondition *> newConditions) {
m_conditions = newConditions;
emit conditionsChanged(newConditions);
}
QString ContainerProfile::container() const { return m_container; }
void ContainerProfile::setContainer(QString newContainer) {
m_container = newContainer;
emit containerChanged(newContainer);
}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,71 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/controlresponse.h>
namespace Jellyfin {
namespace DTO {
ControlResponse::ControlResponse(QObject *parent) : QObject(parent) {}
ControlResponse *ControlResponse::fromJSON(QJsonObject source, QObject *parent) {
ControlResponse *instance = new ControlResponse(parent);
instance->updateFromJSON(source);
return instance;
}
void ControlResponse::updateFromJSON(QJsonObject source) {
Q_UNIMPLEMENTED();
}
QJsonObject ControlResponse::toJSON() {
Q_UNIMPLEMENTED();
QJsonObject result;
return result;
}
QJsonObject ControlResponse::headers() const { return m_headers; }
void ControlResponse::setHeaders(QJsonObject newHeaders) {
m_headers = newHeaders;
emit headersChanged(newHeaders);
}
QString ControlResponse::xml() const { return m_xml; }
void ControlResponse::setXml(QString newXml) {
m_xml = newXml;
emit xmlChanged(newXml);
}
bool ControlResponse::isSuccessful() const { return m_isSuccessful; }
void ControlResponse::setIsSuccessful(bool newIsSuccessful) {
m_isSuccessful = newIsSuccessful;
emit isSuccessfulChanged(newIsSuccessful);
}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,77 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/countryinfo.h>
namespace Jellyfin {
namespace DTO {
CountryInfo::CountryInfo(QObject *parent) : QObject(parent) {}
CountryInfo *CountryInfo::fromJSON(QJsonObject source, QObject *parent) {
CountryInfo *instance = new CountryInfo(parent);
instance->updateFromJSON(source);
return instance;
}
void CountryInfo::updateFromJSON(QJsonObject source) {
Q_UNIMPLEMENTED();
}
QJsonObject CountryInfo::toJSON() {
Q_UNIMPLEMENTED();
QJsonObject result;
return result;
}
QString CountryInfo::name() const { return m_name; }
void CountryInfo::setName(QString newName) {
m_name = newName;
emit nameChanged(newName);
}
QString CountryInfo::displayName() const { return m_displayName; }
void CountryInfo::setDisplayName(QString newDisplayName) {
m_displayName = newDisplayName;
emit displayNameChanged(newDisplayName);
}
QString CountryInfo::twoLetterISORegionName() const { return m_twoLetterISORegionName; }
void CountryInfo::setTwoLetterISORegionName(QString newTwoLetterISORegionName) {
m_twoLetterISORegionName = newTwoLetterISORegionName;
emit twoLetterISORegionNameChanged(newTwoLetterISORegionName);
}
QString CountryInfo::threeLetterISORegionName() const { return m_threeLetterISORegionName; }
void CountryInfo::setThreeLetterISORegionName(QString newThreeLetterISORegionName) {
m_threeLetterISORegionName = newThreeLetterISORegionName;
emit threeLetterISORegionNameChanged(newThreeLetterISORegionName);
}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,77 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/createplaylistdto.h>
namespace Jellyfin {
namespace DTO {
CreatePlaylistDto::CreatePlaylistDto(QObject *parent) : QObject(parent) {}
CreatePlaylistDto *CreatePlaylistDto::fromJSON(QJsonObject source, QObject *parent) {
CreatePlaylistDto *instance = new CreatePlaylistDto(parent);
instance->updateFromJSON(source);
return instance;
}
void CreatePlaylistDto::updateFromJSON(QJsonObject source) {
Q_UNIMPLEMENTED();
}
QJsonObject CreatePlaylistDto::toJSON() {
Q_UNIMPLEMENTED();
QJsonObject result;
return result;
}
QString CreatePlaylistDto::name() const { return m_name; }
void CreatePlaylistDto::setName(QString newName) {
m_name = newName;
emit nameChanged(newName);
}
QStringList CreatePlaylistDto::ids() const { return m_ids; }
void CreatePlaylistDto::setIds(QStringList newIds) {
m_ids = newIds;
emit idsChanged(newIds);
}
QString CreatePlaylistDto::userId() const { return m_userId; }
void CreatePlaylistDto::setUserId(QString newUserId) {
m_userId = newUserId;
emit userIdChanged(newUserId);
}
QString CreatePlaylistDto::mediaType() const { return m_mediaType; }
void CreatePlaylistDto::setMediaType(QString newMediaType) {
m_mediaType = newMediaType;
emit mediaTypeChanged(newMediaType);
}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,65 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/createuserbyname.h>
namespace Jellyfin {
namespace DTO {
CreateUserByName::CreateUserByName(QObject *parent) : QObject(parent) {}
CreateUserByName *CreateUserByName::fromJSON(QJsonObject source, QObject *parent) {
CreateUserByName *instance = new CreateUserByName(parent);
instance->updateFromJSON(source);
return instance;
}
void CreateUserByName::updateFromJSON(QJsonObject source) {
Q_UNIMPLEMENTED();
}
QJsonObject CreateUserByName::toJSON() {
Q_UNIMPLEMENTED();
QJsonObject result;
return result;
}
QString CreateUserByName::name() const { return m_name; }
void CreateUserByName::setName(QString newName) {
m_name = newName;
emit nameChanged(newName);
}
QString CreateUserByName::password() const { return m_password; }
void CreateUserByName::setPassword(QString newPassword) {
m_password = newPassword;
emit passwordChanged(newPassword);
}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,83 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/culturedto.h>
namespace Jellyfin {
namespace DTO {
CultureDto::CultureDto(QObject *parent) : QObject(parent) {}
CultureDto *CultureDto::fromJSON(QJsonObject source, QObject *parent) {
CultureDto *instance = new CultureDto(parent);
instance->updateFromJSON(source);
return instance;
}
void CultureDto::updateFromJSON(QJsonObject source) {
Q_UNIMPLEMENTED();
}
QJsonObject CultureDto::toJSON() {
Q_UNIMPLEMENTED();
QJsonObject result;
return result;
}
QString CultureDto::name() const { return m_name; }
void CultureDto::setName(QString newName) {
m_name = newName;
emit nameChanged(newName);
}
QString CultureDto::displayName() const { return m_displayName; }
void CultureDto::setDisplayName(QString newDisplayName) {
m_displayName = newDisplayName;
emit displayNameChanged(newDisplayName);
}
QString CultureDto::twoLetterISOLanguageName() const { return m_twoLetterISOLanguageName; }
void CultureDto::setTwoLetterISOLanguageName(QString newTwoLetterISOLanguageName) {
m_twoLetterISOLanguageName = newTwoLetterISOLanguageName;
emit twoLetterISOLanguageNameChanged(newTwoLetterISOLanguageName);
}
QString CultureDto::threeLetterISOLanguageName() const { return m_threeLetterISOLanguageName; }
void CultureDto::setThreeLetterISOLanguageName(QString newThreeLetterISOLanguageName) {
m_threeLetterISOLanguageName = newThreeLetterISOLanguageName;
emit threeLetterISOLanguageNameChanged(newThreeLetterISOLanguageName);
}
QStringList CultureDto::threeLetterISOLanguageNames() const { return m_threeLetterISOLanguageNames; }
void CultureDto::setThreeLetterISOLanguageNames(QStringList newThreeLetterISOLanguageNames) {
m_threeLetterISOLanguageNames = newThreeLetterISOLanguageNames;
emit threeLetterISOLanguageNamesChanged(newThreeLetterISOLanguageNames);
}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,38 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/dayofweek.h>
namespace Jellyfin {
namespace DTO {
DayOfWeekClass::DayOfWeekClass() {}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,38 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/daypattern.h>
namespace Jellyfin {
namespace DTO {
DayPatternClass::DayPatternClass() {}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,59 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/defaultdirectorybrowserinfodto.h>
namespace Jellyfin {
namespace DTO {
DefaultDirectoryBrowserInfoDto::DefaultDirectoryBrowserInfoDto(QObject *parent) : QObject(parent) {}
DefaultDirectoryBrowserInfoDto *DefaultDirectoryBrowserInfoDto::fromJSON(QJsonObject source, QObject *parent) {
DefaultDirectoryBrowserInfoDto *instance = new DefaultDirectoryBrowserInfoDto(parent);
instance->updateFromJSON(source);
return instance;
}
void DefaultDirectoryBrowserInfoDto::updateFromJSON(QJsonObject source) {
Q_UNIMPLEMENTED();
}
QJsonObject DefaultDirectoryBrowserInfoDto::toJSON() {
Q_UNIMPLEMENTED();
QJsonObject result;
return result;
}
QString DefaultDirectoryBrowserInfoDto::path() const { return m_path; }
void DefaultDirectoryBrowserInfoDto::setPath(QString newPath) {
m_path = newPath;
emit pathChanged(newPath);
}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,107 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/deviceidentification.h>
namespace Jellyfin {
namespace DTO {
DeviceIdentification::DeviceIdentification(QObject *parent) : QObject(parent) {}
DeviceIdentification *DeviceIdentification::fromJSON(QJsonObject source, QObject *parent) {
DeviceIdentification *instance = new DeviceIdentification(parent);
instance->updateFromJSON(source);
return instance;
}
void DeviceIdentification::updateFromJSON(QJsonObject source) {
Q_UNIMPLEMENTED();
}
QJsonObject DeviceIdentification::toJSON() {
Q_UNIMPLEMENTED();
QJsonObject result;
return result;
}
QString DeviceIdentification::friendlyName() const { return m_friendlyName; }
void DeviceIdentification::setFriendlyName(QString newFriendlyName) {
m_friendlyName = newFriendlyName;
emit friendlyNameChanged(newFriendlyName);
}
QString DeviceIdentification::modelNumber() const { return m_modelNumber; }
void DeviceIdentification::setModelNumber(QString newModelNumber) {
m_modelNumber = newModelNumber;
emit modelNumberChanged(newModelNumber);
}
QString DeviceIdentification::serialNumber() const { return m_serialNumber; }
void DeviceIdentification::setSerialNumber(QString newSerialNumber) {
m_serialNumber = newSerialNumber;
emit serialNumberChanged(newSerialNumber);
}
QString DeviceIdentification::modelName() const { return m_modelName; }
void DeviceIdentification::setModelName(QString newModelName) {
m_modelName = newModelName;
emit modelNameChanged(newModelName);
}
QString DeviceIdentification::modelDescription() const { return m_modelDescription; }
void DeviceIdentification::setModelDescription(QString newModelDescription) {
m_modelDescription = newModelDescription;
emit modelDescriptionChanged(newModelDescription);
}
QString DeviceIdentification::modelUrl() const { return m_modelUrl; }
void DeviceIdentification::setModelUrl(QString newModelUrl) {
m_modelUrl = newModelUrl;
emit modelUrlChanged(newModelUrl);
}
QString DeviceIdentification::manufacturer() const { return m_manufacturer; }
void DeviceIdentification::setManufacturer(QString newManufacturer) {
m_manufacturer = newManufacturer;
emit manufacturerChanged(newManufacturer);
}
QString DeviceIdentification::manufacturerUrl() const { return m_manufacturerUrl; }
void DeviceIdentification::setManufacturerUrl(QString newManufacturerUrl) {
m_manufacturerUrl = newManufacturerUrl;
emit manufacturerUrlChanged(newManufacturerUrl);
}
QList<HttpHeaderInfo *> DeviceIdentification::headers() const { return m_headers; }
void DeviceIdentification::setHeaders(QList<HttpHeaderInfo *> newHeaders) {
m_headers = newHeaders;
emit headersChanged(newHeaders);
}
} // NS Jellyfin
} // NS DTO

107
core/src/DTO/deviceinfo.cpp Normal file
View file

@ -0,0 +1,107 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/deviceinfo.h>
namespace Jellyfin {
namespace DTO {
DeviceInfo::DeviceInfo(QObject *parent) : QObject(parent) {}
DeviceInfo *DeviceInfo::fromJSON(QJsonObject source, QObject *parent) {
DeviceInfo *instance = new DeviceInfo(parent);
instance->updateFromJSON(source);
return instance;
}
void DeviceInfo::updateFromJSON(QJsonObject source) {
Q_UNIMPLEMENTED();
}
QJsonObject DeviceInfo::toJSON() {
Q_UNIMPLEMENTED();
QJsonObject result;
return result;
}
QString DeviceInfo::name() const { return m_name; }
void DeviceInfo::setName(QString newName) {
m_name = newName;
emit nameChanged(newName);
}
QString DeviceInfo::jellyfinId() const { return m_jellyfinId; }
void DeviceInfo::setJellyfinId(QString newJellyfinId) {
m_jellyfinId = newJellyfinId;
emit jellyfinIdChanged(newJellyfinId);
}
QString DeviceInfo::lastUserName() const { return m_lastUserName; }
void DeviceInfo::setLastUserName(QString newLastUserName) {
m_lastUserName = newLastUserName;
emit lastUserNameChanged(newLastUserName);
}
QString DeviceInfo::appName() const { return m_appName; }
void DeviceInfo::setAppName(QString newAppName) {
m_appName = newAppName;
emit appNameChanged(newAppName);
}
QString DeviceInfo::appVersion() const { return m_appVersion; }
void DeviceInfo::setAppVersion(QString newAppVersion) {
m_appVersion = newAppVersion;
emit appVersionChanged(newAppVersion);
}
QString DeviceInfo::lastUserId() const { return m_lastUserId; }
void DeviceInfo::setLastUserId(QString newLastUserId) {
m_lastUserId = newLastUserId;
emit lastUserIdChanged(newLastUserId);
}
QDateTime DeviceInfo::dateLastActivity() const { return m_dateLastActivity; }
void DeviceInfo::setDateLastActivity(QDateTime newDateLastActivity) {
m_dateLastActivity = newDateLastActivity;
emit dateLastActivityChanged(newDateLastActivity);
}
ClientCapabilities * DeviceInfo::capabilities() const { return m_capabilities; }
void DeviceInfo::setCapabilities(ClientCapabilities * newCapabilities) {
m_capabilities = newCapabilities;
emit capabilitiesChanged(newCapabilities);
}
QString DeviceInfo::iconUrl() const { return m_iconUrl; }
void DeviceInfo::setIconUrl(QString newIconUrl) {
m_iconUrl = newIconUrl;
emit iconUrlChanged(newIconUrl);
}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,71 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/deviceinfoqueryresult.h>
namespace Jellyfin {
namespace DTO {
DeviceInfoQueryResult::DeviceInfoQueryResult(QObject *parent) : QObject(parent) {}
DeviceInfoQueryResult *DeviceInfoQueryResult::fromJSON(QJsonObject source, QObject *parent) {
DeviceInfoQueryResult *instance = new DeviceInfoQueryResult(parent);
instance->updateFromJSON(source);
return instance;
}
void DeviceInfoQueryResult::updateFromJSON(QJsonObject source) {
Q_UNIMPLEMENTED();
}
QJsonObject DeviceInfoQueryResult::toJSON() {
Q_UNIMPLEMENTED();
QJsonObject result;
return result;
}
QList<DeviceInfo *> DeviceInfoQueryResult::items() const { return m_items; }
void DeviceInfoQueryResult::setItems(QList<DeviceInfo *> newItems) {
m_items = newItems;
emit itemsChanged(newItems);
}
qint32 DeviceInfoQueryResult::totalRecordCount() const { return m_totalRecordCount; }
void DeviceInfoQueryResult::setTotalRecordCount(qint32 newTotalRecordCount) {
m_totalRecordCount = newTotalRecordCount;
emit totalRecordCountChanged(newTotalRecordCount);
}
qint32 DeviceInfoQueryResult::startIndex() const { return m_startIndex; }
void DeviceInfoQueryResult::setStartIndex(qint32 newStartIndex) {
m_startIndex = newStartIndex;
emit startIndexChanged(newStartIndex);
}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,59 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/deviceoptions.h>
namespace Jellyfin {
namespace DTO {
DeviceOptions::DeviceOptions(QObject *parent) : QObject(parent) {}
DeviceOptions *DeviceOptions::fromJSON(QJsonObject source, QObject *parent) {
DeviceOptions *instance = new DeviceOptions(parent);
instance->updateFromJSON(source);
return instance;
}
void DeviceOptions::updateFromJSON(QJsonObject source) {
Q_UNIMPLEMENTED();
}
QJsonObject DeviceOptions::toJSON() {
Q_UNIMPLEMENTED();
QJsonObject result;
return result;
}
QString DeviceOptions::customName() const { return m_customName; }
void DeviceOptions::setCustomName(QString newCustomName) {
m_customName = newCustomName;
emit customNameChanged(newCustomName);
}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,287 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/deviceprofile.h>
namespace Jellyfin {
namespace DTO {
DeviceProfile::DeviceProfile(QObject *parent) : QObject(parent) {}
DeviceProfile *DeviceProfile::fromJSON(QJsonObject source, QObject *parent) {
DeviceProfile *instance = new DeviceProfile(parent);
instance->updateFromJSON(source);
return instance;
}
void DeviceProfile::updateFromJSON(QJsonObject source) {
Q_UNIMPLEMENTED();
}
QJsonObject DeviceProfile::toJSON() {
Q_UNIMPLEMENTED();
QJsonObject result;
return result;
}
QString DeviceProfile::name() const { return m_name; }
void DeviceProfile::setName(QString newName) {
m_name = newName;
emit nameChanged(newName);
}
QString DeviceProfile::jellyfinId() const { return m_jellyfinId; }
void DeviceProfile::setJellyfinId(QString newJellyfinId) {
m_jellyfinId = newJellyfinId;
emit jellyfinIdChanged(newJellyfinId);
}
DeviceIdentification * DeviceProfile::identification() const { return m_identification; }
void DeviceProfile::setIdentification(DeviceIdentification * newIdentification) {
m_identification = newIdentification;
emit identificationChanged(newIdentification);
}
QString DeviceProfile::friendlyName() const { return m_friendlyName; }
void DeviceProfile::setFriendlyName(QString newFriendlyName) {
m_friendlyName = newFriendlyName;
emit friendlyNameChanged(newFriendlyName);
}
QString DeviceProfile::manufacturer() const { return m_manufacturer; }
void DeviceProfile::setManufacturer(QString newManufacturer) {
m_manufacturer = newManufacturer;
emit manufacturerChanged(newManufacturer);
}
QString DeviceProfile::manufacturerUrl() const { return m_manufacturerUrl; }
void DeviceProfile::setManufacturerUrl(QString newManufacturerUrl) {
m_manufacturerUrl = newManufacturerUrl;
emit manufacturerUrlChanged(newManufacturerUrl);
}
QString DeviceProfile::modelName() const { return m_modelName; }
void DeviceProfile::setModelName(QString newModelName) {
m_modelName = newModelName;
emit modelNameChanged(newModelName);
}
QString DeviceProfile::modelDescription() const { return m_modelDescription; }
void DeviceProfile::setModelDescription(QString newModelDescription) {
m_modelDescription = newModelDescription;
emit modelDescriptionChanged(newModelDescription);
}
QString DeviceProfile::modelNumber() const { return m_modelNumber; }
void DeviceProfile::setModelNumber(QString newModelNumber) {
m_modelNumber = newModelNumber;
emit modelNumberChanged(newModelNumber);
}
QString DeviceProfile::modelUrl() const { return m_modelUrl; }
void DeviceProfile::setModelUrl(QString newModelUrl) {
m_modelUrl = newModelUrl;
emit modelUrlChanged(newModelUrl);
}
QString DeviceProfile::serialNumber() const { return m_serialNumber; }
void DeviceProfile::setSerialNumber(QString newSerialNumber) {
m_serialNumber = newSerialNumber;
emit serialNumberChanged(newSerialNumber);
}
bool DeviceProfile::enableAlbumArtInDidl() const { return m_enableAlbumArtInDidl; }
void DeviceProfile::setEnableAlbumArtInDidl(bool newEnableAlbumArtInDidl) {
m_enableAlbumArtInDidl = newEnableAlbumArtInDidl;
emit enableAlbumArtInDidlChanged(newEnableAlbumArtInDidl);
}
bool DeviceProfile::enableSingleAlbumArtLimit() const { return m_enableSingleAlbumArtLimit; }
void DeviceProfile::setEnableSingleAlbumArtLimit(bool newEnableSingleAlbumArtLimit) {
m_enableSingleAlbumArtLimit = newEnableSingleAlbumArtLimit;
emit enableSingleAlbumArtLimitChanged(newEnableSingleAlbumArtLimit);
}
bool DeviceProfile::enableSingleSubtitleLimit() const { return m_enableSingleSubtitleLimit; }
void DeviceProfile::setEnableSingleSubtitleLimit(bool newEnableSingleSubtitleLimit) {
m_enableSingleSubtitleLimit = newEnableSingleSubtitleLimit;
emit enableSingleSubtitleLimitChanged(newEnableSingleSubtitleLimit);
}
QString DeviceProfile::supportedMediaTypes() const { return m_supportedMediaTypes; }
void DeviceProfile::setSupportedMediaTypes(QString newSupportedMediaTypes) {
m_supportedMediaTypes = newSupportedMediaTypes;
emit supportedMediaTypesChanged(newSupportedMediaTypes);
}
QString DeviceProfile::userId() const { return m_userId; }
void DeviceProfile::setUserId(QString newUserId) {
m_userId = newUserId;
emit userIdChanged(newUserId);
}
QString DeviceProfile::albumArtPn() const { return m_albumArtPn; }
void DeviceProfile::setAlbumArtPn(QString newAlbumArtPn) {
m_albumArtPn = newAlbumArtPn;
emit albumArtPnChanged(newAlbumArtPn);
}
qint32 DeviceProfile::maxAlbumArtWidth() const { return m_maxAlbumArtWidth; }
void DeviceProfile::setMaxAlbumArtWidth(qint32 newMaxAlbumArtWidth) {
m_maxAlbumArtWidth = newMaxAlbumArtWidth;
emit maxAlbumArtWidthChanged(newMaxAlbumArtWidth);
}
qint32 DeviceProfile::maxAlbumArtHeight() const { return m_maxAlbumArtHeight; }
void DeviceProfile::setMaxAlbumArtHeight(qint32 newMaxAlbumArtHeight) {
m_maxAlbumArtHeight = newMaxAlbumArtHeight;
emit maxAlbumArtHeightChanged(newMaxAlbumArtHeight);
}
qint32 DeviceProfile::maxIconWidth() const { return m_maxIconWidth; }
void DeviceProfile::setMaxIconWidth(qint32 newMaxIconWidth) {
m_maxIconWidth = newMaxIconWidth;
emit maxIconWidthChanged(newMaxIconWidth);
}
qint32 DeviceProfile::maxIconHeight() const { return m_maxIconHeight; }
void DeviceProfile::setMaxIconHeight(qint32 newMaxIconHeight) {
m_maxIconHeight = newMaxIconHeight;
emit maxIconHeightChanged(newMaxIconHeight);
}
qint32 DeviceProfile::maxStreamingBitrate() const { return m_maxStreamingBitrate; }
void DeviceProfile::setMaxStreamingBitrate(qint32 newMaxStreamingBitrate) {
m_maxStreamingBitrate = newMaxStreamingBitrate;
emit maxStreamingBitrateChanged(newMaxStreamingBitrate);
}
qint32 DeviceProfile::maxStaticBitrate() const { return m_maxStaticBitrate; }
void DeviceProfile::setMaxStaticBitrate(qint32 newMaxStaticBitrate) {
m_maxStaticBitrate = newMaxStaticBitrate;
emit maxStaticBitrateChanged(newMaxStaticBitrate);
}
qint32 DeviceProfile::musicStreamingTranscodingBitrate() const { return m_musicStreamingTranscodingBitrate; }
void DeviceProfile::setMusicStreamingTranscodingBitrate(qint32 newMusicStreamingTranscodingBitrate) {
m_musicStreamingTranscodingBitrate = newMusicStreamingTranscodingBitrate;
emit musicStreamingTranscodingBitrateChanged(newMusicStreamingTranscodingBitrate);
}
qint32 DeviceProfile::maxStaticMusicBitrate() const { return m_maxStaticMusicBitrate; }
void DeviceProfile::setMaxStaticMusicBitrate(qint32 newMaxStaticMusicBitrate) {
m_maxStaticMusicBitrate = newMaxStaticMusicBitrate;
emit maxStaticMusicBitrateChanged(newMaxStaticMusicBitrate);
}
QString DeviceProfile::sonyAggregationFlags() const { return m_sonyAggregationFlags; }
void DeviceProfile::setSonyAggregationFlags(QString newSonyAggregationFlags) {
m_sonyAggregationFlags = newSonyAggregationFlags;
emit sonyAggregationFlagsChanged(newSonyAggregationFlags);
}
QString DeviceProfile::protocolInfo() const { return m_protocolInfo; }
void DeviceProfile::setProtocolInfo(QString newProtocolInfo) {
m_protocolInfo = newProtocolInfo;
emit protocolInfoChanged(newProtocolInfo);
}
qint32 DeviceProfile::timelineOffsetSeconds() const { return m_timelineOffsetSeconds; }
void DeviceProfile::setTimelineOffsetSeconds(qint32 newTimelineOffsetSeconds) {
m_timelineOffsetSeconds = newTimelineOffsetSeconds;
emit timelineOffsetSecondsChanged(newTimelineOffsetSeconds);
}
bool DeviceProfile::requiresPlainVideoItems() const { return m_requiresPlainVideoItems; }
void DeviceProfile::setRequiresPlainVideoItems(bool newRequiresPlainVideoItems) {
m_requiresPlainVideoItems = newRequiresPlainVideoItems;
emit requiresPlainVideoItemsChanged(newRequiresPlainVideoItems);
}
bool DeviceProfile::requiresPlainFolders() const { return m_requiresPlainFolders; }
void DeviceProfile::setRequiresPlainFolders(bool newRequiresPlainFolders) {
m_requiresPlainFolders = newRequiresPlainFolders;
emit requiresPlainFoldersChanged(newRequiresPlainFolders);
}
bool DeviceProfile::enableMSMediaReceiverRegistrar() const { return m_enableMSMediaReceiverRegistrar; }
void DeviceProfile::setEnableMSMediaReceiverRegistrar(bool newEnableMSMediaReceiverRegistrar) {
m_enableMSMediaReceiverRegistrar = newEnableMSMediaReceiverRegistrar;
emit enableMSMediaReceiverRegistrarChanged(newEnableMSMediaReceiverRegistrar);
}
bool DeviceProfile::ignoreTranscodeByteRangeRequests() const { return m_ignoreTranscodeByteRangeRequests; }
void DeviceProfile::setIgnoreTranscodeByteRangeRequests(bool newIgnoreTranscodeByteRangeRequests) {
m_ignoreTranscodeByteRangeRequests = newIgnoreTranscodeByteRangeRequests;
emit ignoreTranscodeByteRangeRequestsChanged(newIgnoreTranscodeByteRangeRequests);
}
QList<XmlAttribute *> DeviceProfile::xmlRootAttributes() const { return m_xmlRootAttributes; }
void DeviceProfile::setXmlRootAttributes(QList<XmlAttribute *> newXmlRootAttributes) {
m_xmlRootAttributes = newXmlRootAttributes;
emit xmlRootAttributesChanged(newXmlRootAttributes);
}
QList<DirectPlayProfile *> DeviceProfile::directPlayProfiles() const { return m_directPlayProfiles; }
void DeviceProfile::setDirectPlayProfiles(QList<DirectPlayProfile *> newDirectPlayProfiles) {
m_directPlayProfiles = newDirectPlayProfiles;
emit directPlayProfilesChanged(newDirectPlayProfiles);
}
QList<TranscodingProfile *> DeviceProfile::transcodingProfiles() const { return m_transcodingProfiles; }
void DeviceProfile::setTranscodingProfiles(QList<TranscodingProfile *> newTranscodingProfiles) {
m_transcodingProfiles = newTranscodingProfiles;
emit transcodingProfilesChanged(newTranscodingProfiles);
}
QList<ContainerProfile *> DeviceProfile::containerProfiles() const { return m_containerProfiles; }
void DeviceProfile::setContainerProfiles(QList<ContainerProfile *> newContainerProfiles) {
m_containerProfiles = newContainerProfiles;
emit containerProfilesChanged(newContainerProfiles);
}
QList<CodecProfile *> DeviceProfile::codecProfiles() const { return m_codecProfiles; }
void DeviceProfile::setCodecProfiles(QList<CodecProfile *> newCodecProfiles) {
m_codecProfiles = newCodecProfiles;
emit codecProfilesChanged(newCodecProfiles);
}
QList<ResponseProfile *> DeviceProfile::responseProfiles() const { return m_responseProfiles; }
void DeviceProfile::setResponseProfiles(QList<ResponseProfile *> newResponseProfiles) {
m_responseProfiles = newResponseProfiles;
emit responseProfilesChanged(newResponseProfiles);
}
QList<SubtitleProfile *> DeviceProfile::subtitleProfiles() const { return m_subtitleProfiles; }
void DeviceProfile::setSubtitleProfiles(QList<SubtitleProfile *> newSubtitleProfiles) {
m_subtitleProfiles = newSubtitleProfiles;
emit subtitleProfilesChanged(newSubtitleProfiles);
}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,73 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/deviceprofileinfo.h>
#include <JellyfinQt/DTO/deviceprofiletype.h>
namespace Jellyfin {
namespace DTO {
DeviceProfileInfo::DeviceProfileInfo(QObject *parent) : QObject(parent) {}
DeviceProfileInfo *DeviceProfileInfo::fromJSON(QJsonObject source, QObject *parent) {
DeviceProfileInfo *instance = new DeviceProfileInfo(parent);
instance->updateFromJSON(source);
return instance;
}
void DeviceProfileInfo::updateFromJSON(QJsonObject source) {
Q_UNIMPLEMENTED();
}
QJsonObject DeviceProfileInfo::toJSON() {
Q_UNIMPLEMENTED();
QJsonObject result;
return result;
}
QString DeviceProfileInfo::jellyfinId() const { return m_jellyfinId; }
void DeviceProfileInfo::setJellyfinId(QString newJellyfinId) {
m_jellyfinId = newJellyfinId;
emit jellyfinIdChanged(newJellyfinId);
}
QString DeviceProfileInfo::name() const { return m_name; }
void DeviceProfileInfo::setName(QString newName) {
m_name = newName;
emit nameChanged(newName);
}
DeviceProfileType DeviceProfileInfo::type() const { return m_type; }
void DeviceProfileInfo::setType(DeviceProfileType newType) {
m_type = newType;
emit typeChanged(newType);
}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,38 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/deviceprofiletype.h>
namespace Jellyfin {
namespace DTO {
DeviceProfileTypeClass::DeviceProfileTypeClass() {}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,79 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/directplayprofile.h>
#include <JellyfinQt/DTO/dlnaprofiletype.h>
namespace Jellyfin {
namespace DTO {
DirectPlayProfile::DirectPlayProfile(QObject *parent) : QObject(parent) {}
DirectPlayProfile *DirectPlayProfile::fromJSON(QJsonObject source, QObject *parent) {
DirectPlayProfile *instance = new DirectPlayProfile(parent);
instance->updateFromJSON(source);
return instance;
}
void DirectPlayProfile::updateFromJSON(QJsonObject source) {
Q_UNIMPLEMENTED();
}
QJsonObject DirectPlayProfile::toJSON() {
Q_UNIMPLEMENTED();
QJsonObject result;
return result;
}
QString DirectPlayProfile::container() const { return m_container; }
void DirectPlayProfile::setContainer(QString newContainer) {
m_container = newContainer;
emit containerChanged(newContainer);
}
QString DirectPlayProfile::audioCodec() const { return m_audioCodec; }
void DirectPlayProfile::setAudioCodec(QString newAudioCodec) {
m_audioCodec = newAudioCodec;
emit audioCodecChanged(newAudioCodec);
}
QString DirectPlayProfile::videoCodec() const { return m_videoCodec; }
void DirectPlayProfile::setVideoCodec(QString newVideoCodec) {
m_videoCodec = newVideoCodec;
emit videoCodecChanged(newVideoCodec);
}
DlnaProfileType DirectPlayProfile::type() const { return m_type; }
void DirectPlayProfile::setType(DlnaProfileType newType) {
m_type = newType;
emit typeChanged(newType);
}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,140 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/displaypreferencesdto.h>
#include <JellyfinQt/DTO/scrolldirection.h>
#include <JellyfinQt/DTO/sortorder.h>
namespace Jellyfin {
namespace DTO {
DisplayPreferencesDto::DisplayPreferencesDto(QObject *parent) : QObject(parent) {}
DisplayPreferencesDto *DisplayPreferencesDto::fromJSON(QJsonObject source, QObject *parent) {
DisplayPreferencesDto *instance = new DisplayPreferencesDto(parent);
instance->updateFromJSON(source);
return instance;
}
void DisplayPreferencesDto::updateFromJSON(QJsonObject source) {
Q_UNIMPLEMENTED();
}
QJsonObject DisplayPreferencesDto::toJSON() {
Q_UNIMPLEMENTED();
QJsonObject result;
return result;
}
QString DisplayPreferencesDto::jellyfinId() const { return m_jellyfinId; }
void DisplayPreferencesDto::setJellyfinId(QString newJellyfinId) {
m_jellyfinId = newJellyfinId;
emit jellyfinIdChanged(newJellyfinId);
}
QString DisplayPreferencesDto::viewType() const { return m_viewType; }
void DisplayPreferencesDto::setViewType(QString newViewType) {
m_viewType = newViewType;
emit viewTypeChanged(newViewType);
}
QString DisplayPreferencesDto::sortBy() const { return m_sortBy; }
void DisplayPreferencesDto::setSortBy(QString newSortBy) {
m_sortBy = newSortBy;
emit sortByChanged(newSortBy);
}
QString DisplayPreferencesDto::indexBy() const { return m_indexBy; }
void DisplayPreferencesDto::setIndexBy(QString newIndexBy) {
m_indexBy = newIndexBy;
emit indexByChanged(newIndexBy);
}
bool DisplayPreferencesDto::rememberIndexing() const { return m_rememberIndexing; }
void DisplayPreferencesDto::setRememberIndexing(bool newRememberIndexing) {
m_rememberIndexing = newRememberIndexing;
emit rememberIndexingChanged(newRememberIndexing);
}
qint32 DisplayPreferencesDto::primaryImageHeight() const { return m_primaryImageHeight; }
void DisplayPreferencesDto::setPrimaryImageHeight(qint32 newPrimaryImageHeight) {
m_primaryImageHeight = newPrimaryImageHeight;
emit primaryImageHeightChanged(newPrimaryImageHeight);
}
qint32 DisplayPreferencesDto::primaryImageWidth() const { return m_primaryImageWidth; }
void DisplayPreferencesDto::setPrimaryImageWidth(qint32 newPrimaryImageWidth) {
m_primaryImageWidth = newPrimaryImageWidth;
emit primaryImageWidthChanged(newPrimaryImageWidth);
}
QJsonObject DisplayPreferencesDto::customPrefs() const { return m_customPrefs; }
void DisplayPreferencesDto::setCustomPrefs(QJsonObject newCustomPrefs) {
m_customPrefs = newCustomPrefs;
emit customPrefsChanged(newCustomPrefs);
}
ScrollDirection DisplayPreferencesDto::scrollDirection() const { return m_scrollDirection; }
void DisplayPreferencesDto::setScrollDirection(ScrollDirection newScrollDirection) {
m_scrollDirection = newScrollDirection;
emit scrollDirectionChanged(newScrollDirection);
}
bool DisplayPreferencesDto::showBackdrop() const { return m_showBackdrop; }
void DisplayPreferencesDto::setShowBackdrop(bool newShowBackdrop) {
m_showBackdrop = newShowBackdrop;
emit showBackdropChanged(newShowBackdrop);
}
bool DisplayPreferencesDto::rememberSorting() const { return m_rememberSorting; }
void DisplayPreferencesDto::setRememberSorting(bool newRememberSorting) {
m_rememberSorting = newRememberSorting;
emit rememberSortingChanged(newRememberSorting);
}
SortOrder DisplayPreferencesDto::sortOrder() const { return m_sortOrder; }
void DisplayPreferencesDto::setSortOrder(SortOrder newSortOrder) {
m_sortOrder = newSortOrder;
emit sortOrderChanged(newSortOrder);
}
bool DisplayPreferencesDto::showSidebar() const { return m_showSidebar; }
void DisplayPreferencesDto::setShowSidebar(bool newShowSidebar) {
m_showSidebar = newShowSidebar;
emit showSidebarChanged(newShowSidebar);
}
QString DisplayPreferencesDto::client() const { return m_client; }
void DisplayPreferencesDto::setClient(QString newClient) {
m_client = newClient;
emit clientChanged(newClient);
}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,38 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/dlnaprofiletype.h>
namespace Jellyfin {
namespace DTO {
DlnaProfileTypeClass::DlnaProfileTypeClass() {}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,38 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/dynamicdayofweek.h>
namespace Jellyfin {
namespace DTO {
DynamicDayOfWeekClass::DynamicDayOfWeekClass() {}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,38 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/encodingcontext.h>
namespace Jellyfin {
namespace DTO {
EncodingContextClass::EncodingContextClass() {}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,65 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/endpointinfo.h>
namespace Jellyfin {
namespace DTO {
EndPointInfo::EndPointInfo(QObject *parent) : QObject(parent) {}
EndPointInfo *EndPointInfo::fromJSON(QJsonObject source, QObject *parent) {
EndPointInfo *instance = new EndPointInfo(parent);
instance->updateFromJSON(source);
return instance;
}
void EndPointInfo::updateFromJSON(QJsonObject source) {
Q_UNIMPLEMENTED();
}
QJsonObject EndPointInfo::toJSON() {
Q_UNIMPLEMENTED();
QJsonObject result;
return result;
}
bool EndPointInfo::isLocal() const { return m_isLocal; }
void EndPointInfo::setIsLocal(bool newIsLocal) {
m_isLocal = newIsLocal;
emit isLocalChanged(newIsLocal);
}
bool EndPointInfo::isInNetwork() const { return m_isInNetwork; }
void EndPointInfo::setIsInNetwork(bool newIsInNetwork) {
m_isInNetwork = newIsInNetwork;
emit isInNetworkChanged(newIsInNetwork);
}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,79 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/externalidinfo.h>
#include <JellyfinQt/DTO/externalidmediatype.h>
namespace Jellyfin {
namespace DTO {
ExternalIdInfo::ExternalIdInfo(QObject *parent) : QObject(parent) {}
ExternalIdInfo *ExternalIdInfo::fromJSON(QJsonObject source, QObject *parent) {
ExternalIdInfo *instance = new ExternalIdInfo(parent);
instance->updateFromJSON(source);
return instance;
}
void ExternalIdInfo::updateFromJSON(QJsonObject source) {
Q_UNIMPLEMENTED();
}
QJsonObject ExternalIdInfo::toJSON() {
Q_UNIMPLEMENTED();
QJsonObject result;
return result;
}
QString ExternalIdInfo::name() const { return m_name; }
void ExternalIdInfo::setName(QString newName) {
m_name = newName;
emit nameChanged(newName);
}
QString ExternalIdInfo::key() const { return m_key; }
void ExternalIdInfo::setKey(QString newKey) {
m_key = newKey;
emit keyChanged(newKey);
}
ExternalIdMediaType ExternalIdInfo::type() const { return m_type; }
void ExternalIdInfo::setType(ExternalIdMediaType newType) {
m_type = newType;
emit typeChanged(newType);
}
QString ExternalIdInfo::urlFormatString() const { return m_urlFormatString; }
void ExternalIdInfo::setUrlFormatString(QString newUrlFormatString) {
m_urlFormatString = newUrlFormatString;
emit urlFormatStringChanged(newUrlFormatString);
}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,38 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/externalidmediatype.h>
namespace Jellyfin {
namespace DTO {
ExternalIdMediaTypeClass::ExternalIdMediaTypeClass() {}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,65 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/externalurl.h>
namespace Jellyfin {
namespace DTO {
ExternalUrl::ExternalUrl(QObject *parent) : QObject(parent) {}
ExternalUrl *ExternalUrl::fromJSON(QJsonObject source, QObject *parent) {
ExternalUrl *instance = new ExternalUrl(parent);
instance->updateFromJSON(source);
return instance;
}
void ExternalUrl::updateFromJSON(QJsonObject source) {
Q_UNIMPLEMENTED();
}
QJsonObject ExternalUrl::toJSON() {
Q_UNIMPLEMENTED();
QJsonObject result;
return result;
}
QString ExternalUrl::name() const { return m_name; }
void ExternalUrl::setName(QString newName) {
m_name = newName;
emit nameChanged(newName);
}
QString ExternalUrl::url() const { return m_url; }
void ExternalUrl::setUrl(QString newUrl) {
m_url = newUrl;
emit urlChanged(newUrl);
}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,38 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/ffmpeglocation.h>
namespace Jellyfin {
namespace DTO {
FFmpegLocationClass::FFmpegLocationClass() {}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,73 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/filesystementryinfo.h>
#include <JellyfinQt/DTO/filesystementrytype.h>
namespace Jellyfin {
namespace DTO {
FileSystemEntryInfo::FileSystemEntryInfo(QObject *parent) : QObject(parent) {}
FileSystemEntryInfo *FileSystemEntryInfo::fromJSON(QJsonObject source, QObject *parent) {
FileSystemEntryInfo *instance = new FileSystemEntryInfo(parent);
instance->updateFromJSON(source);
return instance;
}
void FileSystemEntryInfo::updateFromJSON(QJsonObject source) {
Q_UNIMPLEMENTED();
}
QJsonObject FileSystemEntryInfo::toJSON() {
Q_UNIMPLEMENTED();
QJsonObject result;
return result;
}
QString FileSystemEntryInfo::name() const { return m_name; }
void FileSystemEntryInfo::setName(QString newName) {
m_name = newName;
emit nameChanged(newName);
}
QString FileSystemEntryInfo::path() const { return m_path; }
void FileSystemEntryInfo::setPath(QString newPath) {
m_path = newPath;
emit pathChanged(newPath);
}
FileSystemEntryType FileSystemEntryInfo::type() const { return m_type; }
void FileSystemEntryInfo::setType(FileSystemEntryType newType) {
m_type = newType;
emit typeChanged(newType);
}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,38 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/filesystementrytype.h>
namespace Jellyfin {
namespace DTO {
FileSystemEntryTypeClass::FileSystemEntryTypeClass() {}
} // NS Jellyfin
} // NS DTO

77
core/src/DTO/fontfile.cpp Normal file
View file

@ -0,0 +1,77 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/fontfile.h>
namespace Jellyfin {
namespace DTO {
FontFile::FontFile(QObject *parent) : QObject(parent) {}
FontFile *FontFile::fromJSON(QJsonObject source, QObject *parent) {
FontFile *instance = new FontFile(parent);
instance->updateFromJSON(source);
return instance;
}
void FontFile::updateFromJSON(QJsonObject source) {
Q_UNIMPLEMENTED();
}
QJsonObject FontFile::toJSON() {
Q_UNIMPLEMENTED();
QJsonObject result;
return result;
}
QString FontFile::name() const { return m_name; }
void FontFile::setName(QString newName) {
m_name = newName;
emit nameChanged(newName);
}
qint64 FontFile::size() const { return m_size; }
void FontFile::setSize(qint64 newSize) {
m_size = newSize;
emit sizeChanged(newSize);
}
QDateTime FontFile::dateCreated() const { return m_dateCreated; }
void FontFile::setDateCreated(QDateTime newDateCreated) {
m_dateCreated = newDateCreated;
emit dateCreatedChanged(newDateCreated);
}
QDateTime FontFile::dateModified() const { return m_dateModified; }
void FontFile::setDateModified(QDateTime newDateModified) {
m_dateModified = newDateModified;
emit dateModifiedChanged(newDateModified);
}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,38 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/forgotpasswordaction.h>
namespace Jellyfin {
namespace DTO {
ForgotPasswordActionClass::ForgotPasswordActionClass() {}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,59 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/forgotpassworddto.h>
namespace Jellyfin {
namespace DTO {
ForgotPasswordDto::ForgotPasswordDto(QObject *parent) : QObject(parent) {}
ForgotPasswordDto *ForgotPasswordDto::fromJSON(QJsonObject source, QObject *parent) {
ForgotPasswordDto *instance = new ForgotPasswordDto(parent);
instance->updateFromJSON(source);
return instance;
}
void ForgotPasswordDto::updateFromJSON(QJsonObject source) {
Q_UNIMPLEMENTED();
}
QJsonObject ForgotPasswordDto::toJSON() {
Q_UNIMPLEMENTED();
QJsonObject result;
return result;
}
QString ForgotPasswordDto::enteredUsername() const { return m_enteredUsername; }
void ForgotPasswordDto::setEnteredUsername(QString newEnteredUsername) {
m_enteredUsername = newEnteredUsername;
emit enteredUsernameChanged(newEnteredUsername);
}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,73 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/forgotpasswordresult.h>
#include <JellyfinQt/DTO/forgotpasswordaction.h>
namespace Jellyfin {
namespace DTO {
ForgotPasswordResult::ForgotPasswordResult(QObject *parent) : QObject(parent) {}
ForgotPasswordResult *ForgotPasswordResult::fromJSON(QJsonObject source, QObject *parent) {
ForgotPasswordResult *instance = new ForgotPasswordResult(parent);
instance->updateFromJSON(source);
return instance;
}
void ForgotPasswordResult::updateFromJSON(QJsonObject source) {
Q_UNIMPLEMENTED();
}
QJsonObject ForgotPasswordResult::toJSON() {
Q_UNIMPLEMENTED();
QJsonObject result;
return result;
}
ForgotPasswordAction ForgotPasswordResult::action() const { return m_action; }
void ForgotPasswordResult::setAction(ForgotPasswordAction newAction) {
m_action = newAction;
emit actionChanged(newAction);
}
QString ForgotPasswordResult::pinFile() const { return m_pinFile; }
void ForgotPasswordResult::setPinFile(QString newPinFile) {
m_pinFile = newPinFile;
emit pinFileChanged(newPinFile);
}
QDateTime ForgotPasswordResult::pinExpirationDate() const { return m_pinExpirationDate; }
void ForgotPasswordResult::setPinExpirationDate(QDateTime newPinExpirationDate) {
m_pinExpirationDate = newPinExpirationDate;
emit pinExpirationDateChanged(newPinExpirationDate);
}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,73 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/generalcommand.h>
#include <JellyfinQt/DTO/generalcommandtype.h>
namespace Jellyfin {
namespace DTO {
GeneralCommand::GeneralCommand(QObject *parent) : QObject(parent) {}
GeneralCommand *GeneralCommand::fromJSON(QJsonObject source, QObject *parent) {
GeneralCommand *instance = new GeneralCommand(parent);
instance->updateFromJSON(source);
return instance;
}
void GeneralCommand::updateFromJSON(QJsonObject source) {
Q_UNIMPLEMENTED();
}
QJsonObject GeneralCommand::toJSON() {
Q_UNIMPLEMENTED();
QJsonObject result;
return result;
}
GeneralCommandType GeneralCommand::name() const { return m_name; }
void GeneralCommand::setName(GeneralCommandType newName) {
m_name = newName;
emit nameChanged(newName);
}
QString GeneralCommand::controllingUserId() const { return m_controllingUserId; }
void GeneralCommand::setControllingUserId(QString newControllingUserId) {
m_controllingUserId = newControllingUserId;
emit controllingUserIdChanged(newControllingUserId);
}
QJsonObject GeneralCommand::arguments() const { return m_arguments; }
void GeneralCommand::setArguments(QJsonObject newArguments) {
m_arguments = newArguments;
emit argumentsChanged(newArguments);
}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,38 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/generalcommandtype.h>
namespace Jellyfin {
namespace DTO {
GeneralCommandTypeClass::GeneralCommandTypeClass() {}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,218 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/getprogramsdto.h>
#include <JellyfinQt/DTO/imagetype.h>
#include <JellyfinQt/DTO/itemfields.h>
namespace Jellyfin {
namespace DTO {
GetProgramsDto::GetProgramsDto(QObject *parent) : QObject(parent) {}
GetProgramsDto *GetProgramsDto::fromJSON(QJsonObject source, QObject *parent) {
GetProgramsDto *instance = new GetProgramsDto(parent);
instance->updateFromJSON(source);
return instance;
}
void GetProgramsDto::updateFromJSON(QJsonObject source) {
Q_UNIMPLEMENTED();
}
QJsonObject GetProgramsDto::toJSON() {
Q_UNIMPLEMENTED();
QJsonObject result;
return result;
}
QStringList GetProgramsDto::channelIds() const { return m_channelIds; }
void GetProgramsDto::setChannelIds(QStringList newChannelIds) {
m_channelIds = newChannelIds;
emit channelIdsChanged(newChannelIds);
}
QString GetProgramsDto::userId() const { return m_userId; }
void GetProgramsDto::setUserId(QString newUserId) {
m_userId = newUserId;
emit userIdChanged(newUserId);
}
QDateTime GetProgramsDto::minStartDate() const { return m_minStartDate; }
void GetProgramsDto::setMinStartDate(QDateTime newMinStartDate) {
m_minStartDate = newMinStartDate;
emit minStartDateChanged(newMinStartDate);
}
bool GetProgramsDto::hasAired() const { return m_hasAired; }
void GetProgramsDto::setHasAired(bool newHasAired) {
m_hasAired = newHasAired;
emit hasAiredChanged(newHasAired);
}
bool GetProgramsDto::isAiring() const { return m_isAiring; }
void GetProgramsDto::setIsAiring(bool newIsAiring) {
m_isAiring = newIsAiring;
emit isAiringChanged(newIsAiring);
}
QDateTime GetProgramsDto::maxStartDate() const { return m_maxStartDate; }
void GetProgramsDto::setMaxStartDate(QDateTime newMaxStartDate) {
m_maxStartDate = newMaxStartDate;
emit maxStartDateChanged(newMaxStartDate);
}
QDateTime GetProgramsDto::minEndDate() const { return m_minEndDate; }
void GetProgramsDto::setMinEndDate(QDateTime newMinEndDate) {
m_minEndDate = newMinEndDate;
emit minEndDateChanged(newMinEndDate);
}
QDateTime GetProgramsDto::maxEndDate() const { return m_maxEndDate; }
void GetProgramsDto::setMaxEndDate(QDateTime newMaxEndDate) {
m_maxEndDate = newMaxEndDate;
emit maxEndDateChanged(newMaxEndDate);
}
bool GetProgramsDto::isMovie() const { return m_isMovie; }
void GetProgramsDto::setIsMovie(bool newIsMovie) {
m_isMovie = newIsMovie;
emit isMovieChanged(newIsMovie);
}
bool GetProgramsDto::isSeries() const { return m_isSeries; }
void GetProgramsDto::setIsSeries(bool newIsSeries) {
m_isSeries = newIsSeries;
emit isSeriesChanged(newIsSeries);
}
bool GetProgramsDto::isNews() const { return m_isNews; }
void GetProgramsDto::setIsNews(bool newIsNews) {
m_isNews = newIsNews;
emit isNewsChanged(newIsNews);
}
bool GetProgramsDto::isKids() const { return m_isKids; }
void GetProgramsDto::setIsKids(bool newIsKids) {
m_isKids = newIsKids;
emit isKidsChanged(newIsKids);
}
bool GetProgramsDto::isSports() const { return m_isSports; }
void GetProgramsDto::setIsSports(bool newIsSports) {
m_isSports = newIsSports;
emit isSportsChanged(newIsSports);
}
qint32 GetProgramsDto::startIndex() const { return m_startIndex; }
void GetProgramsDto::setStartIndex(qint32 newStartIndex) {
m_startIndex = newStartIndex;
emit startIndexChanged(newStartIndex);
}
qint32 GetProgramsDto::limit() const { return m_limit; }
void GetProgramsDto::setLimit(qint32 newLimit) {
m_limit = newLimit;
emit limitChanged(newLimit);
}
QString GetProgramsDto::sortBy() const { return m_sortBy; }
void GetProgramsDto::setSortBy(QString newSortBy) {
m_sortBy = newSortBy;
emit sortByChanged(newSortBy);
}
QString GetProgramsDto::sortOrder() const { return m_sortOrder; }
void GetProgramsDto::setSortOrder(QString newSortOrder) {
m_sortOrder = newSortOrder;
emit sortOrderChanged(newSortOrder);
}
QStringList GetProgramsDto::genres() const { return m_genres; }
void GetProgramsDto::setGenres(QStringList newGenres) {
m_genres = newGenres;
emit genresChanged(newGenres);
}
QStringList GetProgramsDto::genreIds() const { return m_genreIds; }
void GetProgramsDto::setGenreIds(QStringList newGenreIds) {
m_genreIds = newGenreIds;
emit genreIdsChanged(newGenreIds);
}
bool GetProgramsDto::enableImages() const { return m_enableImages; }
void GetProgramsDto::setEnableImages(bool newEnableImages) {
m_enableImages = newEnableImages;
emit enableImagesChanged(newEnableImages);
}
bool GetProgramsDto::enableTotalRecordCount() const { return m_enableTotalRecordCount; }
void GetProgramsDto::setEnableTotalRecordCount(bool newEnableTotalRecordCount) {
m_enableTotalRecordCount = newEnableTotalRecordCount;
emit enableTotalRecordCountChanged(newEnableTotalRecordCount);
}
qint32 GetProgramsDto::imageTypeLimit() const { return m_imageTypeLimit; }
void GetProgramsDto::setImageTypeLimit(qint32 newImageTypeLimit) {
m_imageTypeLimit = newImageTypeLimit;
emit imageTypeLimitChanged(newImageTypeLimit);
}
QList<ImageType> GetProgramsDto::enableImageTypes() const { return m_enableImageTypes; }
void GetProgramsDto::setEnableImageTypes(QList<ImageType> newEnableImageTypes) {
m_enableImageTypes = newEnableImageTypes;
emit enableImageTypesChanged(newEnableImageTypes);
}
bool GetProgramsDto::enableUserData() const { return m_enableUserData; }
void GetProgramsDto::setEnableUserData(bool newEnableUserData) {
m_enableUserData = newEnableUserData;
emit enableUserDataChanged(newEnableUserData);
}
QString GetProgramsDto::seriesTimerId() const { return m_seriesTimerId; }
void GetProgramsDto::setSeriesTimerId(QString newSeriesTimerId) {
m_seriesTimerId = newSeriesTimerId;
emit seriesTimerIdChanged(newSeriesTimerId);
}
QString GetProgramsDto::librarySeriesId() const { return m_librarySeriesId; }
void GetProgramsDto::setLibrarySeriesId(QString newLibrarySeriesId) {
m_librarySeriesId = newLibrarySeriesId;
emit librarySeriesIdChanged(newLibrarySeriesId);
}
QList<ItemFields> GetProgramsDto::fields() const { return m_fields; }
void GetProgramsDto::setFields(QList<ItemFields> newFields) {
m_fields = newFields;
emit fieldsChanged(newFields);
}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,85 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/groupinfodto.h>
#include <JellyfinQt/DTO/groupstatetype.h>
namespace Jellyfin {
namespace DTO {
GroupInfoDto::GroupInfoDto(QObject *parent) : QObject(parent) {}
GroupInfoDto *GroupInfoDto::fromJSON(QJsonObject source, QObject *parent) {
GroupInfoDto *instance = new GroupInfoDto(parent);
instance->updateFromJSON(source);
return instance;
}
void GroupInfoDto::updateFromJSON(QJsonObject source) {
Q_UNIMPLEMENTED();
}
QJsonObject GroupInfoDto::toJSON() {
Q_UNIMPLEMENTED();
QJsonObject result;
return result;
}
QString GroupInfoDto::groupId() const { return m_groupId; }
void GroupInfoDto::setGroupId(QString newGroupId) {
m_groupId = newGroupId;
emit groupIdChanged(newGroupId);
}
QString GroupInfoDto::groupName() const { return m_groupName; }
void GroupInfoDto::setGroupName(QString newGroupName) {
m_groupName = newGroupName;
emit groupNameChanged(newGroupName);
}
GroupStateType GroupInfoDto::state() const { return m_state; }
void GroupInfoDto::setState(GroupStateType newState) {
m_state = newState;
emit stateChanged(newState);
}
QStringList GroupInfoDto::participants() const { return m_participants; }
void GroupInfoDto::setParticipants(QStringList newParticipants) {
m_participants = newParticipants;
emit participantsChanged(newParticipants);
}
QDateTime GroupInfoDto::lastUpdatedAt() const { return m_lastUpdatedAt; }
void GroupInfoDto::setLastUpdatedAt(QDateTime newLastUpdatedAt) {
m_lastUpdatedAt = newLastUpdatedAt;
emit lastUpdatedAtChanged(newLastUpdatedAt);
}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,38 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/groupqueuemode.h>
namespace Jellyfin {
namespace DTO {
GroupQueueModeClass::GroupQueueModeClass() {}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,38 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/grouprepeatmode.h>
namespace Jellyfin {
namespace DTO {
GroupRepeatModeClass::GroupRepeatModeClass() {}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,38 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/groupshufflemode.h>
namespace Jellyfin {
namespace DTO {
GroupShuffleModeClass::GroupShuffleModeClass() {}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,38 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/groupstatetype.h>
namespace Jellyfin {
namespace DTO {
GroupStateTypeClass::GroupStateTypeClass() {}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,38 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/groupupdatetype.h>
namespace Jellyfin {
namespace DTO {
GroupUpdateTypeClass::GroupUpdateTypeClass() {}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,65 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/guideinfo.h>
namespace Jellyfin {
namespace DTO {
GuideInfo::GuideInfo(QObject *parent) : QObject(parent) {}
GuideInfo *GuideInfo::fromJSON(QJsonObject source, QObject *parent) {
GuideInfo *instance = new GuideInfo(parent);
instance->updateFromJSON(source);
return instance;
}
void GuideInfo::updateFromJSON(QJsonObject source) {
Q_UNIMPLEMENTED();
}
QJsonObject GuideInfo::toJSON() {
Q_UNIMPLEMENTED();
QJsonObject result;
return result;
}
QDateTime GuideInfo::startDate() const { return m_startDate; }
void GuideInfo::setStartDate(QDateTime newStartDate) {
m_startDate = newStartDate;
emit startDateChanged(newStartDate);
}
QDateTime GuideInfo::endDate() const { return m_endDate; }
void GuideInfo::setEndDate(QDateTime newEndDate) {
m_endDate = newEndDate;
emit endDateChanged(newEndDate);
}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,38 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/headermatchtype.h>
namespace Jellyfin {
namespace DTO {
HeaderMatchTypeClass::HeaderMatchTypeClass() {}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,73 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/httpheaderinfo.h>
#include <JellyfinQt/DTO/headermatchtype.h>
namespace Jellyfin {
namespace DTO {
HttpHeaderInfo::HttpHeaderInfo(QObject *parent) : QObject(parent) {}
HttpHeaderInfo *HttpHeaderInfo::fromJSON(QJsonObject source, QObject *parent) {
HttpHeaderInfo *instance = new HttpHeaderInfo(parent);
instance->updateFromJSON(source);
return instance;
}
void HttpHeaderInfo::updateFromJSON(QJsonObject source) {
Q_UNIMPLEMENTED();
}
QJsonObject HttpHeaderInfo::toJSON() {
Q_UNIMPLEMENTED();
QJsonObject result;
return result;
}
QString HttpHeaderInfo::name() const { return m_name; }
void HttpHeaderInfo::setName(QString newName) {
m_name = newName;
emit nameChanged(newName);
}
QString HttpHeaderInfo::value() const { return m_value; }
void HttpHeaderInfo::setValue(QString newValue) {
m_value = newValue;
emit valueChanged(newValue);
}
HeaderMatchType HttpHeaderInfo::match() const { return m_match; }
void HttpHeaderInfo::setMatch(HeaderMatchType newMatch) {
m_match = newMatch;
emit matchChanged(newMatch);
}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,59 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/ignorewaitrequestdto.h>
namespace Jellyfin {
namespace DTO {
IgnoreWaitRequestDto::IgnoreWaitRequestDto(QObject *parent) : QObject(parent) {}
IgnoreWaitRequestDto *IgnoreWaitRequestDto::fromJSON(QJsonObject source, QObject *parent) {
IgnoreWaitRequestDto *instance = new IgnoreWaitRequestDto(parent);
instance->updateFromJSON(source);
return instance;
}
void IgnoreWaitRequestDto::updateFromJSON(QJsonObject source) {
Q_UNIMPLEMENTED();
}
QJsonObject IgnoreWaitRequestDto::toJSON() {
Q_UNIMPLEMENTED();
QJsonObject result;
return result;
}
bool IgnoreWaitRequestDto::ignoreWait() const { return m_ignoreWait; }
void IgnoreWaitRequestDto::setIgnoreWait(bool newIgnoreWait) {
m_ignoreWait = newIgnoreWait;
emit ignoreWaitChanged(newIgnoreWait);
}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,83 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/imagebynameinfo.h>
namespace Jellyfin {
namespace DTO {
ImageByNameInfo::ImageByNameInfo(QObject *parent) : QObject(parent) {}
ImageByNameInfo *ImageByNameInfo::fromJSON(QJsonObject source, QObject *parent) {
ImageByNameInfo *instance = new ImageByNameInfo(parent);
instance->updateFromJSON(source);
return instance;
}
void ImageByNameInfo::updateFromJSON(QJsonObject source) {
Q_UNIMPLEMENTED();
}
QJsonObject ImageByNameInfo::toJSON() {
Q_UNIMPLEMENTED();
QJsonObject result;
return result;
}
QString ImageByNameInfo::name() const { return m_name; }
void ImageByNameInfo::setName(QString newName) {
m_name = newName;
emit nameChanged(newName);
}
QString ImageByNameInfo::theme() const { return m_theme; }
void ImageByNameInfo::setTheme(QString newTheme) {
m_theme = newTheme;
emit themeChanged(newTheme);
}
QString ImageByNameInfo::context() const { return m_context; }
void ImageByNameInfo::setContext(QString newContext) {
m_context = newContext;
emit contextChanged(newContext);
}
qint64 ImageByNameInfo::fileLength() const { return m_fileLength; }
void ImageByNameInfo::setFileLength(qint64 newFileLength) {
m_fileLength = newFileLength;
emit fileLengthChanged(newFileLength);
}
QString ImageByNameInfo::format() const { return m_format; }
void ImageByNameInfo::setFormat(QString newFormat) {
m_format = newFormat;
emit formatChanged(newFormat);
}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,38 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/imageformat.h>
namespace Jellyfin {
namespace DTO {
ImageFormatClass::ImageFormatClass() {}
} // NS Jellyfin
} // NS DTO

103
core/src/DTO/imageinfo.cpp Normal file
View file

@ -0,0 +1,103 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/imageinfo.h>
#include <JellyfinQt/DTO/imagetype.h>
namespace Jellyfin {
namespace DTO {
ImageInfo::ImageInfo(QObject *parent) : QObject(parent) {}
ImageInfo *ImageInfo::fromJSON(QJsonObject source, QObject *parent) {
ImageInfo *instance = new ImageInfo(parent);
instance->updateFromJSON(source);
return instance;
}
void ImageInfo::updateFromJSON(QJsonObject source) {
Q_UNIMPLEMENTED();
}
QJsonObject ImageInfo::toJSON() {
Q_UNIMPLEMENTED();
QJsonObject result;
return result;
}
ImageType ImageInfo::imageType() const { return m_imageType; }
void ImageInfo::setImageType(ImageType newImageType) {
m_imageType = newImageType;
emit imageTypeChanged(newImageType);
}
qint32 ImageInfo::imageIndex() const { return m_imageIndex; }
void ImageInfo::setImageIndex(qint32 newImageIndex) {
m_imageIndex = newImageIndex;
emit imageIndexChanged(newImageIndex);
}
QString ImageInfo::imageTag() const { return m_imageTag; }
void ImageInfo::setImageTag(QString newImageTag) {
m_imageTag = newImageTag;
emit imageTagChanged(newImageTag);
}
QString ImageInfo::path() const { return m_path; }
void ImageInfo::setPath(QString newPath) {
m_path = newPath;
emit pathChanged(newPath);
}
QString ImageInfo::blurHash() const { return m_blurHash; }
void ImageInfo::setBlurHash(QString newBlurHash) {
m_blurHash = newBlurHash;
emit blurHashChanged(newBlurHash);
}
qint32 ImageInfo::height() const { return m_height; }
void ImageInfo::setHeight(qint32 newHeight) {
m_height = newHeight;
emit heightChanged(newHeight);
}
qint32 ImageInfo::width() const { return m_width; }
void ImageInfo::setWidth(qint32 newWidth) {
m_width = newWidth;
emit widthChanged(newWidth);
}
qint64 ImageInfo::size() const { return m_size; }
void ImageInfo::setSize(qint64 newSize) {
m_size = newSize;
emit sizeChanged(newSize);
}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,73 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/imageoption.h>
#include <JellyfinQt/DTO/imagetype.h>
namespace Jellyfin {
namespace DTO {
ImageOption::ImageOption(QObject *parent) : QObject(parent) {}
ImageOption *ImageOption::fromJSON(QJsonObject source, QObject *parent) {
ImageOption *instance = new ImageOption(parent);
instance->updateFromJSON(source);
return instance;
}
void ImageOption::updateFromJSON(QJsonObject source) {
Q_UNIMPLEMENTED();
}
QJsonObject ImageOption::toJSON() {
Q_UNIMPLEMENTED();
QJsonObject result;
return result;
}
ImageType ImageOption::type() const { return m_type; }
void ImageOption::setType(ImageType newType) {
m_type = newType;
emit typeChanged(newType);
}
qint32 ImageOption::limit() const { return m_limit; }
void ImageOption::setLimit(qint32 newLimit) {
m_limit = newLimit;
emit limitChanged(newLimit);
}
qint32 ImageOption::minWidth() const { return m_minWidth; }
void ImageOption::setMinWidth(qint32 newMinWidth) {
m_minWidth = newMinWidth;
emit minWidthChanged(newMinWidth);
}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,38 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/imageorientation.h>
namespace Jellyfin {
namespace DTO {
ImageOrientationClass::ImageOrientationClass() {}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,67 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/imageproviderinfo.h>
#include <JellyfinQt/DTO/imagetype.h>
namespace Jellyfin {
namespace DTO {
ImageProviderInfo::ImageProviderInfo(QObject *parent) : QObject(parent) {}
ImageProviderInfo *ImageProviderInfo::fromJSON(QJsonObject source, QObject *parent) {
ImageProviderInfo *instance = new ImageProviderInfo(parent);
instance->updateFromJSON(source);
return instance;
}
void ImageProviderInfo::updateFromJSON(QJsonObject source) {
Q_UNIMPLEMENTED();
}
QJsonObject ImageProviderInfo::toJSON() {
Q_UNIMPLEMENTED();
QJsonObject result;
return result;
}
QString ImageProviderInfo::name() const { return m_name; }
void ImageProviderInfo::setName(QString newName) {
m_name = newName;
emit nameChanged(newName);
}
QList<ImageType> ImageProviderInfo::supportedImages() const { return m_supportedImages; }
void ImageProviderInfo::setSupportedImages(QList<ImageType> newSupportedImages) {
m_supportedImages = newSupportedImages;
emit supportedImagesChanged(newSupportedImages);
}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,38 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/imagesavingconvention.h>
namespace Jellyfin {
namespace DTO {
ImageSavingConventionClass::ImageSavingConventionClass() {}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,38 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/imagetype.h>
namespace Jellyfin {
namespace DTO {
ImageTypeClass::ImageTypeClass() {}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,89 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/installationinfo.h>
namespace Jellyfin {
namespace DTO {
InstallationInfo::InstallationInfo(QObject *parent) : QObject(parent) {}
InstallationInfo *InstallationInfo::fromJSON(QJsonObject source, QObject *parent) {
InstallationInfo *instance = new InstallationInfo(parent);
instance->updateFromJSON(source);
return instance;
}
void InstallationInfo::updateFromJSON(QJsonObject source) {
Q_UNIMPLEMENTED();
}
QJsonObject InstallationInfo::toJSON() {
Q_UNIMPLEMENTED();
QJsonObject result;
return result;
}
QString InstallationInfo::guid() const { return m_guid; }
void InstallationInfo::setGuid(QString newGuid) {
m_guid = newGuid;
emit guidChanged(newGuid);
}
QString InstallationInfo::name() const { return m_name; }
void InstallationInfo::setName(QString newName) {
m_name = newName;
emit nameChanged(newName);
}
Version * InstallationInfo::version() const { return m_version; }
void InstallationInfo::setVersion(Version * newVersion) {
m_version = newVersion;
emit versionChanged(newVersion);
}
QString InstallationInfo::changelog() const { return m_changelog; }
void InstallationInfo::setChangelog(QString newChangelog) {
m_changelog = newChangelog;
emit changelogChanged(newChangelog);
}
QString InstallationInfo::sourceUrl() const { return m_sourceUrl; }
void InstallationInfo::setSourceUrl(QString newSourceUrl) {
m_sourceUrl = newSourceUrl;
emit sourceUrlChanged(newSourceUrl);
}
QString InstallationInfo::checksum() const { return m_checksum; }
void InstallationInfo::setChecksum(QString newChecksum) {
m_checksum = newChecksum;
emit checksumChanged(newChecksum);
}
} // NS Jellyfin
} // NS DTO

95
core/src/DTO/iplugin.cpp Normal file
View file

@ -0,0 +1,95 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/iplugin.h>
namespace Jellyfin {
namespace DTO {
IPlugin::IPlugin(QObject *parent) : QObject(parent) {}
IPlugin *IPlugin::fromJSON(QJsonObject source, QObject *parent) {
IPlugin *instance = new IPlugin(parent);
instance->updateFromJSON(source);
return instance;
}
void IPlugin::updateFromJSON(QJsonObject source) {
Q_UNIMPLEMENTED();
}
QJsonObject IPlugin::toJSON() {
Q_UNIMPLEMENTED();
QJsonObject result;
return result;
}
QString IPlugin::name() const { return m_name; }
void IPlugin::setName(QString newName) {
m_name = newName;
emit nameChanged(newName);
}
QString IPlugin::description() const { return m_description; }
void IPlugin::setDescription(QString newDescription) {
m_description = newDescription;
emit descriptionChanged(newDescription);
}
QString IPlugin::jellyfinId() const { return m_jellyfinId; }
void IPlugin::setJellyfinId(QString newJellyfinId) {
m_jellyfinId = newJellyfinId;
emit jellyfinIdChanged(newJellyfinId);
}
Version * IPlugin::version() const { return m_version; }
void IPlugin::setVersion(Version * newVersion) {
m_version = newVersion;
emit versionChanged(newVersion);
}
QString IPlugin::assemblyFilePath() const { return m_assemblyFilePath; }
void IPlugin::setAssemblyFilePath(QString newAssemblyFilePath) {
m_assemblyFilePath = newAssemblyFilePath;
emit assemblyFilePathChanged(newAssemblyFilePath);
}
bool IPlugin::canUninstall() const { return m_canUninstall; }
void IPlugin::setCanUninstall(bool newCanUninstall) {
m_canUninstall = newCanUninstall;
emit canUninstallChanged(newCanUninstall);
}
QString IPlugin::dataFolderPath() const { return m_dataFolderPath; }
void IPlugin::setDataFolderPath(QString newDataFolderPath) {
m_dataFolderPath = newDataFolderPath;
emit dataFolderPathChanged(newDataFolderPath);
}
} // NS Jellyfin
} // NS DTO

38
core/src/DTO/isotype.cpp Normal file
View file

@ -0,0 +1,38 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/isotype.h>
namespace Jellyfin {
namespace DTO {
IsoTypeClass::IsoTypeClass() {}
} // NS Jellyfin
} // NS DTO

0
core/src/DTO/item.cpp Normal file
View file

125
core/src/DTO/itemcounts.cpp Normal file
View file

@ -0,0 +1,125 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/itemcounts.h>
namespace Jellyfin {
namespace DTO {
ItemCounts::ItemCounts(QObject *parent) : QObject(parent) {}
ItemCounts *ItemCounts::fromJSON(QJsonObject source, QObject *parent) {
ItemCounts *instance = new ItemCounts(parent);
instance->updateFromJSON(source);
return instance;
}
void ItemCounts::updateFromJSON(QJsonObject source) {
Q_UNIMPLEMENTED();
}
QJsonObject ItemCounts::toJSON() {
Q_UNIMPLEMENTED();
QJsonObject result;
return result;
}
qint32 ItemCounts::movieCount() const { return m_movieCount; }
void ItemCounts::setMovieCount(qint32 newMovieCount) {
m_movieCount = newMovieCount;
emit movieCountChanged(newMovieCount);
}
qint32 ItemCounts::seriesCount() const { return m_seriesCount; }
void ItemCounts::setSeriesCount(qint32 newSeriesCount) {
m_seriesCount = newSeriesCount;
emit seriesCountChanged(newSeriesCount);
}
qint32 ItemCounts::episodeCount() const { return m_episodeCount; }
void ItemCounts::setEpisodeCount(qint32 newEpisodeCount) {
m_episodeCount = newEpisodeCount;
emit episodeCountChanged(newEpisodeCount);
}
qint32 ItemCounts::artistCount() const { return m_artistCount; }
void ItemCounts::setArtistCount(qint32 newArtistCount) {
m_artistCount = newArtistCount;
emit artistCountChanged(newArtistCount);
}
qint32 ItemCounts::programCount() const { return m_programCount; }
void ItemCounts::setProgramCount(qint32 newProgramCount) {
m_programCount = newProgramCount;
emit programCountChanged(newProgramCount);
}
qint32 ItemCounts::trailerCount() const { return m_trailerCount; }
void ItemCounts::setTrailerCount(qint32 newTrailerCount) {
m_trailerCount = newTrailerCount;
emit trailerCountChanged(newTrailerCount);
}
qint32 ItemCounts::songCount() const { return m_songCount; }
void ItemCounts::setSongCount(qint32 newSongCount) {
m_songCount = newSongCount;
emit songCountChanged(newSongCount);
}
qint32 ItemCounts::albumCount() const { return m_albumCount; }
void ItemCounts::setAlbumCount(qint32 newAlbumCount) {
m_albumCount = newAlbumCount;
emit albumCountChanged(newAlbumCount);
}
qint32 ItemCounts::musicVideoCount() const { return m_musicVideoCount; }
void ItemCounts::setMusicVideoCount(qint32 newMusicVideoCount) {
m_musicVideoCount = newMusicVideoCount;
emit musicVideoCountChanged(newMusicVideoCount);
}
qint32 ItemCounts::boxSetCount() const { return m_boxSetCount; }
void ItemCounts::setBoxSetCount(qint32 newBoxSetCount) {
m_boxSetCount = newBoxSetCount;
emit boxSetCountChanged(newBoxSetCount);
}
qint32 ItemCounts::bookCount() const { return m_bookCount; }
void ItemCounts::setBookCount(qint32 newBookCount) {
m_bookCount = newBookCount;
emit bookCountChanged(newBookCount);
}
qint32 ItemCounts::itemCount() const { return m_itemCount; }
void ItemCounts::setItemCount(qint32 newItemCount) {
m_itemCount = newItemCount;
emit itemCountChanged(newItemCount);
}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,38 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/itemfields.h>
namespace Jellyfin {
namespace DTO {
ItemFieldsClass::ItemFieldsClass() {}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,38 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/itemfilter.h>
namespace Jellyfin {
namespace DTO {
ItemFilterClass::ItemFilterClass() {}
} // NS Jellyfin
} // NS DTO

View file

@ -0,0 +1,59 @@
/*
* Sailfin: a Jellyfin client written using Qt
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
* OVERWRITTEN AT SOME POINT!
*
* If there is a bug in this file, please fix the code generator used to generate this file found in
* core/openapigenerator.d.
*
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
* file with a newer file if needed instead of manually updating the files.
*/
#include <JellyfinQt/DTO/joingrouprequestdto.h>
namespace Jellyfin {
namespace DTO {
JoinGroupRequestDto::JoinGroupRequestDto(QObject *parent) : QObject(parent) {}
JoinGroupRequestDto *JoinGroupRequestDto::fromJSON(QJsonObject source, QObject *parent) {
JoinGroupRequestDto *instance = new JoinGroupRequestDto(parent);
instance->updateFromJSON(source);
return instance;
}
void JoinGroupRequestDto::updateFromJSON(QJsonObject source) {
Q_UNIMPLEMENTED();
}
QJsonObject JoinGroupRequestDto::toJSON() {
Q_UNIMPLEMENTED();
QJsonObject result;
return result;
}
QString JoinGroupRequestDto::groupId() const { return m_groupId; }
void JoinGroupRequestDto::setGroupId(QString newGroupId) {
m_groupId = newGroupId;
emit groupIdChanged(newGroupId);
}
} // NS Jellyfin
} // NS DTO

Some files were not shown because too many files have changed in this diff Show more