1
0
Fork 0
mirror of https://github.com/HenkKalkwater/harbour-sailfin.git synced 2025-09-04 09:42:45 +00:00

WIP: logic rewrite

WIP: adding loaders
This commit is contained in:
Chris Josten 2021-03-24 20:04:03 +01:00
parent b9b08ab384
commit 2360b261f7
1769 changed files with 124903 additions and 1963 deletions

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.
*/
#ifndef JELLYFIN_DTO_ACCESSSCHEDULE_H
#define JELLYFIN_DTO_ACCESSSCHEDULE_H
#include <QJsonObject>
#include <QJsonValue>
#include <QString>
#include <optional>
#include "JellyfinQt/dto/dynamicdayofweek.h"
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class AccessSchedule {
public:
AccessSchedule();
AccessSchedule(const AccessSchedule &other);
/**
* Replaces the data being hold by this class with that of the other.
*/
void replaceData(AccessSchedule &other);
static AccessSchedule fromJson(QJsonObject source);
void setFromJson(QJsonObject source);
QJsonObject toJson();
// Properties
/**
* @brief Gets or sets the id of this instance.
*/
qint32 jellyfinId() const;
/**
* @brief Gets or sets the id of this instance.
*/
void setJellyfinId(qint32 newJellyfinId);
/**
* @brief Gets or sets the id of the associated user.
*/
QString userId() const;
/**
* @brief Gets or sets the id of the associated user.
*/
void setUserId(QString newUserId);
DynamicDayOfWeek dayOfWeek() const;
void setDayOfWeek(DynamicDayOfWeek newDayOfWeek);
/**
* @brief Gets or sets the start hour.
*/
double startHour() const;
/**
* @brief Gets or sets the start hour.
*/
void setStartHour(double newStartHour);
/**
* @brief Gets or sets the end hour.
*/
double endHour() const;
/**
* @brief Gets or sets the end hour.
*/
void setEndHour(double newEndHour);
protected:
qint32 m_jellyfinId;
QString m_userId;
DynamicDayOfWeek m_dayOfWeek;
double m_startHour;
double m_endHour;
};
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_ACCESSSCHEDULE_H

View file

@ -0,0 +1,176 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_ACTIVITYLOGENTRY_H
#define JELLYFIN_DTO_ACTIVITYLOGENTRY_H
#include <QDateTime>
#include <QJsonObject>
#include <QJsonValue>
#include <QString>
#include <optional>
#include "JellyfinQt/dto/loglevel.h"
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class ActivityLogEntry {
public:
ActivityLogEntry();
ActivityLogEntry(const ActivityLogEntry &other);
/**
* Replaces the data being hold by this class with that of the other.
*/
void replaceData(ActivityLogEntry &other);
static ActivityLogEntry fromJson(QJsonObject source);
void setFromJson(QJsonObject source);
QJsonObject toJson();
// Properties
/**
* @brief Gets or sets the identifier.
*/
qint64 jellyfinId() const;
/**
* @brief Gets or sets the identifier.
*/
void setJellyfinId(qint64 newJellyfinId);
/**
* @brief Gets or sets the name.
*/
QString name() const;
/**
* @brief Gets or sets the name.
*/
void setName(QString newName);
bool nameNull() const;
void setNameNull();
/**
* @brief Gets or sets the overview.
*/
QString overview() const;
/**
* @brief Gets or sets the overview.
*/
void setOverview(QString newOverview);
bool overviewNull() const;
void setOverviewNull();
/**
* @brief Gets or sets the short overview.
*/
QString shortOverview() const;
/**
* @brief Gets or sets the short overview.
*/
void setShortOverview(QString newShortOverview);
bool shortOverviewNull() const;
void setShortOverviewNull();
/**
* @brief Gets or sets the type.
*/
QString type() const;
/**
* @brief Gets or sets the type.
*/
void setType(QString newType);
bool typeNull() const;
void setTypeNull();
/**
* @brief Gets or sets the item identifier.
*/
QString itemId() const;
/**
* @brief Gets or sets the item identifier.
*/
void setItemId(QString newItemId);
bool itemIdNull() const;
void setItemIdNull();
/**
* @brief Gets or sets the date.
*/
QDateTime date() const;
/**
* @brief Gets or sets the date.
*/
void setDate(QDateTime newDate);
/**
* @brief Gets or sets the user identifier.
*/
QString userId() const;
/**
* @brief Gets or sets the user identifier.
*/
void setUserId(QString newUserId);
/**
* @brief Gets or sets the user primary image tag.
*/
QString userPrimaryImageTag() const;
/**
* @brief Gets or sets the user primary image tag.
*/
void setUserPrimaryImageTag(QString newUserPrimaryImageTag);
bool userPrimaryImageTagNull() const;
void setUserPrimaryImageTagNull();
LogLevel severity() const;
void setSeverity(LogLevel newSeverity);
protected:
qint64 m_jellyfinId;
QString m_name;
QString m_overview;
QString m_shortOverview;
QString m_type;
QString m_itemId;
QDateTime m_date;
QString m_userId;
QString m_userPrimaryImageTag;
LogLevel m_severity;
};
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_ACTIVITYLOGENTRY_H

View file

@ -0,0 +1,101 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_ACTIVITYLOGENTRYQUERYRESULT_H
#define JELLYFIN_DTO_ACTIVITYLOGENTRYQUERYRESULT_H
#include <QJsonObject>
#include <QJsonValue>
#include <QList>
#include <QSharedPointer>
#include <QStringList>
#include <optional>
#include "JellyfinQt/dto/activitylogentry.h"
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class ActivityLogEntryQueryResult {
public:
ActivityLogEntryQueryResult();
ActivityLogEntryQueryResult(const ActivityLogEntryQueryResult &other);
/**
* Replaces the data being hold by this class with that of the other.
*/
void replaceData(ActivityLogEntryQueryResult &other);
static ActivityLogEntryQueryResult fromJson(QJsonObject source);
void setFromJson(QJsonObject source);
QJsonObject toJson();
// Properties
/**
* @brief Gets or sets the items.
*/
QList<QSharedPointer<ActivityLogEntry>> items() const;
/**
* @brief Gets or sets the items.
*/
void setItems(QList<QSharedPointer<ActivityLogEntry>> newItems);
bool itemsNull() const;
void setItemsNull();
/**
* @brief The total number of records available.
*/
qint32 totalRecordCount() const;
/**
* @brief The total number of records available.
*/
void setTotalRecordCount(qint32 newTotalRecordCount);
/**
* @brief The index of the first record in Items.
*/
qint32 startIndex() const;
/**
* @brief The index of the first record in Items.
*/
void setStartIndex(qint32 newStartIndex);
protected:
QList<QSharedPointer<ActivityLogEntry>> m_items;
qint32 m_totalRecordCount;
qint32 m_startIndex;
};
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_ACTIVITYLOGENTRYQUERYRESULT_H

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.
*/
#ifndef JELLYFIN_DTO_ADDVIRTUALFOLDERDTO_H
#define JELLYFIN_DTO_ADDVIRTUALFOLDERDTO_H
#include <QJsonObject>
#include <QJsonValue>
#include <QSharedPointer>
#include <optional>
#include "JellyfinQt/dto/libraryoptions.h"
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class AddVirtualFolderDto {
public:
AddVirtualFolderDto();
AddVirtualFolderDto(const AddVirtualFolderDto &other);
/**
* Replaces the data being hold by this class with that of the other.
*/
void replaceData(AddVirtualFolderDto &other);
static AddVirtualFolderDto fromJson(QJsonObject source);
void setFromJson(QJsonObject source);
QJsonObject toJson();
// Properties
QSharedPointer<LibraryOptions> libraryOptions() const;
void setLibraryOptions(QSharedPointer<LibraryOptions> newLibraryOptions);
protected:
QSharedPointer<LibraryOptions> m_libraryOptions = nullptr;
};
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_ADDVIRTUALFOLDERDTO_H

View file

@ -0,0 +1,205 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_ALBUMINFO_H
#define JELLYFIN_DTO_ALBUMINFO_H
#include <QDateTime>
#include <QJsonObject>
#include <QJsonValue>
#include <QList>
#include <QSharedPointer>
#include <QString>
#include <QStringList>
#include <optional>
#include "JellyfinQt/dto/songinfo.h"
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class AlbumInfo {
public:
AlbumInfo();
AlbumInfo(const AlbumInfo &other);
/**
* Replaces the data being hold by this class with that of the other.
*/
void replaceData(AlbumInfo &other);
static AlbumInfo fromJson(QJsonObject source);
void setFromJson(QJsonObject source);
QJsonObject toJson();
// Properties
/**
* @brief Gets or sets the name.
*/
QString name() const;
/**
* @brief Gets or sets the name.
*/
void setName(QString newName);
bool nameNull() const;
void setNameNull();
/**
* @brief Gets or sets the path.
*/
QString path() const;
/**
* @brief Gets or sets the path.
*/
void setPath(QString newPath);
bool pathNull() const;
void setPathNull();
/**
* @brief Gets or sets the metadata language.
*/
QString metadataLanguage() const;
/**
* @brief Gets or sets the metadata language.
*/
void setMetadataLanguage(QString newMetadataLanguage);
bool metadataLanguageNull() const;
void setMetadataLanguageNull();
/**
* @brief Gets or sets the metadata country code.
*/
QString metadataCountryCode() const;
/**
* @brief Gets or sets the metadata country code.
*/
void setMetadataCountryCode(QString newMetadataCountryCode);
bool metadataCountryCodeNull() const;
void setMetadataCountryCodeNull();
/**
* @brief Gets or sets the provider ids.
*/
std::optional<QJsonObject> providerIds() const;
/**
* @brief Gets or sets the provider ids.
*/
void setProviderIds(std::optional<QJsonObject> newProviderIds);
bool providerIdsNull() const;
void setProviderIdsNull();
/**
* @brief Gets or sets the year.
*/
std::optional<qint32> year() const;
/**
* @brief Gets or sets the year.
*/
void setYear(std::optional<qint32> newYear);
bool yearNull() const;
void setYearNull();
std::optional<qint32> indexNumber() const;
void setIndexNumber(std::optional<qint32> newIndexNumber);
bool indexNumberNull() const;
void setIndexNumberNull();
std::optional<qint32> parentIndexNumber() const;
void setParentIndexNumber(std::optional<qint32> newParentIndexNumber);
bool parentIndexNumberNull() const;
void setParentIndexNumberNull();
QDateTime premiereDate() const;
void setPremiereDate(QDateTime newPremiereDate);
bool premiereDateNull() const;
void setPremiereDateNull();
bool isAutomated() const;
void setIsAutomated(bool newIsAutomated);
/**
* @brief Gets or sets the album artist.
*/
QStringList albumArtists() const;
/**
* @brief Gets or sets the album artist.
*/
void setAlbumArtists(QStringList newAlbumArtists);
bool albumArtistsNull() const;
void setAlbumArtistsNull();
/**
* @brief Gets or sets the artist provider ids.
*/
std::optional<QJsonObject> artistProviderIds() const;
/**
* @brief Gets or sets the artist provider ids.
*/
void setArtistProviderIds(std::optional<QJsonObject> newArtistProviderIds);
bool artistProviderIdsNull() const;
void setArtistProviderIdsNull();
QList<QSharedPointer<SongInfo>> songInfos() const;
void setSongInfos(QList<QSharedPointer<SongInfo>> newSongInfos);
bool songInfosNull() const;
void setSongInfosNull();
protected:
QString m_name;
QString m_path;
QString m_metadataLanguage;
QString m_metadataCountryCode;
std::optional<QJsonObject> m_providerIds = std::nullopt;
std::optional<qint32> m_year = std::nullopt;
std::optional<qint32> m_indexNumber = std::nullopt;
std::optional<qint32> m_parentIndexNumber = std::nullopt;
QDateTime m_premiereDate;
bool m_isAutomated;
QStringList m_albumArtists;
std::optional<QJsonObject> m_artistProviderIds = std::nullopt;
QList<QSharedPointer<SongInfo>> m_songInfos;
};
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_ALBUMINFO_H

View file

@ -0,0 +1,102 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_ALBUMINFOREMOTESEARCHQUERY_H
#define JELLYFIN_DTO_ALBUMINFOREMOTESEARCHQUERY_H
#include <QJsonObject>
#include <QJsonValue>
#include <QSharedPointer>
#include <QString>
#include <optional>
#include "JellyfinQt/dto/albuminfo.h"
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class AlbumInfoRemoteSearchQuery {
public:
AlbumInfoRemoteSearchQuery();
AlbumInfoRemoteSearchQuery(const AlbumInfoRemoteSearchQuery &other);
/**
* Replaces the data being hold by this class with that of the other.
*/
void replaceData(AlbumInfoRemoteSearchQuery &other);
static AlbumInfoRemoteSearchQuery fromJson(QJsonObject source);
void setFromJson(QJsonObject source);
QJsonObject toJson();
// Properties
QSharedPointer<AlbumInfo> searchInfo() const;
void setSearchInfo(QSharedPointer<AlbumInfo> newSearchInfo);
QString itemId() const;
void setItemId(QString newItemId);
/**
* @brief Will only search within the given provider when set.
*/
QString searchProviderName() const;
/**
* @brief Will only search within the given provider when set.
*/
void setSearchProviderName(QString newSearchProviderName);
bool searchProviderNameNull() const;
void setSearchProviderNameNull();
/**
* @brief Gets or sets a value indicating whether disabled providers should be included.
*/
bool includeDisabledProviders() const;
/**
* @brief Gets or sets a value indicating whether disabled providers should be included.
*/
void setIncludeDisabledProviders(bool newIncludeDisabledProviders);
protected:
QSharedPointer<AlbumInfo> m_searchInfo = nullptr;
QString m_itemId;
QString m_searchProviderName;
bool m_includeDisabledProviders;
};
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_ALBUMINFOREMOTESEARCHQUERY_H

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.
*/
#ifndef JELLYFIN_DTO_ALLTHEMEMEDIARESULT_H
#define JELLYFIN_DTO_ALLTHEMEMEDIARESULT_H
#include <QJsonObject>
#include <QJsonValue>
#include <QSharedPointer>
#include <optional>
#include "JellyfinQt/dto/thememediaresult.h"
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class AllThemeMediaResult {
public:
AllThemeMediaResult();
AllThemeMediaResult(const AllThemeMediaResult &other);
/**
* Replaces the data being hold by this class with that of the other.
*/
void replaceData(AllThemeMediaResult &other);
static AllThemeMediaResult fromJson(QJsonObject source);
void setFromJson(QJsonObject source);
QJsonObject toJson();
// Properties
QSharedPointer<ThemeMediaResult> themeVideosResult() const;
void setThemeVideosResult(QSharedPointer<ThemeMediaResult> newThemeVideosResult);
QSharedPointer<ThemeMediaResult> themeSongsResult() const;
void setThemeSongsResult(QSharedPointer<ThemeMediaResult> newThemeSongsResult);
QSharedPointer<ThemeMediaResult> soundtrackSongsResult() const;
void setSoundtrackSongsResult(QSharedPointer<ThemeMediaResult> newSoundtrackSongsResult);
protected:
QSharedPointer<ThemeMediaResult> m_themeVideosResult = nullptr;
QSharedPointer<ThemeMediaResult> m_themeSongsResult = nullptr;
QSharedPointer<ThemeMediaResult> m_soundtrackSongsResult = nullptr;
};
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_ALLTHEMEMEDIARESULT_H

View file

@ -0,0 +1,63 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_ARCHITECTURE_H
#define JELLYFIN_DTO_ARCHITECTURE_H
#include <QJsonValue>
#include <QObject>
#include <QString>
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class ArchitectureClass {
Q_GADGET
public:
enum Value {
EnumNotSet,
X86,
X64,
Arm,
Arm64,
Wasm,
};
Q_ENUM(Value)
private:
explicit ArchitectureClass();
};
typedef ArchitectureClass::Value Architecture;
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_ARCHITECTURE_H

View file

@ -0,0 +1,181 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_ARTISTINFO_H
#define JELLYFIN_DTO_ARTISTINFO_H
#include <QDateTime>
#include <QJsonObject>
#include <QJsonValue>
#include <QList>
#include <QSharedPointer>
#include <QString>
#include <QStringList>
#include <optional>
#include "JellyfinQt/dto/songinfo.h"
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class ArtistInfo {
public:
ArtistInfo();
ArtistInfo(const ArtistInfo &other);
/**
* Replaces the data being hold by this class with that of the other.
*/
void replaceData(ArtistInfo &other);
static ArtistInfo fromJson(QJsonObject source);
void setFromJson(QJsonObject source);
QJsonObject toJson();
// Properties
/**
* @brief Gets or sets the name.
*/
QString name() const;
/**
* @brief Gets or sets the name.
*/
void setName(QString newName);
bool nameNull() const;
void setNameNull();
/**
* @brief Gets or sets the path.
*/
QString path() const;
/**
* @brief Gets or sets the path.
*/
void setPath(QString newPath);
bool pathNull() const;
void setPathNull();
/**
* @brief Gets or sets the metadata language.
*/
QString metadataLanguage() const;
/**
* @brief Gets or sets the metadata language.
*/
void setMetadataLanguage(QString newMetadataLanguage);
bool metadataLanguageNull() const;
void setMetadataLanguageNull();
/**
* @brief Gets or sets the metadata country code.
*/
QString metadataCountryCode() const;
/**
* @brief Gets or sets the metadata country code.
*/
void setMetadataCountryCode(QString newMetadataCountryCode);
bool metadataCountryCodeNull() const;
void setMetadataCountryCodeNull();
/**
* @brief Gets or sets the provider ids.
*/
std::optional<QJsonObject> providerIds() const;
/**
* @brief Gets or sets the provider ids.
*/
void setProviderIds(std::optional<QJsonObject> newProviderIds);
bool providerIdsNull() const;
void setProviderIdsNull();
/**
* @brief Gets or sets the year.
*/
std::optional<qint32> year() const;
/**
* @brief Gets or sets the year.
*/
void setYear(std::optional<qint32> newYear);
bool yearNull() const;
void setYearNull();
std::optional<qint32> indexNumber() const;
void setIndexNumber(std::optional<qint32> newIndexNumber);
bool indexNumberNull() const;
void setIndexNumberNull();
std::optional<qint32> parentIndexNumber() const;
void setParentIndexNumber(std::optional<qint32> newParentIndexNumber);
bool parentIndexNumberNull() const;
void setParentIndexNumberNull();
QDateTime premiereDate() const;
void setPremiereDate(QDateTime newPremiereDate);
bool premiereDateNull() const;
void setPremiereDateNull();
bool isAutomated() const;
void setIsAutomated(bool newIsAutomated);
QList<QSharedPointer<SongInfo>> songInfos() const;
void setSongInfos(QList<QSharedPointer<SongInfo>> newSongInfos);
bool songInfosNull() const;
void setSongInfosNull();
protected:
QString m_name;
QString m_path;
QString m_metadataLanguage;
QString m_metadataCountryCode;
std::optional<QJsonObject> m_providerIds = std::nullopt;
std::optional<qint32> m_year = std::nullopt;
std::optional<qint32> m_indexNumber = std::nullopt;
std::optional<qint32> m_parentIndexNumber = std::nullopt;
QDateTime m_premiereDate;
bool m_isAutomated;
QList<QSharedPointer<SongInfo>> m_songInfos;
};
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_ARTISTINFO_H

View file

@ -0,0 +1,102 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_ARTISTINFOREMOTESEARCHQUERY_H
#define JELLYFIN_DTO_ARTISTINFOREMOTESEARCHQUERY_H
#include <QJsonObject>
#include <QJsonValue>
#include <QSharedPointer>
#include <QString>
#include <optional>
#include "JellyfinQt/dto/artistinfo.h"
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class ArtistInfoRemoteSearchQuery {
public:
ArtistInfoRemoteSearchQuery();
ArtistInfoRemoteSearchQuery(const ArtistInfoRemoteSearchQuery &other);
/**
* Replaces the data being hold by this class with that of the other.
*/
void replaceData(ArtistInfoRemoteSearchQuery &other);
static ArtistInfoRemoteSearchQuery fromJson(QJsonObject source);
void setFromJson(QJsonObject source);
QJsonObject toJson();
// Properties
QSharedPointer<ArtistInfo> searchInfo() const;
void setSearchInfo(QSharedPointer<ArtistInfo> newSearchInfo);
QString itemId() const;
void setItemId(QString newItemId);
/**
* @brief Will only search within the given provider when set.
*/
QString searchProviderName() const;
/**
* @brief Will only search within the given provider when set.
*/
void setSearchProviderName(QString newSearchProviderName);
bool searchProviderNameNull() const;
void setSearchProviderNameNull();
/**
* @brief Gets or sets a value indicating whether disabled providers should be included.
*/
bool includeDisabledProviders() const;
/**
* @brief Gets or sets a value indicating whether disabled providers should be included.
*/
void setIncludeDisabledProviders(bool newIncludeDisabledProviders);
protected:
QSharedPointer<ArtistInfo> m_searchInfo = nullptr;
QString m_itemId;
QString m_searchProviderName;
bool m_includeDisabledProviders;
};
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_ARTISTINFOREMOTESEARCHQUERY_H

View file

@ -0,0 +1,102 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_AUTHENTICATEUSERBYNAME_H
#define JELLYFIN_DTO_AUTHENTICATEUSERBYNAME_H
#include <QJsonObject>
#include <QJsonValue>
#include <QString>
#include <optional>
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class AuthenticateUserByName {
public:
AuthenticateUserByName();
AuthenticateUserByName(const AuthenticateUserByName &other);
/**
* Replaces the data being hold by this class with that of the other.
*/
void replaceData(AuthenticateUserByName &other);
static AuthenticateUserByName fromJson(QJsonObject source);
void setFromJson(QJsonObject source);
QJsonObject toJson();
// Properties
/**
* @brief Gets or sets the username.
*/
QString username() const;
/**
* @brief Gets or sets the username.
*/
void setUsername(QString newUsername);
bool usernameNull() const;
void setUsernameNull();
/**
* @brief Gets or sets the plain text password.
*/
QString pw() const;
/**
* @brief Gets or sets the plain text password.
*/
void setPw(QString newPw);
bool pwNull() const;
void setPwNull();
/**
* @brief Gets or sets the sha1-hashed password.
*/
QString password() const;
/**
* @brief Gets or sets the sha1-hashed password.
*/
void setPassword(QString newPassword);
bool passwordNull() const;
void setPasswordNull();
protected:
QString m_username;
QString m_pw;
QString m_password;
};
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_AUTHENTICATEUSERBYNAME_H

View file

@ -0,0 +1,193 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_AUTHENTICATIONINFO_H
#define JELLYFIN_DTO_AUTHENTICATIONINFO_H
#include <QDateTime>
#include <QJsonObject>
#include <QJsonValue>
#include <QString>
#include <optional>
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class AuthenticationInfo {
public:
AuthenticationInfo();
AuthenticationInfo(const AuthenticationInfo &other);
/**
* Replaces the data being hold by this class with that of the other.
*/
void replaceData(AuthenticationInfo &other);
static AuthenticationInfo fromJson(QJsonObject source);
void setFromJson(QJsonObject source);
QJsonObject toJson();
// Properties
/**
* @brief Gets or sets the identifier.
*/
qint64 jellyfinId() const;
/**
* @brief Gets or sets the identifier.
*/
void setJellyfinId(qint64 newJellyfinId);
/**
* @brief Gets or sets the access token.
*/
QString accessToken() const;
/**
* @brief Gets or sets the access token.
*/
void setAccessToken(QString newAccessToken);
bool accessTokenNull() const;
void setAccessTokenNull();
/**
* @brief Gets or sets the device identifier.
*/
QString deviceId() const;
/**
* @brief Gets or sets the device identifier.
*/
void setDeviceId(QString newDeviceId);
bool deviceIdNull() const;
void setDeviceIdNull();
/**
* @brief Gets or sets the name of the application.
*/
QString appName() const;
/**
* @brief Gets or sets the name of the application.
*/
void setAppName(QString newAppName);
bool appNameNull() const;
void setAppNameNull();
/**
* @brief Gets or sets the application version.
*/
QString appVersion() const;
/**
* @brief Gets or sets the application version.
*/
void setAppVersion(QString newAppVersion);
bool appVersionNull() const;
void setAppVersionNull();
/**
* @brief Gets or sets the name of the device.
*/
QString deviceName() const;
/**
* @brief Gets or sets the name of the device.
*/
void setDeviceName(QString newDeviceName);
bool deviceNameNull() const;
void setDeviceNameNull();
/**
* @brief Gets or sets the user identifier.
*/
QString userId() const;
/**
* @brief Gets or sets the user identifier.
*/
void setUserId(QString newUserId);
/**
* @brief Gets or sets a value indicating whether this instance is active.
*/
bool isActive() const;
/**
* @brief Gets or sets a value indicating whether this instance is active.
*/
void setIsActive(bool newIsActive);
/**
* @brief Gets or sets the date created.
*/
QDateTime dateCreated() const;
/**
* @brief Gets or sets the date created.
*/
void setDateCreated(QDateTime newDateCreated);
/**
* @brief Gets or sets the date revoked.
*/
QDateTime dateRevoked() const;
/**
* @brief Gets or sets the date revoked.
*/
void setDateRevoked(QDateTime newDateRevoked);
bool dateRevokedNull() const;
void setDateRevokedNull();
QDateTime dateLastActivity() const;
void setDateLastActivity(QDateTime newDateLastActivity);
QString userName() const;
void setUserName(QString newUserName);
bool userNameNull() const;
void setUserNameNull();
protected:
qint64 m_jellyfinId;
QString m_accessToken;
QString m_deviceId;
QString m_appName;
QString m_appVersion;
QString m_deviceName;
QString m_userId;
bool m_isActive;
QDateTime m_dateCreated;
QDateTime m_dateRevoked;
QDateTime m_dateLastActivity;
QString m_userName;
};
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_AUTHENTICATIONINFO_H

View file

@ -0,0 +1,101 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_AUTHENTICATIONINFOQUERYRESULT_H
#define JELLYFIN_DTO_AUTHENTICATIONINFOQUERYRESULT_H
#include <QJsonObject>
#include <QJsonValue>
#include <QList>
#include <QSharedPointer>
#include <QStringList>
#include <optional>
#include "JellyfinQt/dto/authenticationinfo.h"
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class AuthenticationInfoQueryResult {
public:
AuthenticationInfoQueryResult();
AuthenticationInfoQueryResult(const AuthenticationInfoQueryResult &other);
/**
* Replaces the data being hold by this class with that of the other.
*/
void replaceData(AuthenticationInfoQueryResult &other);
static AuthenticationInfoQueryResult fromJson(QJsonObject source);
void setFromJson(QJsonObject source);
QJsonObject toJson();
// Properties
/**
* @brief Gets or sets the items.
*/
QList<QSharedPointer<AuthenticationInfo>> items() const;
/**
* @brief Gets or sets the items.
*/
void setItems(QList<QSharedPointer<AuthenticationInfo>> newItems);
bool itemsNull() const;
void setItemsNull();
/**
* @brief The total number of records available.
*/
qint32 totalRecordCount() const;
/**
* @brief The total number of records available.
*/
void setTotalRecordCount(qint32 newTotalRecordCount);
/**
* @brief The index of the first record in Items.
*/
qint32 startIndex() const;
/**
* @brief The index of the first record in Items.
*/
void setStartIndex(qint32 newStartIndex);
protected:
QList<QSharedPointer<AuthenticationInfo>> m_items;
qint32 m_totalRecordCount;
qint32 m_startIndex;
};
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_AUTHENTICATIONINFOQUERYRESULT_H

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.
*/
#ifndef JELLYFIN_DTO_AUTHENTICATIONRESULT_H
#define JELLYFIN_DTO_AUTHENTICATIONRESULT_H
#include <QJsonObject>
#include <QJsonValue>
#include <QSharedPointer>
#include <QString>
#include <optional>
#include "JellyfinQt/dto/sessioninfo.h"
#include "JellyfinQt/dto/userdto.h"
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class AuthenticationResult {
public:
AuthenticationResult();
AuthenticationResult(const AuthenticationResult &other);
/**
* Replaces the data being hold by this class with that of the other.
*/
void replaceData(AuthenticationResult &other);
static AuthenticationResult fromJson(QJsonObject source);
void setFromJson(QJsonObject source);
QJsonObject toJson();
// Properties
QSharedPointer<UserDto> user() const;
void setUser(QSharedPointer<UserDto> newUser);
QSharedPointer<SessionInfo> sessionInfo() const;
void setSessionInfo(QSharedPointer<SessionInfo> newSessionInfo);
QString accessToken() const;
void setAccessToken(QString newAccessToken);
bool accessTokenNull() const;
void setAccessTokenNull();
QString serverId() const;
void setServerId(QString newServerId);
bool serverIdNull() const;
void setServerIdNull();
protected:
QSharedPointer<UserDto> m_user = nullptr;
QSharedPointer<SessionInfo> m_sessionInfo = nullptr;
QString m_accessToken;
QString m_serverId;
};
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_AUTHENTICATIONRESULT_H

View file

@ -0,0 +1,151 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_BASEITEM_H
#define JELLYFIN_DTO_BASEITEM_H
#include <QDateTime>
#include <QJsonObject>
#include <QJsonValue>
#include <QList>
#include <QSharedPointer>
#include <QString>
#include <QStringList>
#include <optional>
#include "JellyfinQt/dto/mediaurl.h"
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class BaseItem {
public:
BaseItem();
BaseItem(const BaseItem &other);
/**
* Replaces the data being hold by this class with that of the other.
*/
void replaceData(BaseItem &other);
static BaseItem fromJson(QJsonObject source);
void setFromJson(QJsonObject source);
QJsonObject toJson();
// Properties
std::optional<qint64> size() const;
void setSize(std::optional<qint64> newSize);
bool sizeNull() const;
void setSizeNull();
QString container() const;
void setContainer(QString newContainer);
bool containerNull() const;
void setContainerNull();
QDateTime dateLastSaved() const;
void setDateLastSaved(QDateTime newDateLastSaved);
/**
* @brief Gets or sets the remote trailers.
*/
QList<QSharedPointer<MediaUrl>> remoteTrailers() const;
/**
* @brief Gets or sets the remote trailers.
*/
void setRemoteTrailers(QList<QSharedPointer<MediaUrl>> newRemoteTrailers);
bool remoteTrailersNull() const;
void setRemoteTrailersNull();
bool isHD() const;
void setIsHD(bool newIsHD);
bool isShortcut() const;
void setIsShortcut(bool newIsShortcut);
QString shortcutPath() const;
void setShortcutPath(QString newShortcutPath);
bool shortcutPathNull() const;
void setShortcutPathNull();
qint32 width() const;
void setWidth(qint32 newWidth);
qint32 height() const;
void setHeight(qint32 newHeight);
QStringList extraIds() const;
void setExtraIds(QStringList newExtraIds);
bool extraIdsNull() const;
void setExtraIdsNull();
bool supportsExternalTransfer() const;
void setSupportsExternalTransfer(bool newSupportsExternalTransfer);
protected:
std::optional<qint64> m_size = std::nullopt;
QString m_container;
QDateTime m_dateLastSaved;
QList<QSharedPointer<MediaUrl>> m_remoteTrailers;
bool m_isHD;
bool m_isShortcut;
QString m_shortcutPath;
qint32 m_width;
qint32 m_height;
QStringList m_extraIds;
bool m_supportsExternalTransfer;
};
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_BASEITEM_H

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,101 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_BASEITEMDTOQUERYRESULT_H
#define JELLYFIN_DTO_BASEITEMDTOQUERYRESULT_H
#include <QJsonObject>
#include <QJsonValue>
#include <QList>
#include <QSharedPointer>
#include <QStringList>
#include <optional>
#include "JellyfinQt/dto/baseitemdto.h"
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class BaseItemDtoQueryResult {
public:
BaseItemDtoQueryResult();
BaseItemDtoQueryResult(const BaseItemDtoQueryResult &other);
/**
* Replaces the data being hold by this class with that of the other.
*/
void replaceData(BaseItemDtoQueryResult &other);
static BaseItemDtoQueryResult fromJson(QJsonObject source);
void setFromJson(QJsonObject source);
QJsonObject toJson();
// Properties
/**
* @brief Gets or sets the items.
*/
QList<QSharedPointer<BaseItemDto>> items() const;
/**
* @brief Gets or sets the items.
*/
void setItems(QList<QSharedPointer<BaseItemDto>> newItems);
bool itemsNull() const;
void setItemsNull();
/**
* @brief The total number of records available.
*/
qint32 totalRecordCount() const;
/**
* @brief The total number of records available.
*/
void setTotalRecordCount(qint32 newTotalRecordCount);
/**
* @brief The index of the first record in Items.
*/
qint32 startIndex() const;
/**
* @brief The index of the first record in Items.
*/
void setStartIndex(qint32 newStartIndex);
protected:
QList<QSharedPointer<BaseItemDto>> m_items;
qint32 m_totalRecordCount;
qint32 m_startIndex;
};
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_BASEITEMDTOQUERYRESULT_H

View file

@ -0,0 +1,138 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_BASEITEMPERSON_H
#define JELLYFIN_DTO_BASEITEMPERSON_H
#include <QJsonObject>
#include <QJsonValue>
#include <QString>
#include <optional>
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class BaseItemPerson {
public:
BaseItemPerson();
BaseItemPerson(const BaseItemPerson &other);
/**
* Replaces the data being hold by this class with that of the other.
*/
void replaceData(BaseItemPerson &other);
static BaseItemPerson fromJson(QJsonObject source);
void setFromJson(QJsonObject source);
QJsonObject toJson();
// Properties
/**
* @brief Gets or sets the name.
*/
QString name() const;
/**
* @brief Gets or sets the name.
*/
void setName(QString newName);
bool nameNull() const;
void setNameNull();
/**
* @brief Gets or sets the identifier.
*/
QString jellyfinId() const;
/**
* @brief Gets or sets the identifier.
*/
void setJellyfinId(QString newJellyfinId);
bool jellyfinIdNull() const;
void setJellyfinIdNull();
/**
* @brief Gets or sets the role.
*/
QString role() const;
/**
* @brief Gets or sets the role.
*/
void setRole(QString newRole);
bool roleNull() const;
void setRoleNull();
/**
* @brief Gets or sets the type.
*/
QString type() const;
/**
* @brief Gets or sets the type.
*/
void setType(QString newType);
bool typeNull() const;
void setTypeNull();
/**
* @brief Gets or sets the primary image tag.
*/
QString primaryImageTag() const;
/**
* @brief Gets or sets the primary image tag.
*/
void setPrimaryImageTag(QString newPrimaryImageTag);
bool primaryImageTagNull() const;
void setPrimaryImageTagNull();
/**
* @brief Gets or sets the primary image blurhash.
*/
std::optional<QJsonObject> imageBlurHashes() const;
/**
* @brief Gets or sets the primary image blurhash.
*/
void setImageBlurHashes(std::optional<QJsonObject> newImageBlurHashes);
bool imageBlurHashesNull() const;
void setImageBlurHashesNull();
protected:
QString m_name;
QString m_jellyfinId;
QString m_role;
QString m_type;
QString m_primaryImageTag;
std::optional<QJsonObject> m_imageBlurHashes = std::nullopt;
};
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_BASEITEMPERSON_H

View file

@ -0,0 +1,177 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_BOOKINFO_H
#define JELLYFIN_DTO_BOOKINFO_H
#include <QDateTime>
#include <QJsonObject>
#include <QJsonValue>
#include <QString>
#include <optional>
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class BookInfo {
public:
BookInfo();
BookInfo(const BookInfo &other);
/**
* Replaces the data being hold by this class with that of the other.
*/
void replaceData(BookInfo &other);
static BookInfo fromJson(QJsonObject source);
void setFromJson(QJsonObject source);
QJsonObject toJson();
// Properties
/**
* @brief Gets or sets the name.
*/
QString name() const;
/**
* @brief Gets or sets the name.
*/
void setName(QString newName);
bool nameNull() const;
void setNameNull();
/**
* @brief Gets or sets the path.
*/
QString path() const;
/**
* @brief Gets or sets the path.
*/
void setPath(QString newPath);
bool pathNull() const;
void setPathNull();
/**
* @brief Gets or sets the metadata language.
*/
QString metadataLanguage() const;
/**
* @brief Gets or sets the metadata language.
*/
void setMetadataLanguage(QString newMetadataLanguage);
bool metadataLanguageNull() const;
void setMetadataLanguageNull();
/**
* @brief Gets or sets the metadata country code.
*/
QString metadataCountryCode() const;
/**
* @brief Gets or sets the metadata country code.
*/
void setMetadataCountryCode(QString newMetadataCountryCode);
bool metadataCountryCodeNull() const;
void setMetadataCountryCodeNull();
/**
* @brief Gets or sets the provider ids.
*/
std::optional<QJsonObject> providerIds() const;
/**
* @brief Gets or sets the provider ids.
*/
void setProviderIds(std::optional<QJsonObject> newProviderIds);
bool providerIdsNull() const;
void setProviderIdsNull();
/**
* @brief Gets or sets the year.
*/
std::optional<qint32> year() const;
/**
* @brief Gets or sets the year.
*/
void setYear(std::optional<qint32> newYear);
bool yearNull() const;
void setYearNull();
std::optional<qint32> indexNumber() const;
void setIndexNumber(std::optional<qint32> newIndexNumber);
bool indexNumberNull() const;
void setIndexNumberNull();
std::optional<qint32> parentIndexNumber() const;
void setParentIndexNumber(std::optional<qint32> newParentIndexNumber);
bool parentIndexNumberNull() const;
void setParentIndexNumberNull();
QDateTime premiereDate() const;
void setPremiereDate(QDateTime newPremiereDate);
bool premiereDateNull() const;
void setPremiereDateNull();
bool isAutomated() const;
void setIsAutomated(bool newIsAutomated);
QString seriesName() const;
void setSeriesName(QString newSeriesName);
bool seriesNameNull() const;
void setSeriesNameNull();
protected:
QString m_name;
QString m_path;
QString m_metadataLanguage;
QString m_metadataCountryCode;
std::optional<QJsonObject> m_providerIds = std::nullopt;
std::optional<qint32> m_year = std::nullopt;
std::optional<qint32> m_indexNumber = std::nullopt;
std::optional<qint32> m_parentIndexNumber = std::nullopt;
QDateTime m_premiereDate;
bool m_isAutomated;
QString m_seriesName;
};
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_BOOKINFO_H

View file

@ -0,0 +1,102 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_BOOKINFOREMOTESEARCHQUERY_H
#define JELLYFIN_DTO_BOOKINFOREMOTESEARCHQUERY_H
#include <QJsonObject>
#include <QJsonValue>
#include <QSharedPointer>
#include <QString>
#include <optional>
#include "JellyfinQt/dto/bookinfo.h"
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class BookInfoRemoteSearchQuery {
public:
BookInfoRemoteSearchQuery();
BookInfoRemoteSearchQuery(const BookInfoRemoteSearchQuery &other);
/**
* Replaces the data being hold by this class with that of the other.
*/
void replaceData(BookInfoRemoteSearchQuery &other);
static BookInfoRemoteSearchQuery fromJson(QJsonObject source);
void setFromJson(QJsonObject source);
QJsonObject toJson();
// Properties
QSharedPointer<BookInfo> searchInfo() const;
void setSearchInfo(QSharedPointer<BookInfo> newSearchInfo);
QString itemId() const;
void setItemId(QString newItemId);
/**
* @brief Will only search within the given provider when set.
*/
QString searchProviderName() const;
/**
* @brief Will only search within the given provider when set.
*/
void setSearchProviderName(QString newSearchProviderName);
bool searchProviderNameNull() const;
void setSearchProviderNameNull();
/**
* @brief Gets or sets a value indicating whether disabled providers should be included.
*/
bool includeDisabledProviders() const;
/**
* @brief Gets or sets a value indicating whether disabled providers should be included.
*/
void setIncludeDisabledProviders(bool newIncludeDisabledProviders);
protected:
QSharedPointer<BookInfo> m_searchInfo = nullptr;
QString m_itemId;
QString m_searchProviderName;
bool m_includeDisabledProviders;
};
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_BOOKINFOREMOTESEARCHQUERY_H

View file

@ -0,0 +1,169 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_BOXSETINFO_H
#define JELLYFIN_DTO_BOXSETINFO_H
#include <QDateTime>
#include <QJsonObject>
#include <QJsonValue>
#include <QString>
#include <optional>
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class BoxSetInfo {
public:
BoxSetInfo();
BoxSetInfo(const BoxSetInfo &other);
/**
* Replaces the data being hold by this class with that of the other.
*/
void replaceData(BoxSetInfo &other);
static BoxSetInfo fromJson(QJsonObject source);
void setFromJson(QJsonObject source);
QJsonObject toJson();
// Properties
/**
* @brief Gets or sets the name.
*/
QString name() const;
/**
* @brief Gets or sets the name.
*/
void setName(QString newName);
bool nameNull() const;
void setNameNull();
/**
* @brief Gets or sets the path.
*/
QString path() const;
/**
* @brief Gets or sets the path.
*/
void setPath(QString newPath);
bool pathNull() const;
void setPathNull();
/**
* @brief Gets or sets the metadata language.
*/
QString metadataLanguage() const;
/**
* @brief Gets or sets the metadata language.
*/
void setMetadataLanguage(QString newMetadataLanguage);
bool metadataLanguageNull() const;
void setMetadataLanguageNull();
/**
* @brief Gets or sets the metadata country code.
*/
QString metadataCountryCode() const;
/**
* @brief Gets or sets the metadata country code.
*/
void setMetadataCountryCode(QString newMetadataCountryCode);
bool metadataCountryCodeNull() const;
void setMetadataCountryCodeNull();
/**
* @brief Gets or sets the provider ids.
*/
std::optional<QJsonObject> providerIds() const;
/**
* @brief Gets or sets the provider ids.
*/
void setProviderIds(std::optional<QJsonObject> newProviderIds);
bool providerIdsNull() const;
void setProviderIdsNull();
/**
* @brief Gets or sets the year.
*/
std::optional<qint32> year() const;
/**
* @brief Gets or sets the year.
*/
void setYear(std::optional<qint32> newYear);
bool yearNull() const;
void setYearNull();
std::optional<qint32> indexNumber() const;
void setIndexNumber(std::optional<qint32> newIndexNumber);
bool indexNumberNull() const;
void setIndexNumberNull();
std::optional<qint32> parentIndexNumber() const;
void setParentIndexNumber(std::optional<qint32> newParentIndexNumber);
bool parentIndexNumberNull() const;
void setParentIndexNumberNull();
QDateTime premiereDate() const;
void setPremiereDate(QDateTime newPremiereDate);
bool premiereDateNull() const;
void setPremiereDateNull();
bool isAutomated() const;
void setIsAutomated(bool newIsAutomated);
protected:
QString m_name;
QString m_path;
QString m_metadataLanguage;
QString m_metadataCountryCode;
std::optional<QJsonObject> m_providerIds = std::nullopt;
std::optional<qint32> m_year = std::nullopt;
std::optional<qint32> m_indexNumber = std::nullopt;
std::optional<qint32> m_parentIndexNumber = std::nullopt;
QDateTime m_premiereDate;
bool m_isAutomated;
};
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_BOXSETINFO_H

View file

@ -0,0 +1,102 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_BOXSETINFOREMOTESEARCHQUERY_H
#define JELLYFIN_DTO_BOXSETINFOREMOTESEARCHQUERY_H
#include <QJsonObject>
#include <QJsonValue>
#include <QSharedPointer>
#include <QString>
#include <optional>
#include "JellyfinQt/dto/boxsetinfo.h"
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class BoxSetInfoRemoteSearchQuery {
public:
BoxSetInfoRemoteSearchQuery();
BoxSetInfoRemoteSearchQuery(const BoxSetInfoRemoteSearchQuery &other);
/**
* Replaces the data being hold by this class with that of the other.
*/
void replaceData(BoxSetInfoRemoteSearchQuery &other);
static BoxSetInfoRemoteSearchQuery fromJson(QJsonObject source);
void setFromJson(QJsonObject source);
QJsonObject toJson();
// Properties
QSharedPointer<BoxSetInfo> searchInfo() const;
void setSearchInfo(QSharedPointer<BoxSetInfo> newSearchInfo);
QString itemId() const;
void setItemId(QString newItemId);
/**
* @brief Will only search within the given provider when set.
*/
QString searchProviderName() const;
/**
* @brief Will only search within the given provider when set.
*/
void setSearchProviderName(QString newSearchProviderName);
bool searchProviderNameNull() const;
void setSearchProviderNameNull();
/**
* @brief Gets or sets a value indicating whether disabled providers should be included.
*/
bool includeDisabledProviders() const;
/**
* @brief Gets or sets a value indicating whether disabled providers should be included.
*/
void setIncludeDisabledProviders(bool newIncludeDisabledProviders);
protected:
QSharedPointer<BoxSetInfo> m_searchInfo = nullptr;
QString m_itemId;
QString m_searchProviderName;
bool m_includeDisabledProviders;
};
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_BOXSETINFOREMOTESEARCHQUERY_H

View file

@ -0,0 +1,90 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_BRANDINGOPTIONS_H
#define JELLYFIN_DTO_BRANDINGOPTIONS_H
#include <QJsonObject>
#include <QJsonValue>
#include <QString>
#include <optional>
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class BrandingOptions {
public:
BrandingOptions();
BrandingOptions(const BrandingOptions &other);
/**
* Replaces the data being hold by this class with that of the other.
*/
void replaceData(BrandingOptions &other);
static BrandingOptions fromJson(QJsonObject source);
void setFromJson(QJsonObject source);
QJsonObject toJson();
// Properties
/**
* @brief Gets or sets the login disclaimer.
*/
QString loginDisclaimer() const;
/**
* @brief Gets or sets the login disclaimer.
*/
void setLoginDisclaimer(QString newLoginDisclaimer);
bool loginDisclaimerNull() const;
void setLoginDisclaimerNull();
/**
* @brief Gets or sets the custom CSS.
*/
QString customCss() const;
/**
* @brief Gets or sets the custom CSS.
*/
void setCustomCss(QString newCustomCss);
bool customCssNull() const;
void setCustomCssNull();
protected:
QString m_loginDisclaimer;
QString m_customCss;
};
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_BRANDINGOPTIONS_H

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.
*/
#ifndef JELLYFIN_DTO_BUFFERREQUESTDTO_H
#define JELLYFIN_DTO_BUFFERREQUESTDTO_H
#include <QDateTime>
#include <QJsonObject>
#include <QJsonValue>
#include <QString>
#include <optional>
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class BufferRequestDto {
public:
BufferRequestDto();
BufferRequestDto(const BufferRequestDto &other);
/**
* Replaces the data being hold by this class with that of the other.
*/
void replaceData(BufferRequestDto &other);
static BufferRequestDto fromJson(QJsonObject source);
void setFromJson(QJsonObject source);
QJsonObject toJson();
// Properties
/**
* @brief Gets or sets when the request has been made by the client.
*/
QDateTime when() const;
/**
* @brief Gets or sets when the request has been made by the client.
*/
void setWhen(QDateTime newWhen);
/**
* @brief Gets or sets the position ticks.
*/
qint64 positionTicks() const;
/**
* @brief Gets or sets the position ticks.
*/
void setPositionTicks(qint64 newPositionTicks);
/**
* @brief Gets or sets a value indicating whether the client playback is unpaused.
*/
bool isPlaying() const;
/**
* @brief Gets or sets a value indicating whether the client playback is unpaused.
*/
void setIsPlaying(bool newIsPlaying);
/**
* @brief Gets or sets the playlist item identifier of the playing item.
*/
QString playlistItemId() const;
/**
* @brief Gets or sets the playlist item identifier of the playing item.
*/
void setPlaylistItemId(QString newPlaylistItemId);
protected:
QDateTime m_when;
qint64 m_positionTicks;
bool m_isPlaying;
QString m_playlistItemId;
};
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_BUFFERREQUESTDTO_H

View file

@ -0,0 +1,205 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_CHANNELFEATURES_H
#define JELLYFIN_DTO_CHANNELFEATURES_H
#include <QJsonObject>
#include <QJsonValue>
#include <QList>
#include <QString>
#include <QStringList>
#include <optional>
#include "JellyfinQt/dto/channelitemsortfield.h"
#include "JellyfinQt/dto/channelmediacontenttype.h"
#include "JellyfinQt/dto/channelmediatype.h"
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class ChannelFeatures {
public:
ChannelFeatures();
ChannelFeatures(const ChannelFeatures &other);
/**
* Replaces the data being hold by this class with that of the other.
*/
void replaceData(ChannelFeatures &other);
static ChannelFeatures fromJson(QJsonObject source);
void setFromJson(QJsonObject source);
QJsonObject toJson();
// Properties
/**
* @brief Gets or sets the name.
*/
QString name() const;
/**
* @brief Gets or sets the name.
*/
void setName(QString newName);
bool nameNull() const;
void setNameNull();
/**
* @brief Gets or sets the identifier.
*/
QString jellyfinId() const;
/**
* @brief Gets or sets the identifier.
*/
void setJellyfinId(QString newJellyfinId);
bool jellyfinIdNull() const;
void setJellyfinIdNull();
/**
* @brief Gets or sets a value indicating whether this instance can search.
*/
bool canSearch() const;
/**
* @brief Gets or sets a value indicating whether this instance can search.
*/
void setCanSearch(bool newCanSearch);
/**
* @brief Gets or sets the media types.
*/
QList<ChannelMediaType> mediaTypes() const;
/**
* @brief Gets or sets the media types.
*/
void setMediaTypes(QList<ChannelMediaType> newMediaTypes);
bool mediaTypesNull() const;
void setMediaTypesNull();
/**
* @brief Gets or sets the content types.
*/
QList<ChannelMediaContentType> contentTypes() const;
/**
* @brief Gets or sets the content types.
*/
void setContentTypes(QList<ChannelMediaContentType> newContentTypes);
bool contentTypesNull() const;
void setContentTypesNull();
/**
* @brief Represents the maximum number of records the channel allows retrieving at a time.
*/
std::optional<qint32> maxPageSize() const;
/**
* @brief Represents the maximum number of records the channel allows retrieving at a time.
*/
void setMaxPageSize(std::optional<qint32> newMaxPageSize);
bool maxPageSizeNull() const;
void setMaxPageSizeNull();
/**
* @brief Gets or sets the automatic refresh levels.
*/
std::optional<qint32> autoRefreshLevels() const;
/**
* @brief Gets or sets the automatic refresh levels.
*/
void setAutoRefreshLevels(std::optional<qint32> newAutoRefreshLevels);
bool autoRefreshLevelsNull() const;
void setAutoRefreshLevelsNull();
/**
* @brief Gets or sets the default sort orders.
*/
QList<ChannelItemSortField> defaultSortFields() const;
/**
* @brief Gets or sets the default sort orders.
*/
void setDefaultSortFields(QList<ChannelItemSortField> newDefaultSortFields);
bool defaultSortFieldsNull() const;
void setDefaultSortFieldsNull();
/**
* @brief Indicates if a sort ascending/descending toggle is supported or not.
*/
bool supportsSortOrderToggle() const;
/**
* @brief Indicates if a sort ascending/descending toggle is supported or not.
*/
void setSupportsSortOrderToggle(bool newSupportsSortOrderToggle);
/**
* @brief Gets or sets a value indicating whether [supports latest media].
*/
bool supportsLatestMedia() const;
/**
* @brief Gets or sets a value indicating whether [supports latest media].
*/
void setSupportsLatestMedia(bool newSupportsLatestMedia);
/**
* @brief Gets or sets a value indicating whether this instance can filter.
*/
bool canFilter() const;
/**
* @brief Gets or sets a value indicating whether this instance can filter.
*/
void setCanFilter(bool newCanFilter);
/**
* @brief Gets or sets a value indicating whether [supports content downloading].
*/
bool supportsContentDownloading() const;
/**
* @brief Gets or sets a value indicating whether [supports content downloading].
*/
void setSupportsContentDownloading(bool newSupportsContentDownloading);
protected:
QString m_name;
QString m_jellyfinId;
bool m_canSearch;
QList<ChannelMediaType> m_mediaTypes;
QList<ChannelMediaContentType> m_contentTypes;
std::optional<qint32> m_maxPageSize = std::nullopt;
std::optional<qint32> m_autoRefreshLevels = std::nullopt;
QList<ChannelItemSortField> m_defaultSortFields;
bool m_supportsSortOrderToggle;
bool m_supportsLatestMedia;
bool m_canFilter;
bool m_supportsContentDownloading;
};
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_CHANNELFEATURES_H

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.
*/
#ifndef JELLYFIN_DTO_CHANNELITEMSORTFIELD_H
#define JELLYFIN_DTO_CHANNELITEMSORTFIELD_H
#include <QJsonValue>
#include <QObject>
#include <QString>
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class ChannelItemSortFieldClass {
Q_GADGET
public:
enum Value {
EnumNotSet,
Name,
CommunityRating,
PremiereDate,
DateCreated,
Runtime,
PlayCount,
CommunityPlayCount,
};
Q_ENUM(Value)
private:
explicit ChannelItemSortFieldClass();
};
typedef ChannelItemSortFieldClass::Value ChannelItemSortField;
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_CHANNELITEMSORTFIELD_H

View file

@ -0,0 +1,120 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_CHANNELMAPPINGOPTIONSDTO_H
#define JELLYFIN_DTO_CHANNELMAPPINGOPTIONSDTO_H
#include <QJsonObject>
#include <QJsonValue>
#include <QList>
#include <QSharedPointer>
#include <QString>
#include <QStringList>
#include <optional>
#include "JellyfinQt/dto/nameidpair.h"
#include "JellyfinQt/dto/namevaluepair.h"
#include "JellyfinQt/dto/tunerchannelmapping.h"
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class ChannelMappingOptionsDto {
public:
ChannelMappingOptionsDto();
ChannelMappingOptionsDto(const ChannelMappingOptionsDto &other);
/**
* Replaces the data being hold by this class with that of the other.
*/
void replaceData(ChannelMappingOptionsDto &other);
static ChannelMappingOptionsDto fromJson(QJsonObject source);
void setFromJson(QJsonObject source);
QJsonObject toJson();
// Properties
/**
* @brief Gets or sets list of tuner channels.
*/
QList<QSharedPointer<TunerChannelMapping>> tunerChannels() const;
/**
* @brief Gets or sets list of tuner channels.
*/
void setTunerChannels(QList<QSharedPointer<TunerChannelMapping>> newTunerChannels);
bool tunerChannelsNull() const;
void setTunerChannelsNull();
/**
* @brief Gets or sets list of provider channels.
*/
QList<QSharedPointer<NameIdPair>> providerChannels() const;
/**
* @brief Gets or sets list of provider channels.
*/
void setProviderChannels(QList<QSharedPointer<NameIdPair>> newProviderChannels);
bool providerChannelsNull() const;
void setProviderChannelsNull();
/**
* @brief Gets or sets list of mappings.
*/
QList<QSharedPointer<NameValuePair>> mappings() const;
/**
* @brief Gets or sets list of mappings.
*/
void setMappings(QList<QSharedPointer<NameValuePair>> newMappings);
bool mappingsNull() const;
void setMappingsNull();
/**
* @brief Gets or sets provider name.
*/
QString providerName() const;
/**
* @brief Gets or sets provider name.
*/
void setProviderName(QString newProviderName);
bool providerNameNull() const;
void setProviderNameNull();
protected:
QList<QSharedPointer<TunerChannelMapping>> m_tunerChannels;
QList<QSharedPointer<NameIdPair>> m_providerChannels;
QList<QSharedPointer<NameValuePair>> m_mappings;
QString m_providerName;
};
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_CHANNELMAPPINGOPTIONSDTO_H

View file

@ -0,0 +1,66 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_CHANNELMEDIACONTENTTYPE_H
#define JELLYFIN_DTO_CHANNELMEDIACONTENTTYPE_H
#include <QJsonValue>
#include <QObject>
#include <QString>
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class ChannelMediaContentTypeClass {
Q_GADGET
public:
enum Value {
EnumNotSet,
Clip,
Podcast,
Trailer,
Movie,
Episode,
Song,
MovieExtra,
TvExtra,
};
Q_ENUM(Value)
private:
explicit ChannelMediaContentTypeClass();
};
typedef ChannelMediaContentTypeClass::Value ChannelMediaContentType;
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_CHANNELMEDIACONTENTTYPE_H

View file

@ -0,0 +1,61 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_CHANNELMEDIATYPE_H
#define JELLYFIN_DTO_CHANNELMEDIATYPE_H
#include <QJsonValue>
#include <QObject>
#include <QString>
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class ChannelMediaTypeClass {
Q_GADGET
public:
enum Value {
EnumNotSet,
Audio,
Video,
Photo,
};
Q_ENUM(Value)
private:
explicit ChannelMediaTypeClass();
};
typedef ChannelMediaTypeClass::Value ChannelMediaType;
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_CHANNELMEDIATYPE_H

View file

@ -0,0 +1,60 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_CHANNELTYPE_H
#define JELLYFIN_DTO_CHANNELTYPE_H
#include <QJsonValue>
#include <QObject>
#include <QString>
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class ChannelTypeClass {
Q_GADGET
public:
enum Value {
EnumNotSet,
TV,
Radio,
};
Q_ENUM(Value)
private:
explicit ChannelTypeClass();
};
typedef ChannelTypeClass::Value ChannelType;
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_CHANNELTYPE_H

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.
*/
#ifndef JELLYFIN_DTO_CHAPTERINFO_H
#define JELLYFIN_DTO_CHAPTERINFO_H
#include <QDateTime>
#include <QJsonObject>
#include <QJsonValue>
#include <QString>
#include <optional>
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class ChapterInfo {
public:
ChapterInfo();
ChapterInfo(const ChapterInfo &other);
/**
* Replaces the data being hold by this class with that of the other.
*/
void replaceData(ChapterInfo &other);
static ChapterInfo fromJson(QJsonObject source);
void setFromJson(QJsonObject source);
QJsonObject toJson();
// Properties
/**
* @brief Gets or sets the start position ticks.
*/
qint64 startPositionTicks() const;
/**
* @brief Gets or sets the start position ticks.
*/
void setStartPositionTicks(qint64 newStartPositionTicks);
/**
* @brief Gets or sets the name.
*/
QString name() const;
/**
* @brief Gets or sets the name.
*/
void setName(QString newName);
bool nameNull() const;
void setNameNull();
/**
* @brief Gets or sets the image path.
*/
QString imagePath() const;
/**
* @brief Gets or sets the image path.
*/
void setImagePath(QString newImagePath);
bool imagePathNull() const;
void setImagePathNull();
QDateTime imageDateModified() const;
void setImageDateModified(QDateTime newImageDateModified);
QString imageTag() const;
void setImageTag(QString newImageTag);
bool imageTagNull() const;
void setImageTagNull();
protected:
qint64 m_startPositionTicks;
QString m_name;
QString m_imagePath;
QDateTime m_imageDateModified;
QString m_imageTag;
};
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_CHAPTERINFO_H

View file

@ -0,0 +1,141 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_CLIENTCAPABILITIES_H
#define JELLYFIN_DTO_CLIENTCAPABILITIES_H
#include <QJsonObject>
#include <QJsonValue>
#include <QList>
#include <QSharedPointer>
#include <QString>
#include <QStringList>
#include <optional>
#include "JellyfinQt/dto/deviceprofile.h"
#include "JellyfinQt/dto/generalcommandtype.h"
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class ClientCapabilities {
public:
ClientCapabilities();
ClientCapabilities(const ClientCapabilities &other);
/**
* Replaces the data being hold by this class with that of the other.
*/
void replaceData(ClientCapabilities &other);
static ClientCapabilities fromJson(QJsonObject source);
void setFromJson(QJsonObject source);
QJsonObject toJson();
// Properties
QStringList playableMediaTypes() const;
void setPlayableMediaTypes(QStringList newPlayableMediaTypes);
bool playableMediaTypesNull() const;
void setPlayableMediaTypesNull();
QList<GeneralCommandType> supportedCommands() const;
void setSupportedCommands(QList<GeneralCommandType> newSupportedCommands);
bool supportedCommandsNull() const;
void setSupportedCommandsNull();
bool supportsMediaControl() const;
void setSupportsMediaControl(bool newSupportsMediaControl);
bool supportsContentUploading() const;
void setSupportsContentUploading(bool newSupportsContentUploading);
QString messageCallbackUrl() const;
void setMessageCallbackUrl(QString newMessageCallbackUrl);
bool messageCallbackUrlNull() const;
void setMessageCallbackUrlNull();
bool supportsPersistentIdentifier() const;
void setSupportsPersistentIdentifier(bool newSupportsPersistentIdentifier);
bool supportsSync() const;
void setSupportsSync(bool newSupportsSync);
QSharedPointer<DeviceProfile> deviceProfile() const;
void setDeviceProfile(QSharedPointer<DeviceProfile> newDeviceProfile);
QString appStoreUrl() const;
void setAppStoreUrl(QString newAppStoreUrl);
bool appStoreUrlNull() const;
void setAppStoreUrlNull();
QString iconUrl() const;
void setIconUrl(QString newIconUrl);
bool iconUrlNull() const;
void setIconUrlNull();
protected:
QStringList m_playableMediaTypes;
QList<GeneralCommandType> m_supportedCommands;
bool m_supportsMediaControl;
bool m_supportsContentUploading;
QString m_messageCallbackUrl;
bool m_supportsPersistentIdentifier;
bool m_supportsSync;
QSharedPointer<DeviceProfile> m_deviceProfile = nullptr;
QString m_appStoreUrl;
QString m_iconUrl;
};
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_CLIENTCAPABILITIES_H

View file

@ -0,0 +1,177 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_CLIENTCAPABILITIESDTO_H
#define JELLYFIN_DTO_CLIENTCAPABILITIESDTO_H
#include <QJsonObject>
#include <QJsonValue>
#include <QList>
#include <QSharedPointer>
#include <QString>
#include <QStringList>
#include <optional>
#include "JellyfinQt/dto/deviceprofile.h"
#include "JellyfinQt/dto/generalcommandtype.h"
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class ClientCapabilitiesDto {
public:
ClientCapabilitiesDto();
ClientCapabilitiesDto(const ClientCapabilitiesDto &other);
/**
* Replaces the data being hold by this class with that of the other.
*/
void replaceData(ClientCapabilitiesDto &other);
static ClientCapabilitiesDto fromJson(QJsonObject source);
void setFromJson(QJsonObject source);
QJsonObject toJson();
// Properties
/**
* @brief Gets or sets the list of playable media types.
*/
QStringList playableMediaTypes() const;
/**
* @brief Gets or sets the list of playable media types.
*/
void setPlayableMediaTypes(QStringList newPlayableMediaTypes);
bool playableMediaTypesNull() const;
void setPlayableMediaTypesNull();
/**
* @brief Gets or sets the list of supported commands.
*/
QList<GeneralCommandType> supportedCommands() const;
/**
* @brief Gets or sets the list of supported commands.
*/
void setSupportedCommands(QList<GeneralCommandType> newSupportedCommands);
bool supportedCommandsNull() const;
void setSupportedCommandsNull();
/**
* @brief Gets or sets a value indicating whether session supports media control.
*/
bool supportsMediaControl() const;
/**
* @brief Gets or sets a value indicating whether session supports media control.
*/
void setSupportsMediaControl(bool newSupportsMediaControl);
/**
* @brief Gets or sets a value indicating whether session supports content uploading.
*/
bool supportsContentUploading() const;
/**
* @brief Gets or sets a value indicating whether session supports content uploading.
*/
void setSupportsContentUploading(bool newSupportsContentUploading);
/**
* @brief Gets or sets the message callback url.
*/
QString messageCallbackUrl() const;
/**
* @brief Gets or sets the message callback url.
*/
void setMessageCallbackUrl(QString newMessageCallbackUrl);
bool messageCallbackUrlNull() const;
void setMessageCallbackUrlNull();
/**
* @brief Gets or sets a value indicating whether session supports a persistent identifier.
*/
bool supportsPersistentIdentifier() const;
/**
* @brief Gets or sets a value indicating whether session supports a persistent identifier.
*/
void setSupportsPersistentIdentifier(bool newSupportsPersistentIdentifier);
/**
* @brief Gets or sets a value indicating whether session supports sync.
*/
bool supportsSync() const;
/**
* @brief Gets or sets a value indicating whether session supports sync.
*/
void setSupportsSync(bool newSupportsSync);
QSharedPointer<DeviceProfile> deviceProfile() const;
void setDeviceProfile(QSharedPointer<DeviceProfile> newDeviceProfile);
/**
* @brief Gets or sets the app store url.
*/
QString appStoreUrl() const;
/**
* @brief Gets or sets the app store url.
*/
void setAppStoreUrl(QString newAppStoreUrl);
bool appStoreUrlNull() const;
void setAppStoreUrlNull();
/**
* @brief Gets or sets the icon url.
*/
QString iconUrl() const;
/**
* @brief Gets or sets the icon url.
*/
void setIconUrl(QString newIconUrl);
bool iconUrlNull() const;
void setIconUrlNull();
protected:
QStringList m_playableMediaTypes;
QList<GeneralCommandType> m_supportedCommands;
bool m_supportsMediaControl;
bool m_supportsContentUploading;
QString m_messageCallbackUrl;
bool m_supportsPersistentIdentifier;
bool m_supportsSync;
QSharedPointer<DeviceProfile> m_deviceProfile = nullptr;
QString m_appStoreUrl;
QString m_iconUrl;
};
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_CLIENTCAPABILITIESDTO_H

View file

@ -0,0 +1,109 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_CODECPROFILE_H
#define JELLYFIN_DTO_CODECPROFILE_H
#include <QJsonObject>
#include <QJsonValue>
#include <QList>
#include <QSharedPointer>
#include <QString>
#include <QStringList>
#include <optional>
#include "JellyfinQt/dto/codectype.h"
#include "JellyfinQt/dto/profilecondition.h"
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class CodecProfile {
public:
CodecProfile();
CodecProfile(const CodecProfile &other);
/**
* Replaces the data being hold by this class with that of the other.
*/
void replaceData(CodecProfile &other);
static CodecProfile fromJson(QJsonObject source);
void setFromJson(QJsonObject source);
QJsonObject toJson();
// Properties
CodecType type() const;
void setType(CodecType newType);
QList<QSharedPointer<ProfileCondition>> conditions() const;
void setConditions(QList<QSharedPointer<ProfileCondition>> newConditions);
bool conditionsNull() const;
void setConditionsNull();
QList<QSharedPointer<ProfileCondition>> applyConditions() const;
void setApplyConditions(QList<QSharedPointer<ProfileCondition>> newApplyConditions);
bool applyConditionsNull() const;
void setApplyConditionsNull();
QString codec() const;
void setCodec(QString newCodec);
bool codecNull() const;
void setCodecNull();
QString container() const;
void setContainer(QString newContainer);
bool containerNull() const;
void setContainerNull();
protected:
CodecType m_type;
QList<QSharedPointer<ProfileCondition>> m_conditions;
QList<QSharedPointer<ProfileCondition>> m_applyConditions;
QString m_codec;
QString m_container;
};
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_CODECPROFILE_H

View file

@ -0,0 +1,61 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_CODECTYPE_H
#define JELLYFIN_DTO_CODECTYPE_H
#include <QJsonValue>
#include <QObject>
#include <QString>
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class CodecTypeClass {
Q_GADGET
public:
enum Value {
EnumNotSet,
Video,
VideoAudio,
Audio,
};
Q_ENUM(Value)
private:
explicit CodecTypeClass();
};
typedef CodecTypeClass::Value CodecType;
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_CODECTYPE_H

View file

@ -0,0 +1,72 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_COLLECTIONCREATIONRESULT_H
#define JELLYFIN_DTO_COLLECTIONCREATIONRESULT_H
#include <QJsonObject>
#include <QJsonValue>
#include <QString>
#include <optional>
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class CollectionCreationResult {
public:
CollectionCreationResult();
CollectionCreationResult(const CollectionCreationResult &other);
/**
* Replaces the data being hold by this class with that of the other.
*/
void replaceData(CollectionCreationResult &other);
static CollectionCreationResult fromJson(QJsonObject source);
void setFromJson(QJsonObject source);
QJsonObject toJson();
// Properties
QString jellyfinId() const;
void setJellyfinId(QString newJellyfinId);
protected:
QString m_jellyfinId;
};
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_COLLECTIONCREATIONRESULT_H

View file

@ -0,0 +1,143 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_CONFIGURATIONPAGEINFO_H
#define JELLYFIN_DTO_CONFIGURATIONPAGEINFO_H
#include <QJsonObject>
#include <QJsonValue>
#include <QString>
#include <optional>
#include "JellyfinQt/dto/configurationpagetype.h"
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class ConfigurationPageInfo {
public:
ConfigurationPageInfo();
ConfigurationPageInfo(const ConfigurationPageInfo &other);
/**
* Replaces the data being hold by this class with that of the other.
*/
void replaceData(ConfigurationPageInfo &other);
static ConfigurationPageInfo fromJson(QJsonObject source);
void setFromJson(QJsonObject source);
QJsonObject toJson();
// Properties
/**
* @brief Gets or sets the name.
*/
QString name() const;
/**
* @brief Gets or sets the name.
*/
void setName(QString newName);
bool nameNull() const;
void setNameNull();
/**
* @brief Gets or sets a value indicating whether the configurations page is enabled in the main menu.
*/
bool enableInMainMenu() const;
/**
* @brief Gets or sets a value indicating whether the configurations page is enabled in the main menu.
*/
void setEnableInMainMenu(bool newEnableInMainMenu);
/**
* @brief Gets or sets the menu section.
*/
QString menuSection() const;
/**
* @brief Gets or sets the menu section.
*/
void setMenuSection(QString newMenuSection);
bool menuSectionNull() const;
void setMenuSectionNull();
/**
* @brief Gets or sets the menu icon.
*/
QString menuIcon() const;
/**
* @brief Gets or sets the menu icon.
*/
void setMenuIcon(QString newMenuIcon);
bool menuIconNull() const;
void setMenuIconNull();
/**
* @brief Gets or sets the display name.
*/
QString displayName() const;
/**
* @brief Gets or sets the display name.
*/
void setDisplayName(QString newDisplayName);
bool displayNameNull() const;
void setDisplayNameNull();
ConfigurationPageType configurationPageType() const;
void setConfigurationPageType(ConfigurationPageType newConfigurationPageType);
/**
* @brief Gets or sets the plugin id.
*/
QString pluginId() const;
/**
* @brief Gets or sets the plugin id.
*/
void setPluginId(QString newPluginId);
bool pluginIdNull() const;
void setPluginIdNull();
protected:
QString m_name;
bool m_enableInMainMenu;
QString m_menuSection;
QString m_menuIcon;
QString m_displayName;
ConfigurationPageType m_configurationPageType;
QString m_pluginId;
};
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_CONFIGURATIONPAGEINFO_H

View file

@ -0,0 +1,60 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_CONFIGURATIONPAGETYPE_H
#define JELLYFIN_DTO_CONFIGURATIONPAGETYPE_H
#include <QJsonValue>
#include <QObject>
#include <QString>
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class ConfigurationPageTypeClass {
Q_GADGET
public:
enum Value {
EnumNotSet,
PluginConfiguration,
None,
};
Q_ENUM(Value)
private:
explicit ConfigurationPageTypeClass();
};
typedef ConfigurationPageTypeClass::Value ConfigurationPageType;
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_CONFIGURATIONPAGETYPE_H

View file

@ -0,0 +1,93 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_CONTAINERPROFILE_H
#define JELLYFIN_DTO_CONTAINERPROFILE_H
#include <QJsonObject>
#include <QJsonValue>
#include <QList>
#include <QSharedPointer>
#include <QString>
#include <QStringList>
#include <optional>
#include "JellyfinQt/dto/dlnaprofiletype.h"
#include "JellyfinQt/dto/profilecondition.h"
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class ContainerProfile {
public:
ContainerProfile();
ContainerProfile(const ContainerProfile &other);
/**
* Replaces the data being hold by this class with that of the other.
*/
void replaceData(ContainerProfile &other);
static ContainerProfile fromJson(QJsonObject source);
void setFromJson(QJsonObject source);
QJsonObject toJson();
// Properties
DlnaProfileType type() const;
void setType(DlnaProfileType newType);
QList<QSharedPointer<ProfileCondition>> conditions() const;
void setConditions(QList<QSharedPointer<ProfileCondition>> newConditions);
bool conditionsNull() const;
void setConditionsNull();
QString container() const;
void setContainer(QString newContainer);
bool containerNull() const;
void setContainerNull();
protected:
DlnaProfileType m_type;
QList<QSharedPointer<ProfileCondition>> m_conditions;
QString m_container;
};
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_CONTAINERPROFILE_H

View file

@ -0,0 +1,88 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_CONTROLRESPONSE_H
#define JELLYFIN_DTO_CONTROLRESPONSE_H
#include <QJsonObject>
#include <QJsonValue>
#include <QString>
#include <optional>
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class ControlResponse {
public:
ControlResponse();
ControlResponse(const ControlResponse &other);
/**
* Replaces the data being hold by this class with that of the other.
*/
void replaceData(ControlResponse &other);
static ControlResponse fromJson(QJsonObject source);
void setFromJson(QJsonObject source);
QJsonObject toJson();
// Properties
std::optional<QJsonObject> headers() const;
void setHeaders(std::optional<QJsonObject> newHeaders);
bool headersNull() const;
void setHeadersNull();
QString xml() const;
void setXml(QString newXml);
bool xmlNull() const;
void setXmlNull();
bool isSuccessful() const;
void setIsSuccessful(bool newIsSuccessful);
protected:
std::optional<QJsonObject> m_headers = std::nullopt;
QString m_xml;
bool m_isSuccessful;
};
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_CONTROLRESPONSE_H

View file

@ -0,0 +1,114 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_COUNTRYINFO_H
#define JELLYFIN_DTO_COUNTRYINFO_H
#include <QJsonObject>
#include <QJsonValue>
#include <QString>
#include <optional>
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class CountryInfo {
public:
CountryInfo();
CountryInfo(const CountryInfo &other);
/**
* Replaces the data being hold by this class with that of the other.
*/
void replaceData(CountryInfo &other);
static CountryInfo fromJson(QJsonObject source);
void setFromJson(QJsonObject source);
QJsonObject toJson();
// Properties
/**
* @brief Gets or sets the name.
*/
QString name() const;
/**
* @brief Gets or sets the name.
*/
void setName(QString newName);
bool nameNull() const;
void setNameNull();
/**
* @brief Gets or sets the display name.
*/
QString displayName() const;
/**
* @brief Gets or sets the display name.
*/
void setDisplayName(QString newDisplayName);
bool displayNameNull() const;
void setDisplayNameNull();
/**
* @brief Gets or sets the name of the two letter ISO region.
*/
QString twoLetterISORegionName() const;
/**
* @brief Gets or sets the name of the two letter ISO region.
*/
void setTwoLetterISORegionName(QString newTwoLetterISORegionName);
bool twoLetterISORegionNameNull() const;
void setTwoLetterISORegionNameNull();
/**
* @brief Gets or sets the name of the three letter ISO region.
*/
QString threeLetterISORegionName() const;
/**
* @brief Gets or sets the name of the three letter ISO region.
*/
void setThreeLetterISORegionName(QString newThreeLetterISORegionName);
bool threeLetterISORegionNameNull() const;
void setThreeLetterISORegionNameNull();
protected:
QString m_name;
QString m_displayName;
QString m_twoLetterISORegionName;
QString m_threeLetterISORegionName;
};
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_COUNTRYINFO_H

View file

@ -0,0 +1,116 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_CREATEPLAYLISTDTO_H
#define JELLYFIN_DTO_CREATEPLAYLISTDTO_H
#include <QJsonObject>
#include <QJsonValue>
#include <QList>
#include <QString>
#include <QStringList>
#include <optional>
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class CreatePlaylistDto {
public:
CreatePlaylistDto();
CreatePlaylistDto(const CreatePlaylistDto &other);
/**
* Replaces the data being hold by this class with that of the other.
*/
void replaceData(CreatePlaylistDto &other);
static CreatePlaylistDto fromJson(QJsonObject source);
void setFromJson(QJsonObject source);
QJsonObject toJson();
// Properties
/**
* @brief Gets or sets the name of the new playlist.
*/
QString name() const;
/**
* @brief Gets or sets the name of the new playlist.
*/
void setName(QString newName);
bool nameNull() const;
void setNameNull();
/**
* @brief Gets or sets item ids to add to the playlist.
*/
QStringList ids() const;
/**
* @brief Gets or sets item ids to add to the playlist.
*/
void setIds(QStringList newIds);
bool idsNull() const;
void setIdsNull();
/**
* @brief Gets or sets the user id.
*/
QString userId() const;
/**
* @brief Gets or sets the user id.
*/
void setUserId(QString newUserId);
bool userIdNull() const;
void setUserIdNull();
/**
* @brief Gets or sets the media type.
*/
QString mediaType() const;
/**
* @brief Gets or sets the media type.
*/
void setMediaType(QString newMediaType);
bool mediaTypeNull() const;
void setMediaTypeNull();
protected:
QString m_name;
QStringList m_ids;
QString m_userId;
QString m_mediaType;
};
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_CREATEPLAYLISTDTO_H

View file

@ -0,0 +1,90 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_CREATEUSERBYNAME_H
#define JELLYFIN_DTO_CREATEUSERBYNAME_H
#include <QJsonObject>
#include <QJsonValue>
#include <QString>
#include <optional>
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class CreateUserByName {
public:
CreateUserByName();
CreateUserByName(const CreateUserByName &other);
/**
* Replaces the data being hold by this class with that of the other.
*/
void replaceData(CreateUserByName &other);
static CreateUserByName fromJson(QJsonObject source);
void setFromJson(QJsonObject source);
QJsonObject toJson();
// Properties
/**
* @brief Gets or sets the username.
*/
QString name() const;
/**
* @brief Gets or sets the username.
*/
void setName(QString newName);
bool nameNull() const;
void setNameNull();
/**
* @brief Gets or sets the password.
*/
QString password() const;
/**
* @brief Gets or sets the password.
*/
void setPassword(QString newPassword);
bool passwordNull() const;
void setPasswordNull();
protected:
QString m_name;
QString m_password;
};
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_CREATEUSERBYNAME_H

View file

@ -0,0 +1,124 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_CULTUREDTO_H
#define JELLYFIN_DTO_CULTUREDTO_H
#include <QJsonObject>
#include <QJsonValue>
#include <QList>
#include <QString>
#include <QStringList>
#include <optional>
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class CultureDto {
public:
CultureDto();
CultureDto(const CultureDto &other);
/**
* Replaces the data being hold by this class with that of the other.
*/
void replaceData(CultureDto &other);
static CultureDto fromJson(QJsonObject source);
void setFromJson(QJsonObject source);
QJsonObject toJson();
// Properties
/**
* @brief Gets or sets the name.
*/
QString name() const;
/**
* @brief Gets or sets the name.
*/
void setName(QString newName);
bool nameNull() const;
void setNameNull();
/**
* @brief Gets or sets the display name.
*/
QString displayName() const;
/**
* @brief Gets or sets the display name.
*/
void setDisplayName(QString newDisplayName);
bool displayNameNull() const;
void setDisplayNameNull();
/**
* @brief Gets or sets the name of the two letter ISO language.
*/
QString twoLetterISOLanguageName() const;
/**
* @brief Gets or sets the name of the two letter ISO language.
*/
void setTwoLetterISOLanguageName(QString newTwoLetterISOLanguageName);
bool twoLetterISOLanguageNameNull() const;
void setTwoLetterISOLanguageNameNull();
/**
* @brief Gets or sets the name of the three letter ISO language.
*/
QString threeLetterISOLanguageName() const;
/**
* @brief Gets or sets the name of the three letter ISO language.
*/
void setThreeLetterISOLanguageName(QString newThreeLetterISOLanguageName);
bool threeLetterISOLanguageNameNull() const;
void setThreeLetterISOLanguageNameNull();
QStringList threeLetterISOLanguageNames() const;
void setThreeLetterISOLanguageNames(QStringList newThreeLetterISOLanguageNames);
bool threeLetterISOLanguageNamesNull() const;
void setThreeLetterISOLanguageNamesNull();
protected:
QString m_name;
QString m_displayName;
QString m_twoLetterISOLanguageName;
QString m_threeLetterISOLanguageName;
QStringList m_threeLetterISOLanguageNames;
};
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_CULTUREDTO_H

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.
*/
#ifndef JELLYFIN_DTO_DAYOFWEEK_H
#define JELLYFIN_DTO_DAYOFWEEK_H
#include <QJsonValue>
#include <QObject>
#include <QString>
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class DayOfWeekClass {
Q_GADGET
public:
enum Value {
EnumNotSet,
Sunday,
Monday,
Tuesday,
Wednesday,
Thursday,
Friday,
Saturday,
};
Q_ENUM(Value)
private:
explicit DayOfWeekClass();
};
typedef DayOfWeekClass::Value DayOfWeek;
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_DAYOFWEEK_H

View file

@ -0,0 +1,61 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_DAYPATTERN_H
#define JELLYFIN_DTO_DAYPATTERN_H
#include <QJsonValue>
#include <QObject>
#include <QString>
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class DayPatternClass {
Q_GADGET
public:
enum Value {
EnumNotSet,
Daily,
Weekdays,
Weekends,
};
Q_ENUM(Value)
private:
explicit DayPatternClass();
};
typedef DayPatternClass::Value DayPattern;
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_DAYPATTERN_H

View file

@ -0,0 +1,78 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_DEFAULTDIRECTORYBROWSERINFODTO_H
#define JELLYFIN_DTO_DEFAULTDIRECTORYBROWSERINFODTO_H
#include <QJsonObject>
#include <QJsonValue>
#include <QString>
#include <optional>
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class DefaultDirectoryBrowserInfoDto {
public:
DefaultDirectoryBrowserInfoDto();
DefaultDirectoryBrowserInfoDto(const DefaultDirectoryBrowserInfoDto &other);
/**
* Replaces the data being hold by this class with that of the other.
*/
void replaceData(DefaultDirectoryBrowserInfoDto &other);
static DefaultDirectoryBrowserInfoDto fromJson(QJsonObject source);
void setFromJson(QJsonObject source);
QJsonObject toJson();
// Properties
/**
* @brief Gets or sets the path.
*/
QString path() const;
/**
* @brief Gets or sets the path.
*/
void setPath(QString newPath);
bool pathNull() const;
void setPathNull();
protected:
QString m_path;
};
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_DEFAULTDIRECTORYBROWSERINFODTO_H

View file

@ -0,0 +1,178 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_DEVICEIDENTIFICATION_H
#define JELLYFIN_DTO_DEVICEIDENTIFICATION_H
#include <QJsonObject>
#include <QJsonValue>
#include <QList>
#include <QSharedPointer>
#include <QString>
#include <QStringList>
#include <optional>
#include "JellyfinQt/dto/httpheaderinfo.h"
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class DeviceIdentification {
public:
DeviceIdentification();
DeviceIdentification(const DeviceIdentification &other);
/**
* Replaces the data being hold by this class with that of the other.
*/
void replaceData(DeviceIdentification &other);
static DeviceIdentification fromJson(QJsonObject source);
void setFromJson(QJsonObject source);
QJsonObject toJson();
// Properties
/**
* @brief Gets or sets the name of the friendly.
*/
QString friendlyName() const;
/**
* @brief Gets or sets the name of the friendly.
*/
void setFriendlyName(QString newFriendlyName);
bool friendlyNameNull() const;
void setFriendlyNameNull();
/**
* @brief Gets or sets the model number.
*/
QString modelNumber() const;
/**
* @brief Gets or sets the model number.
*/
void setModelNumber(QString newModelNumber);
bool modelNumberNull() const;
void setModelNumberNull();
/**
* @brief Gets or sets the serial number.
*/
QString serialNumber() const;
/**
* @brief Gets or sets the serial number.
*/
void setSerialNumber(QString newSerialNumber);
bool serialNumberNull() const;
void setSerialNumberNull();
/**
* @brief Gets or sets the name of the model.
*/
QString modelName() const;
/**
* @brief Gets or sets the name of the model.
*/
void setModelName(QString newModelName);
bool modelNameNull() const;
void setModelNameNull();
/**
* @brief Gets or sets the model description.
*/
QString modelDescription() const;
/**
* @brief Gets or sets the model description.
*/
void setModelDescription(QString newModelDescription);
bool modelDescriptionNull() const;
void setModelDescriptionNull();
/**
* @brief Gets or sets the model URL.
*/
QString modelUrl() const;
/**
* @brief Gets or sets the model URL.
*/
void setModelUrl(QString newModelUrl);
bool modelUrlNull() const;
void setModelUrlNull();
/**
* @brief Gets or sets the manufacturer.
*/
QString manufacturer() const;
/**
* @brief Gets or sets the manufacturer.
*/
void setManufacturer(QString newManufacturer);
bool manufacturerNull() const;
void setManufacturerNull();
/**
* @brief Gets or sets the manufacturer URL.
*/
QString manufacturerUrl() const;
/**
* @brief Gets or sets the manufacturer URL.
*/
void setManufacturerUrl(QString newManufacturerUrl);
bool manufacturerUrlNull() const;
void setManufacturerUrlNull();
/**
* @brief Gets or sets the headers.
*/
QList<QSharedPointer<HttpHeaderInfo>> headers() const;
/**
* @brief Gets or sets the headers.
*/
void setHeaders(QList<QSharedPointer<HttpHeaderInfo>> newHeaders);
bool headersNull() const;
void setHeadersNull();
protected:
QString m_friendlyName;
QString m_modelNumber;
QString m_serialNumber;
QString m_modelName;
QString m_modelDescription;
QString m_modelUrl;
QString m_manufacturer;
QString m_manufacturerUrl;
QList<QSharedPointer<HttpHeaderInfo>> m_headers;
};
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_DEVICEIDENTIFICATION_H

View file

@ -0,0 +1,159 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_DEVICEINFO_H
#define JELLYFIN_DTO_DEVICEINFO_H
#include <QDateTime>
#include <QJsonObject>
#include <QJsonValue>
#include <QSharedPointer>
#include <QString>
#include <optional>
#include "JellyfinQt/dto/clientcapabilities.h"
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class DeviceInfo {
public:
DeviceInfo();
DeviceInfo(const DeviceInfo &other);
/**
* Replaces the data being hold by this class with that of the other.
*/
void replaceData(DeviceInfo &other);
static DeviceInfo fromJson(QJsonObject source);
void setFromJson(QJsonObject source);
QJsonObject toJson();
// Properties
QString name() const;
void setName(QString newName);
bool nameNull() const;
void setNameNull();
/**
* @brief Gets or sets the identifier.
*/
QString jellyfinId() const;
/**
* @brief Gets or sets the identifier.
*/
void setJellyfinId(QString newJellyfinId);
bool jellyfinIdNull() const;
void setJellyfinIdNull();
/**
* @brief Gets or sets the last name of the user.
*/
QString lastUserName() const;
/**
* @brief Gets or sets the last name of the user.
*/
void setLastUserName(QString newLastUserName);
bool lastUserNameNull() const;
void setLastUserNameNull();
/**
* @brief Gets or sets the name of the application.
*/
QString appName() const;
/**
* @brief Gets or sets the name of the application.
*/
void setAppName(QString newAppName);
bool appNameNull() const;
void setAppNameNull();
/**
* @brief Gets or sets the application version.
*/
QString appVersion() const;
/**
* @brief Gets or sets the application version.
*/
void setAppVersion(QString newAppVersion);
bool appVersionNull() const;
void setAppVersionNull();
/**
* @brief Gets or sets the last user identifier.
*/
QString lastUserId() const;
/**
* @brief Gets or sets the last user identifier.
*/
void setLastUserId(QString newLastUserId);
/**
* @brief Gets or sets the date last modified.
*/
QDateTime dateLastActivity() const;
/**
* @brief Gets or sets the date last modified.
*/
void setDateLastActivity(QDateTime newDateLastActivity);
QSharedPointer<ClientCapabilities> capabilities() const;
void setCapabilities(QSharedPointer<ClientCapabilities> newCapabilities);
QString iconUrl() const;
void setIconUrl(QString newIconUrl);
bool iconUrlNull() const;
void setIconUrlNull();
protected:
QString m_name;
QString m_jellyfinId;
QString m_lastUserName;
QString m_appName;
QString m_appVersion;
QString m_lastUserId;
QDateTime m_dateLastActivity;
QSharedPointer<ClientCapabilities> m_capabilities = nullptr;
QString m_iconUrl;
};
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_DEVICEINFO_H

View file

@ -0,0 +1,101 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_DEVICEINFOQUERYRESULT_H
#define JELLYFIN_DTO_DEVICEINFOQUERYRESULT_H
#include <QJsonObject>
#include <QJsonValue>
#include <QList>
#include <QSharedPointer>
#include <QStringList>
#include <optional>
#include "JellyfinQt/dto/deviceinfo.h"
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class DeviceInfoQueryResult {
public:
DeviceInfoQueryResult();
DeviceInfoQueryResult(const DeviceInfoQueryResult &other);
/**
* Replaces the data being hold by this class with that of the other.
*/
void replaceData(DeviceInfoQueryResult &other);
static DeviceInfoQueryResult fromJson(QJsonObject source);
void setFromJson(QJsonObject source);
QJsonObject toJson();
// Properties
/**
* @brief Gets or sets the items.
*/
QList<QSharedPointer<DeviceInfo>> items() const;
/**
* @brief Gets or sets the items.
*/
void setItems(QList<QSharedPointer<DeviceInfo>> newItems);
bool itemsNull() const;
void setItemsNull();
/**
* @brief The total number of records available.
*/
qint32 totalRecordCount() const;
/**
* @brief The total number of records available.
*/
void setTotalRecordCount(qint32 newTotalRecordCount);
/**
* @brief The index of the first record in Items.
*/
qint32 startIndex() const;
/**
* @brief The index of the first record in Items.
*/
void setStartIndex(qint32 newStartIndex);
protected:
QList<QSharedPointer<DeviceInfo>> m_items;
qint32 m_totalRecordCount;
qint32 m_startIndex;
};
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_DEVICEINFOQUERYRESULT_H

View file

@ -0,0 +1,74 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_DEVICEOPTIONS_H
#define JELLYFIN_DTO_DEVICEOPTIONS_H
#include <QJsonObject>
#include <QJsonValue>
#include <QString>
#include <optional>
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class DeviceOptions {
public:
DeviceOptions();
DeviceOptions(const DeviceOptions &other);
/**
* Replaces the data being hold by this class with that of the other.
*/
void replaceData(DeviceOptions &other);
static DeviceOptions fromJson(QJsonObject source);
void setFromJson(QJsonObject source);
QJsonObject toJson();
// Properties
QString customName() const;
void setCustomName(QString newCustomName);
bool customNameNull() const;
void setCustomNameNull();
protected:
QString m_customName;
};
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_DEVICEOPTIONS_H

View file

@ -0,0 +1,519 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_DEVICEPROFILE_H
#define JELLYFIN_DTO_DEVICEPROFILE_H
#include <QJsonObject>
#include <QJsonValue>
#include <QList>
#include <QSharedPointer>
#include <QString>
#include <QStringList>
#include <optional>
#include "JellyfinQt/dto/codecprofile.h"
#include "JellyfinQt/dto/containerprofile.h"
#include "JellyfinQt/dto/deviceidentification.h"
#include "JellyfinQt/dto/directplayprofile.h"
#include "JellyfinQt/dto/responseprofile.h"
#include "JellyfinQt/dto/subtitleprofile.h"
#include "JellyfinQt/dto/transcodingprofile.h"
#include "JellyfinQt/dto/xmlattribute.h"
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class DeviceProfile {
public:
DeviceProfile();
DeviceProfile(const DeviceProfile &other);
/**
* Replaces the data being hold by this class with that of the other.
*/
void replaceData(DeviceProfile &other);
static DeviceProfile fromJson(QJsonObject source);
void setFromJson(QJsonObject source);
QJsonObject toJson();
// Properties
/**
* @brief Gets or sets the Name.
*/
QString name() const;
/**
* @brief Gets or sets the Name.
*/
void setName(QString newName);
bool nameNull() const;
void setNameNull();
/**
* @brief Gets or sets the Id.
*/
QString jellyfinId() const;
/**
* @brief Gets or sets the Id.
*/
void setJellyfinId(QString newJellyfinId);
bool jellyfinIdNull() const;
void setJellyfinIdNull();
QSharedPointer<DeviceIdentification> identification() const;
void setIdentification(QSharedPointer<DeviceIdentification> newIdentification);
/**
* @brief Gets or sets the FriendlyName.
*/
QString friendlyName() const;
/**
* @brief Gets or sets the FriendlyName.
*/
void setFriendlyName(QString newFriendlyName);
bool friendlyNameNull() const;
void setFriendlyNameNull();
/**
* @brief Gets or sets the Manufacturer.
*/
QString manufacturer() const;
/**
* @brief Gets or sets the Manufacturer.
*/
void setManufacturer(QString newManufacturer);
bool manufacturerNull() const;
void setManufacturerNull();
/**
* @brief Gets or sets the ManufacturerUrl.
*/
QString manufacturerUrl() const;
/**
* @brief Gets or sets the ManufacturerUrl.
*/
void setManufacturerUrl(QString newManufacturerUrl);
bool manufacturerUrlNull() const;
void setManufacturerUrlNull();
/**
* @brief Gets or sets the ModelName.
*/
QString modelName() const;
/**
* @brief Gets or sets the ModelName.
*/
void setModelName(QString newModelName);
bool modelNameNull() const;
void setModelNameNull();
/**
* @brief Gets or sets the ModelDescription.
*/
QString modelDescription() const;
/**
* @brief Gets or sets the ModelDescription.
*/
void setModelDescription(QString newModelDescription);
bool modelDescriptionNull() const;
void setModelDescriptionNull();
/**
* @brief Gets or sets the ModelNumber.
*/
QString modelNumber() const;
/**
* @brief Gets or sets the ModelNumber.
*/
void setModelNumber(QString newModelNumber);
bool modelNumberNull() const;
void setModelNumberNull();
/**
* @brief Gets or sets the ModelUrl.
*/
QString modelUrl() const;
/**
* @brief Gets or sets the ModelUrl.
*/
void setModelUrl(QString newModelUrl);
bool modelUrlNull() const;
void setModelUrlNull();
/**
* @brief Gets or sets the SerialNumber.
*/
QString serialNumber() const;
/**
* @brief Gets or sets the SerialNumber.
*/
void setSerialNumber(QString newSerialNumber);
bool serialNumberNull() const;
void setSerialNumberNull();
/**
* @brief Gets or sets a value indicating whether EnableAlbumArtInDidl.
*/
bool enableAlbumArtInDidl() const;
/**
* @brief Gets or sets a value indicating whether EnableAlbumArtInDidl.
*/
void setEnableAlbumArtInDidl(bool newEnableAlbumArtInDidl);
/**
* @brief Gets or sets a value indicating whether EnableSingleAlbumArtLimit.
*/
bool enableSingleAlbumArtLimit() const;
/**
* @brief Gets or sets a value indicating whether EnableSingleAlbumArtLimit.
*/
void setEnableSingleAlbumArtLimit(bool newEnableSingleAlbumArtLimit);
/**
* @brief Gets or sets a value indicating whether EnableSingleSubtitleLimit.
*/
bool enableSingleSubtitleLimit() const;
/**
* @brief Gets or sets a value indicating whether EnableSingleSubtitleLimit.
*/
void setEnableSingleSubtitleLimit(bool newEnableSingleSubtitleLimit);
/**
* @brief Gets or sets the SupportedMediaTypes.
*/
QString supportedMediaTypes() const;
/**
* @brief Gets or sets the SupportedMediaTypes.
*/
void setSupportedMediaTypes(QString newSupportedMediaTypes);
bool supportedMediaTypesNull() const;
void setSupportedMediaTypesNull();
/**
* @brief Gets or sets the UserId.
*/
QString userId() const;
/**
* @brief Gets or sets the UserId.
*/
void setUserId(QString newUserId);
bool userIdNull() const;
void setUserIdNull();
/**
* @brief Gets or sets the AlbumArtPn.
*/
QString albumArtPn() const;
/**
* @brief Gets or sets the AlbumArtPn.
*/
void setAlbumArtPn(QString newAlbumArtPn);
bool albumArtPnNull() const;
void setAlbumArtPnNull();
/**
* @brief Gets or sets the MaxAlbumArtWidth.
*/
qint32 maxAlbumArtWidth() const;
/**
* @brief Gets or sets the MaxAlbumArtWidth.
*/
void setMaxAlbumArtWidth(qint32 newMaxAlbumArtWidth);
/**
* @brief Gets or sets the MaxAlbumArtHeight.
*/
qint32 maxAlbumArtHeight() const;
/**
* @brief Gets or sets the MaxAlbumArtHeight.
*/
void setMaxAlbumArtHeight(qint32 newMaxAlbumArtHeight);
/**
* @brief Gets or sets the MaxIconWidth.
*/
std::optional<qint32> maxIconWidth() const;
/**
* @brief Gets or sets the MaxIconWidth.
*/
void setMaxIconWidth(std::optional<qint32> newMaxIconWidth);
bool maxIconWidthNull() const;
void setMaxIconWidthNull();
/**
* @brief Gets or sets the MaxIconHeight.
*/
std::optional<qint32> maxIconHeight() const;
/**
* @brief Gets or sets the MaxIconHeight.
*/
void setMaxIconHeight(std::optional<qint32> newMaxIconHeight);
bool maxIconHeightNull() const;
void setMaxIconHeightNull();
/**
* @brief Gets or sets the MaxStreamingBitrate.
*/
std::optional<qint32> maxStreamingBitrate() const;
/**
* @brief Gets or sets the MaxStreamingBitrate.
*/
void setMaxStreamingBitrate(std::optional<qint32> newMaxStreamingBitrate);
bool maxStreamingBitrateNull() const;
void setMaxStreamingBitrateNull();
/**
* @brief Gets or sets the MaxStaticBitrate.
*/
std::optional<qint32> maxStaticBitrate() const;
/**
* @brief Gets or sets the MaxStaticBitrate.
*/
void setMaxStaticBitrate(std::optional<qint32> newMaxStaticBitrate);
bool maxStaticBitrateNull() const;
void setMaxStaticBitrateNull();
/**
* @brief Gets or sets the MusicStreamingTranscodingBitrate.
*/
std::optional<qint32> musicStreamingTranscodingBitrate() const;
/**
* @brief Gets or sets the MusicStreamingTranscodingBitrate.
*/
void setMusicStreamingTranscodingBitrate(std::optional<qint32> newMusicStreamingTranscodingBitrate);
bool musicStreamingTranscodingBitrateNull() const;
void setMusicStreamingTranscodingBitrateNull();
/**
* @brief Gets or sets the MaxStaticMusicBitrate.
*/
std::optional<qint32> maxStaticMusicBitrate() const;
/**
* @brief Gets or sets the MaxStaticMusicBitrate.
*/
void setMaxStaticMusicBitrate(std::optional<qint32> newMaxStaticMusicBitrate);
bool maxStaticMusicBitrateNull() const;
void setMaxStaticMusicBitrateNull();
/**
* @brief Gets or sets the content of the aggregationFlags element in the urn:schemas-sonycom:av namespace.
*/
QString sonyAggregationFlags() const;
/**
* @brief Gets or sets the content of the aggregationFlags element in the urn:schemas-sonycom:av namespace.
*/
void setSonyAggregationFlags(QString newSonyAggregationFlags);
bool sonyAggregationFlagsNull() const;
void setSonyAggregationFlagsNull();
/**
* @brief Gets or sets the ProtocolInfo.
*/
QString protocolInfo() const;
/**
* @brief Gets or sets the ProtocolInfo.
*/
void setProtocolInfo(QString newProtocolInfo);
bool protocolInfoNull() const;
void setProtocolInfoNull();
/**
* @brief Gets or sets the TimelineOffsetSeconds.
*/
qint32 timelineOffsetSeconds() const;
/**
* @brief Gets or sets the TimelineOffsetSeconds.
*/
void setTimelineOffsetSeconds(qint32 newTimelineOffsetSeconds);
/**
* @brief Gets or sets a value indicating whether RequiresPlainVideoItems.
*/
bool requiresPlainVideoItems() const;
/**
* @brief Gets or sets a value indicating whether RequiresPlainVideoItems.
*/
void setRequiresPlainVideoItems(bool newRequiresPlainVideoItems);
/**
* @brief Gets or sets a value indicating whether RequiresPlainFolders.
*/
bool requiresPlainFolders() const;
/**
* @brief Gets or sets a value indicating whether RequiresPlainFolders.
*/
void setRequiresPlainFolders(bool newRequiresPlainFolders);
/**
* @brief Gets or sets a value indicating whether EnableMSMediaReceiverRegistrar.
*/
bool enableMSMediaReceiverRegistrar() const;
/**
* @brief Gets or sets a value indicating whether EnableMSMediaReceiverRegistrar.
*/
void setEnableMSMediaReceiverRegistrar(bool newEnableMSMediaReceiverRegistrar);
/**
* @brief Gets or sets a value indicating whether IgnoreTranscodeByteRangeRequests.
*/
bool ignoreTranscodeByteRangeRequests() const;
/**
* @brief Gets or sets a value indicating whether IgnoreTranscodeByteRangeRequests.
*/
void setIgnoreTranscodeByteRangeRequests(bool newIgnoreTranscodeByteRangeRequests);
/**
* @brief Gets or sets the XmlRootAttributes.
*/
QList<QSharedPointer<XmlAttribute>> xmlRootAttributes() const;
/**
* @brief Gets or sets the XmlRootAttributes.
*/
void setXmlRootAttributes(QList<QSharedPointer<XmlAttribute>> newXmlRootAttributes);
bool xmlRootAttributesNull() const;
void setXmlRootAttributesNull();
/**
* @brief Gets or sets the direct play profiles.
*/
QList<QSharedPointer<DirectPlayProfile>> directPlayProfiles() const;
/**
* @brief Gets or sets the direct play profiles.
*/
void setDirectPlayProfiles(QList<QSharedPointer<DirectPlayProfile>> newDirectPlayProfiles);
bool directPlayProfilesNull() const;
void setDirectPlayProfilesNull();
/**
* @brief Gets or sets the transcoding profiles.
*/
QList<QSharedPointer<TranscodingProfile>> transcodingProfiles() const;
/**
* @brief Gets or sets the transcoding profiles.
*/
void setTranscodingProfiles(QList<QSharedPointer<TranscodingProfile>> newTranscodingProfiles);
bool transcodingProfilesNull() const;
void setTranscodingProfilesNull();
/**
* @brief Gets or sets the ContainerProfiles.
*/
QList<QSharedPointer<ContainerProfile>> containerProfiles() const;
/**
* @brief Gets or sets the ContainerProfiles.
*/
void setContainerProfiles(QList<QSharedPointer<ContainerProfile>> newContainerProfiles);
bool containerProfilesNull() const;
void setContainerProfilesNull();
/**
* @brief Gets or sets the CodecProfiles.
*/
QList<QSharedPointer<CodecProfile>> codecProfiles() const;
/**
* @brief Gets or sets the CodecProfiles.
*/
void setCodecProfiles(QList<QSharedPointer<CodecProfile>> newCodecProfiles);
bool codecProfilesNull() const;
void setCodecProfilesNull();
/**
* @brief Gets or sets the ResponseProfiles.
*/
QList<QSharedPointer<ResponseProfile>> responseProfiles() const;
/**
* @brief Gets or sets the ResponseProfiles.
*/
void setResponseProfiles(QList<QSharedPointer<ResponseProfile>> newResponseProfiles);
bool responseProfilesNull() const;
void setResponseProfilesNull();
/**
* @brief Gets or sets the SubtitleProfiles.
*/
QList<QSharedPointer<SubtitleProfile>> subtitleProfiles() const;
/**
* @brief Gets or sets the SubtitleProfiles.
*/
void setSubtitleProfiles(QList<QSharedPointer<SubtitleProfile>> newSubtitleProfiles);
bool subtitleProfilesNull() const;
void setSubtitleProfilesNull();
protected:
QString m_name;
QString m_jellyfinId;
QSharedPointer<DeviceIdentification> m_identification = nullptr;
QString m_friendlyName;
QString m_manufacturer;
QString m_manufacturerUrl;
QString m_modelName;
QString m_modelDescription;
QString m_modelNumber;
QString m_modelUrl;
QString m_serialNumber;
bool m_enableAlbumArtInDidl;
bool m_enableSingleAlbumArtLimit;
bool m_enableSingleSubtitleLimit;
QString m_supportedMediaTypes;
QString m_userId;
QString m_albumArtPn;
qint32 m_maxAlbumArtWidth;
qint32 m_maxAlbumArtHeight;
std::optional<qint32> m_maxIconWidth = std::nullopt;
std::optional<qint32> m_maxIconHeight = std::nullopt;
std::optional<qint32> m_maxStreamingBitrate = std::nullopt;
std::optional<qint32> m_maxStaticBitrate = std::nullopt;
std::optional<qint32> m_musicStreamingTranscodingBitrate = std::nullopt;
std::optional<qint32> m_maxStaticMusicBitrate = std::nullopt;
QString m_sonyAggregationFlags;
QString m_protocolInfo;
qint32 m_timelineOffsetSeconds;
bool m_requiresPlainVideoItems;
bool m_requiresPlainFolders;
bool m_enableMSMediaReceiverRegistrar;
bool m_ignoreTranscodeByteRangeRequests;
QList<QSharedPointer<XmlAttribute>> m_xmlRootAttributes;
QList<QSharedPointer<DirectPlayProfile>> m_directPlayProfiles;
QList<QSharedPointer<TranscodingProfile>> m_transcodingProfiles;
QList<QSharedPointer<ContainerProfile>> m_containerProfiles;
QList<QSharedPointer<CodecProfile>> m_codecProfiles;
QList<QSharedPointer<ResponseProfile>> m_responseProfiles;
QList<QSharedPointer<SubtitleProfile>> m_subtitleProfiles;
};
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_DEVICEPROFILE_H

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.
*/
#ifndef JELLYFIN_DTO_DEVICEPROFILEINFO_H
#define JELLYFIN_DTO_DEVICEPROFILEINFO_H
#include <QJsonObject>
#include <QJsonValue>
#include <QString>
#include <optional>
#include "JellyfinQt/dto/deviceprofiletype.h"
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class DeviceProfileInfo {
public:
DeviceProfileInfo();
DeviceProfileInfo(const DeviceProfileInfo &other);
/**
* Replaces the data being hold by this class with that of the other.
*/
void replaceData(DeviceProfileInfo &other);
static DeviceProfileInfo fromJson(QJsonObject source);
void setFromJson(QJsonObject source);
QJsonObject toJson();
// Properties
/**
* @brief Gets or sets the identifier.
*/
QString jellyfinId() const;
/**
* @brief Gets or sets the identifier.
*/
void setJellyfinId(QString newJellyfinId);
bool jellyfinIdNull() const;
void setJellyfinIdNull();
/**
* @brief Gets or sets the name.
*/
QString name() const;
/**
* @brief Gets or sets the name.
*/
void setName(QString newName);
bool nameNull() const;
void setNameNull();
DeviceProfileType type() const;
void setType(DeviceProfileType newType);
protected:
QString m_jellyfinId;
QString m_name;
DeviceProfileType m_type;
};
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_DEVICEPROFILEINFO_H

View file

@ -0,0 +1,60 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_DEVICEPROFILETYPE_H
#define JELLYFIN_DTO_DEVICEPROFILETYPE_H
#include <QJsonValue>
#include <QObject>
#include <QString>
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class DeviceProfileTypeClass {
Q_GADGET
public:
enum Value {
EnumNotSet,
System,
User,
};
Q_ENUM(Value)
private:
explicit DeviceProfileTypeClass();
};
typedef DeviceProfileTypeClass::Value DeviceProfileType;
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_DEVICEPROFILETYPE_H

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.
*/
#ifndef JELLYFIN_DTO_DIRECTPLAYPROFILE_H
#define JELLYFIN_DTO_DIRECTPLAYPROFILE_H
#include <QJsonObject>
#include <QJsonValue>
#include <QString>
#include <optional>
#include "JellyfinQt/dto/dlnaprofiletype.h"
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class DirectPlayProfile {
public:
DirectPlayProfile();
DirectPlayProfile(const DirectPlayProfile &other);
/**
* Replaces the data being hold by this class with that of the other.
*/
void replaceData(DirectPlayProfile &other);
static DirectPlayProfile fromJson(QJsonObject source);
void setFromJson(QJsonObject source);
QJsonObject toJson();
// Properties
QString container() const;
void setContainer(QString newContainer);
bool containerNull() const;
void setContainerNull();
QString audioCodec() const;
void setAudioCodec(QString newAudioCodec);
bool audioCodecNull() const;
void setAudioCodecNull();
QString videoCodec() const;
void setVideoCodec(QString newVideoCodec);
bool videoCodecNull() const;
void setVideoCodecNull();
DlnaProfileType type() const;
void setType(DlnaProfileType newType);
protected:
QString m_container;
QString m_audioCodec;
QString m_videoCodec;
DlnaProfileType m_type;
};
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_DIRECTPLAYPROFILE_H

View file

@ -0,0 +1,212 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_DISPLAYPREFERENCESDTO_H
#define JELLYFIN_DTO_DISPLAYPREFERENCESDTO_H
#include <QJsonObject>
#include <QJsonValue>
#include <QString>
#include <optional>
#include "JellyfinQt/dto/scrolldirection.h"
#include "JellyfinQt/dto/sortorder.h"
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class DisplayPreferencesDto {
public:
DisplayPreferencesDto();
DisplayPreferencesDto(const DisplayPreferencesDto &other);
/**
* Replaces the data being hold by this class with that of the other.
*/
void replaceData(DisplayPreferencesDto &other);
static DisplayPreferencesDto fromJson(QJsonObject source);
void setFromJson(QJsonObject source);
QJsonObject toJson();
// Properties
/**
* @brief Gets or sets the user id.
*/
QString jellyfinId() const;
/**
* @brief Gets or sets the user id.
*/
void setJellyfinId(QString newJellyfinId);
bool jellyfinIdNull() const;
void setJellyfinIdNull();
/**
* @brief Gets or sets the type of the view.
*/
QString viewType() const;
/**
* @brief Gets or sets the type of the view.
*/
void setViewType(QString newViewType);
bool viewTypeNull() const;
void setViewTypeNull();
/**
* @brief Gets or sets the sort by.
*/
QString sortBy() const;
/**
* @brief Gets or sets the sort by.
*/
void setSortBy(QString newSortBy);
bool sortByNull() const;
void setSortByNull();
/**
* @brief Gets or sets the index by.
*/
QString indexBy() const;
/**
* @brief Gets or sets the index by.
*/
void setIndexBy(QString newIndexBy);
bool indexByNull() const;
void setIndexByNull();
/**
* @brief Gets or sets a value indicating whether [remember indexing].
*/
bool rememberIndexing() const;
/**
* @brief Gets or sets a value indicating whether [remember indexing].
*/
void setRememberIndexing(bool newRememberIndexing);
/**
* @brief Gets or sets the height of the primary image.
*/
qint32 primaryImageHeight() const;
/**
* @brief Gets or sets the height of the primary image.
*/
void setPrimaryImageHeight(qint32 newPrimaryImageHeight);
/**
* @brief Gets or sets the width of the primary image.
*/
qint32 primaryImageWidth() const;
/**
* @brief Gets or sets the width of the primary image.
*/
void setPrimaryImageWidth(qint32 newPrimaryImageWidth);
/**
* @brief Gets or sets the custom prefs.
*/
std::optional<QJsonObject> customPrefs() const;
/**
* @brief Gets or sets the custom prefs.
*/
void setCustomPrefs(std::optional<QJsonObject> newCustomPrefs);
bool customPrefsNull() const;
void setCustomPrefsNull();
ScrollDirection scrollDirection() const;
void setScrollDirection(ScrollDirection newScrollDirection);
/**
* @brief Gets or sets a value indicating whether to show backdrops on this item.
*/
bool showBackdrop() const;
/**
* @brief Gets or sets a value indicating whether to show backdrops on this item.
*/
void setShowBackdrop(bool newShowBackdrop);
/**
* @brief Gets or sets a value indicating whether [remember sorting].
*/
bool rememberSorting() const;
/**
* @brief Gets or sets a value indicating whether [remember sorting].
*/
void setRememberSorting(bool newRememberSorting);
SortOrder sortOrder() const;
void setSortOrder(SortOrder newSortOrder);
/**
* @brief Gets or sets a value indicating whether [show sidebar].
*/
bool showSidebar() const;
/**
* @brief Gets or sets a value indicating whether [show sidebar].
*/
void setShowSidebar(bool newShowSidebar);
/**
* @brief Gets or sets the client.
*/
QString client() const;
/**
* @brief Gets or sets the client.
*/
void setClient(QString newClient);
bool clientNull() const;
void setClientNull();
protected:
QString m_jellyfinId;
QString m_viewType;
QString m_sortBy;
QString m_indexBy;
bool m_rememberIndexing;
qint32 m_primaryImageHeight;
qint32 m_primaryImageWidth;
std::optional<QJsonObject> m_customPrefs = std::nullopt;
ScrollDirection m_scrollDirection;
bool m_showBackdrop;
bool m_rememberSorting;
SortOrder m_sortOrder;
bool m_showSidebar;
QString m_client;
};
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_DISPLAYPREFERENCESDTO_H

View file

@ -0,0 +1,61 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_DLNAPROFILETYPE_H
#define JELLYFIN_DTO_DLNAPROFILETYPE_H
#include <QJsonValue>
#include <QObject>
#include <QString>
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class DlnaProfileTypeClass {
Q_GADGET
public:
enum Value {
EnumNotSet,
Audio,
Video,
Photo,
};
Q_ENUM(Value)
private:
explicit DlnaProfileTypeClass();
};
typedef DlnaProfileTypeClass::Value DlnaProfileType;
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_DLNAPROFILETYPE_H

View file

@ -0,0 +1,68 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_DYNAMICDAYOFWEEK_H
#define JELLYFIN_DTO_DYNAMICDAYOFWEEK_H
#include <QJsonValue>
#include <QObject>
#include <QString>
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class DynamicDayOfWeekClass {
Q_GADGET
public:
enum Value {
EnumNotSet,
Sunday,
Monday,
Tuesday,
Wednesday,
Thursday,
Friday,
Saturday,
Everyday,
Weekday,
Weekend,
};
Q_ENUM(Value)
private:
explicit DynamicDayOfWeekClass();
};
typedef DynamicDayOfWeekClass::Value DynamicDayOfWeek;
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_DYNAMICDAYOFWEEK_H

View file

@ -0,0 +1,60 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_ENCODINGCONTEXT_H
#define JELLYFIN_DTO_ENCODINGCONTEXT_H
#include <QJsonValue>
#include <QObject>
#include <QString>
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class EncodingContextClass {
Q_GADGET
public:
enum Value {
EnumNotSet,
Streaming,
Static,
};
Q_ENUM(Value)
private:
explicit EncodingContextClass();
};
typedef EncodingContextClass::Value EncodingContext;
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_ENCODINGCONTEXT_H

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.
*/
#ifndef JELLYFIN_DTO_ENDPOINTINFO_H
#define JELLYFIN_DTO_ENDPOINTINFO_H
#include <QJsonObject>
#include <QJsonValue>
#include <optional>
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class EndPointInfo {
public:
EndPointInfo();
EndPointInfo(const EndPointInfo &other);
/**
* Replaces the data being hold by this class with that of the other.
*/
void replaceData(EndPointInfo &other);
static EndPointInfo fromJson(QJsonObject source);
void setFromJson(QJsonObject source);
QJsonObject toJson();
// Properties
bool isLocal() const;
void setIsLocal(bool newIsLocal);
bool isInNetwork() const;
void setIsInNetwork(bool newIsInNetwork);
protected:
bool m_isLocal;
bool m_isInNetwork;
};
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_ENDPOINTINFO_H

View file

@ -0,0 +1,109 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_EXTERNALIDINFO_H
#define JELLYFIN_DTO_EXTERNALIDINFO_H
#include <QJsonObject>
#include <QJsonValue>
#include <QString>
#include <optional>
#include "JellyfinQt/dto/externalidmediatype.h"
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class ExternalIdInfo {
public:
ExternalIdInfo();
ExternalIdInfo(const ExternalIdInfo &other);
/**
* Replaces the data being hold by this class with that of the other.
*/
void replaceData(ExternalIdInfo &other);
static ExternalIdInfo fromJson(QJsonObject source);
void setFromJson(QJsonObject source);
QJsonObject toJson();
// Properties
/**
* @brief Gets or sets the display name of the external id provider (IE: IMDB, MusicBrainz, etc).
*/
QString name() const;
/**
* @brief Gets or sets the display name of the external id provider (IE: IMDB, MusicBrainz, etc).
*/
void setName(QString newName);
bool nameNull() const;
void setNameNull();
/**
* @brief Gets or sets the unique key for this id. This key should be unique across all providers.
*/
QString key() const;
/**
* @brief Gets or sets the unique key for this id. This key should be unique across all providers.
*/
void setKey(QString newKey);
bool keyNull() const;
void setKeyNull();
ExternalIdMediaType type() const;
void setType(ExternalIdMediaType newType);
/**
* @brief Gets or sets the URL format string.
*/
QString urlFormatString() const;
/**
* @brief Gets or sets the URL format string.
*/
void setUrlFormatString(QString newUrlFormatString);
bool urlFormatStringNull() const;
void setUrlFormatStringNull();
protected:
QString m_name;
QString m_key;
ExternalIdMediaType m_type;
QString m_urlFormatString;
};
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_EXTERNALIDINFO_H

View file

@ -0,0 +1,70 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_EXTERNALIDMEDIATYPE_H
#define JELLYFIN_DTO_EXTERNALIDMEDIATYPE_H
#include <QJsonValue>
#include <QObject>
#include <QString>
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class ExternalIdMediaTypeClass {
Q_GADGET
public:
enum Value {
EnumNotSet,
Album,
AlbumArtist,
Artist,
BoxSet,
Episode,
Movie,
OtherArtist,
Person,
ReleaseGroup,
Season,
Series,
Track,
};
Q_ENUM(Value)
private:
explicit ExternalIdMediaTypeClass();
};
typedef ExternalIdMediaTypeClass::Value ExternalIdMediaType;
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_EXTERNALIDMEDIATYPE_H

View file

@ -0,0 +1,90 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_EXTERNALURL_H
#define JELLYFIN_DTO_EXTERNALURL_H
#include <QJsonObject>
#include <QJsonValue>
#include <QString>
#include <optional>
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class ExternalUrl {
public:
ExternalUrl();
ExternalUrl(const ExternalUrl &other);
/**
* Replaces the data being hold by this class with that of the other.
*/
void replaceData(ExternalUrl &other);
static ExternalUrl fromJson(QJsonObject source);
void setFromJson(QJsonObject source);
QJsonObject toJson();
// Properties
/**
* @brief Gets or sets the name.
*/
QString name() const;
/**
* @brief Gets or sets the name.
*/
void setName(QString newName);
bool nameNull() const;
void setNameNull();
/**
* @brief Gets or sets the type of the item.
*/
QString url() const;
/**
* @brief Gets or sets the type of the item.
*/
void setUrl(QString newUrl);
bool urlNull() const;
void setUrlNull();
protected:
QString m_name;
QString m_url;
};
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_EXTERNALURL_H

View file

@ -0,0 +1,62 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_FFMPEGLOCATION_H
#define JELLYFIN_DTO_FFMPEGLOCATION_H
#include <QJsonValue>
#include <QObject>
#include <QString>
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class FFmpegLocationClass {
Q_GADGET
public:
enum Value {
EnumNotSet,
NotFound,
SetByArgument,
Custom,
System,
};
Q_ENUM(Value)
private:
explicit FFmpegLocationClass();
};
typedef FFmpegLocationClass::Value FFmpegLocation;
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_FFMPEGLOCATION_H

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.
*/
#ifndef JELLYFIN_DTO_FILESYSTEMENTRYINFO_H
#define JELLYFIN_DTO_FILESYSTEMENTRYINFO_H
#include <QJsonObject>
#include <QJsonValue>
#include <QString>
#include <optional>
#include "JellyfinQt/dto/filesystementrytype.h"
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class FileSystemEntryInfo {
public:
FileSystemEntryInfo();
FileSystemEntryInfo(const FileSystemEntryInfo &other);
/**
* Replaces the data being hold by this class with that of the other.
*/
void replaceData(FileSystemEntryInfo &other);
static FileSystemEntryInfo fromJson(QJsonObject source);
void setFromJson(QJsonObject source);
QJsonObject toJson();
// Properties
/**
* @brief Gets the name.
*/
QString name() const;
/**
* @brief Gets the name.
*/
void setName(QString newName);
bool nameNull() const;
void setNameNull();
/**
* @brief Gets the path.
*/
QString path() const;
/**
* @brief Gets the path.
*/
void setPath(QString newPath);
bool pathNull() const;
void setPathNull();
FileSystemEntryType type() const;
void setType(FileSystemEntryType newType);
protected:
QString m_name;
QString m_path;
FileSystemEntryType m_type;
};
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_FILESYSTEMENTRYINFO_H

View file

@ -0,0 +1,62 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_FILESYSTEMENTRYTYPE_H
#define JELLYFIN_DTO_FILESYSTEMENTRYTYPE_H
#include <QJsonValue>
#include <QObject>
#include <QString>
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class FileSystemEntryTypeClass {
Q_GADGET
public:
enum Value {
EnumNotSet,
File,
Directory,
NetworkComputer,
NetworkShare,
};
Q_ENUM(Value)
private:
explicit FileSystemEntryTypeClass();
};
typedef FileSystemEntryTypeClass::Value FileSystemEntryType;
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_FILESYSTEMENTRYTYPE_H

View file

@ -0,0 +1,109 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_FONTFILE_H
#define JELLYFIN_DTO_FONTFILE_H
#include <QDateTime>
#include <QJsonObject>
#include <QJsonValue>
#include <QString>
#include <optional>
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class FontFile {
public:
FontFile();
FontFile(const FontFile &other);
/**
* Replaces the data being hold by this class with that of the other.
*/
void replaceData(FontFile &other);
static FontFile fromJson(QJsonObject source);
void setFromJson(QJsonObject source);
QJsonObject toJson();
// Properties
/**
* @brief Gets or sets the name.
*/
QString name() const;
/**
* @brief Gets or sets the name.
*/
void setName(QString newName);
bool nameNull() const;
void setNameNull();
/**
* @brief Gets or sets the size.
*/
qint64 size() const;
/**
* @brief Gets or sets the size.
*/
void setSize(qint64 newSize);
/**
* @brief Gets or sets the date created.
*/
QDateTime dateCreated() const;
/**
* @brief Gets or sets the date created.
*/
void setDateCreated(QDateTime newDateCreated);
/**
* @brief Gets or sets the date modified.
*/
QDateTime dateModified() const;
/**
* @brief Gets or sets the date modified.
*/
void setDateModified(QDateTime newDateModified);
protected:
QString m_name;
qint64 m_size;
QDateTime m_dateCreated;
QDateTime m_dateModified;
};
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_FONTFILE_H

View file

@ -0,0 +1,61 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_FORGOTPASSWORDACTION_H
#define JELLYFIN_DTO_FORGOTPASSWORDACTION_H
#include <QJsonValue>
#include <QObject>
#include <QString>
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class ForgotPasswordActionClass {
Q_GADGET
public:
enum Value {
EnumNotSet,
ContactAdmin,
PinCode,
InNetworkRequired,
};
Q_ENUM(Value)
private:
explicit ForgotPasswordActionClass();
};
typedef ForgotPasswordActionClass::Value ForgotPasswordAction;
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_FORGOTPASSWORDACTION_H

View file

@ -0,0 +1,76 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_FORGOTPASSWORDDTO_H
#define JELLYFIN_DTO_FORGOTPASSWORDDTO_H
#include <QJsonObject>
#include <QJsonValue>
#include <QString>
#include <optional>
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class ForgotPasswordDto {
public:
ForgotPasswordDto();
ForgotPasswordDto(const ForgotPasswordDto &other);
/**
* Replaces the data being hold by this class with that of the other.
*/
void replaceData(ForgotPasswordDto &other);
static ForgotPasswordDto fromJson(QJsonObject source);
void setFromJson(QJsonObject source);
QJsonObject toJson();
// Properties
/**
* @brief Gets or sets the entered username to have its password reset.
*/
QString enteredUsername() const;
/**
* @brief Gets or sets the entered username to have its password reset.
*/
void setEnteredUsername(QString newEnteredUsername);
protected:
QString m_enteredUsername;
};
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_FORGOTPASSWORDDTO_H

View file

@ -0,0 +1,98 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_FORGOTPASSWORDRESULT_H
#define JELLYFIN_DTO_FORGOTPASSWORDRESULT_H
#include <QDateTime>
#include <QJsonObject>
#include <QJsonValue>
#include <QString>
#include <optional>
#include "JellyfinQt/dto/forgotpasswordaction.h"
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class ForgotPasswordResult {
public:
ForgotPasswordResult();
ForgotPasswordResult(const ForgotPasswordResult &other);
/**
* Replaces the data being hold by this class with that of the other.
*/
void replaceData(ForgotPasswordResult &other);
static ForgotPasswordResult fromJson(QJsonObject source);
void setFromJson(QJsonObject source);
QJsonObject toJson();
// Properties
ForgotPasswordAction action() const;
void setAction(ForgotPasswordAction newAction);
/**
* @brief Gets or sets the pin file.
*/
QString pinFile() const;
/**
* @brief Gets or sets the pin file.
*/
void setPinFile(QString newPinFile);
bool pinFileNull() const;
void setPinFileNull();
/**
* @brief Gets or sets the pin expiration date.
*/
QDateTime pinExpirationDate() const;
/**
* @brief Gets or sets the pin expiration date.
*/
void setPinExpirationDate(QDateTime newPinExpirationDate);
bool pinExpirationDateNull() const;
void setPinExpirationDateNull();
protected:
ForgotPasswordAction m_action;
QString m_pinFile;
QDateTime m_pinExpirationDate;
};
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_FORGOTPASSWORDRESULT_H

View file

@ -0,0 +1,87 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_GENERALCOMMAND_H
#define JELLYFIN_DTO_GENERALCOMMAND_H
#include <QJsonObject>
#include <QJsonValue>
#include <QString>
#include <optional>
#include "JellyfinQt/dto/generalcommandtype.h"
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class GeneralCommand {
public:
GeneralCommand();
GeneralCommand(const GeneralCommand &other);
/**
* Replaces the data being hold by this class with that of the other.
*/
void replaceData(GeneralCommand &other);
static GeneralCommand fromJson(QJsonObject source);
void setFromJson(QJsonObject source);
QJsonObject toJson();
// Properties
GeneralCommandType name() const;
void setName(GeneralCommandType newName);
QString controllingUserId() const;
void setControllingUserId(QString newControllingUserId);
std::optional<QJsonObject> arguments() const;
void setArguments(std::optional<QJsonObject> newArguments);
bool argumentsNull() const;
void setArgumentsNull();
protected:
GeneralCommandType m_name;
QString m_controllingUserId;
std::optional<QJsonObject> m_arguments = std::nullopt;
};
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_GENERALCOMMAND_H

View file

@ -0,0 +1,99 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_GENERALCOMMANDTYPE_H
#define JELLYFIN_DTO_GENERALCOMMANDTYPE_H
#include <QJsonValue>
#include <QObject>
#include <QString>
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class GeneralCommandTypeClass {
Q_GADGET
public:
enum Value {
EnumNotSet,
MoveUp,
MoveDown,
MoveLeft,
MoveRight,
PageUp,
PageDown,
PreviousLetter,
NextLetter,
ToggleOsd,
ToggleContextMenu,
Select,
Back,
TakeScreenshot,
SendKey,
SendString,
GoHome,
GoToSettings,
VolumeUp,
VolumeDown,
Mute,
Unmute,
ToggleMute,
SetVolume,
SetAudioStreamIndex,
SetSubtitleStreamIndex,
ToggleFullscreen,
DisplayContent,
GoToSearch,
DisplayMessage,
SetRepeatMode,
ChannelUp,
ChannelDown,
Guide,
ToggleStats,
PlayMediaSource,
PlayTrailers,
SetShuffleQueue,
PlayState,
PlayNext,
ToggleOsdMenu,
Play,
};
Q_ENUM(Value)
private:
explicit GeneralCommandTypeClass();
};
typedef GeneralCommandTypeClass::Value GeneralCommandType;
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_GENERALCOMMANDTYPE_H

View file

@ -0,0 +1,431 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_GETPROGRAMSDTO_H
#define JELLYFIN_DTO_GETPROGRAMSDTO_H
#include <QDateTime>
#include <QJsonObject>
#include <QJsonValue>
#include <QList>
#include <QString>
#include <QStringList>
#include <optional>
#include "JellyfinQt/dto/imagetype.h"
#include "JellyfinQt/dto/itemfields.h"
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class GetProgramsDto {
public:
GetProgramsDto();
GetProgramsDto(const GetProgramsDto &other);
/**
* Replaces the data being hold by this class with that of the other.
*/
void replaceData(GetProgramsDto &other);
static GetProgramsDto fromJson(QJsonObject source);
void setFromJson(QJsonObject source);
QJsonObject toJson();
// Properties
/**
* @brief Gets or sets the channels to return guide information for.
*/
QStringList channelIds() const;
/**
* @brief Gets or sets the channels to return guide information for.
*/
void setChannelIds(QStringList newChannelIds);
bool channelIdsNull() const;
void setChannelIdsNull();
/**
* @brief Gets or sets optional. Filter by user id.
*/
QString userId() const;
/**
* @brief Gets or sets optional. Filter by user id.
*/
void setUserId(QString newUserId);
/**
* @brief Gets or sets the minimum premiere start date.
Optional.
*/
QDateTime minStartDate() const;
/**
* @brief Gets or sets the minimum premiere start date.
Optional.
*/
void setMinStartDate(QDateTime newMinStartDate);
bool minStartDateNull() const;
void setMinStartDateNull();
/**
* @brief Gets or sets filter by programs that have completed airing, or not.
Optional.
*/
std::optional<bool> hasAired() const;
/**
* @brief Gets or sets filter by programs that have completed airing, or not.
Optional.
*/
void setHasAired(std::optional<bool> newHasAired);
bool hasAiredNull() const;
void setHasAiredNull();
/**
* @brief Gets or sets filter by programs that are currently airing, or not.
Optional.
*/
std::optional<bool> isAiring() const;
/**
* @brief Gets or sets filter by programs that are currently airing, or not.
Optional.
*/
void setIsAiring(std::optional<bool> newIsAiring);
bool isAiringNull() const;
void setIsAiringNull();
/**
* @brief Gets or sets the maximum premiere start date.
Optional.
*/
QDateTime maxStartDate() const;
/**
* @brief Gets or sets the maximum premiere start date.
Optional.
*/
void setMaxStartDate(QDateTime newMaxStartDate);
bool maxStartDateNull() const;
void setMaxStartDateNull();
/**
* @brief Gets or sets the minimum premiere end date.
Optional.
*/
QDateTime minEndDate() const;
/**
* @brief Gets or sets the minimum premiere end date.
Optional.
*/
void setMinEndDate(QDateTime newMinEndDate);
bool minEndDateNull() const;
void setMinEndDateNull();
/**
* @brief Gets or sets the maximum premiere end date.
Optional.
*/
QDateTime maxEndDate() const;
/**
* @brief Gets or sets the maximum premiere end date.
Optional.
*/
void setMaxEndDate(QDateTime newMaxEndDate);
bool maxEndDateNull() const;
void setMaxEndDateNull();
/**
* @brief Gets or sets filter for movies.
Optional.
*/
std::optional<bool> isMovie() const;
/**
* @brief Gets or sets filter for movies.
Optional.
*/
void setIsMovie(std::optional<bool> newIsMovie);
bool isMovieNull() const;
void setIsMovieNull();
/**
* @brief Gets or sets filter for series.
Optional.
*/
std::optional<bool> isSeries() const;
/**
* @brief Gets or sets filter for series.
Optional.
*/
void setIsSeries(std::optional<bool> newIsSeries);
bool isSeriesNull() const;
void setIsSeriesNull();
/**
* @brief Gets or sets filter for news.
Optional.
*/
std::optional<bool> isNews() const;
/**
* @brief Gets or sets filter for news.
Optional.
*/
void setIsNews(std::optional<bool> newIsNews);
bool isNewsNull() const;
void setIsNewsNull();
/**
* @brief Gets or sets filter for kids.
Optional.
*/
std::optional<bool> isKids() const;
/**
* @brief Gets or sets filter for kids.
Optional.
*/
void setIsKids(std::optional<bool> newIsKids);
bool isKidsNull() const;
void setIsKidsNull();
/**
* @brief Gets or sets filter for sports.
Optional.
*/
std::optional<bool> isSports() const;
/**
* @brief Gets or sets filter for sports.
Optional.
*/
void setIsSports(std::optional<bool> newIsSports);
bool isSportsNull() const;
void setIsSportsNull();
/**
* @brief Gets or sets the record index to start at. All items with a lower index will be dropped from the results.
Optional.
*/
std::optional<qint32> startIndex() const;
/**
* @brief Gets or sets the record index to start at. All items with a lower index will be dropped from the results.
Optional.
*/
void setStartIndex(std::optional<qint32> newStartIndex);
bool startIndexNull() const;
void setStartIndexNull();
/**
* @brief Gets or sets the maximum number of records to return.
Optional.
*/
std::optional<qint32> limit() const;
/**
* @brief Gets or sets the maximum number of records to return.
Optional.
*/
void setLimit(std::optional<qint32> newLimit);
bool limitNull() const;
void setLimitNull();
/**
* @brief Gets or sets specify one or more sort orders, comma delimited. Options: Name, StartDate.
Optional.
*/
QString sortBy() const;
/**
* @brief Gets or sets specify one or more sort orders, comma delimited. Options: Name, StartDate.
Optional.
*/
void setSortBy(QString newSortBy);
bool sortByNull() const;
void setSortByNull();
/**
* @brief Gets or sets sort Order - Ascending,Descending.
*/
QString sortOrder() const;
/**
* @brief Gets or sets sort Order - Ascending,Descending.
*/
void setSortOrder(QString newSortOrder);
bool sortOrderNull() const;
void setSortOrderNull();
/**
* @brief Gets or sets the genres to return guide information for.
*/
QStringList genres() const;
/**
* @brief Gets or sets the genres to return guide information for.
*/
void setGenres(QStringList newGenres);
bool genresNull() const;
void setGenresNull();
/**
* @brief Gets or sets the genre ids to return guide information for.
*/
QStringList genreIds() const;
/**
* @brief Gets or sets the genre ids to return guide information for.
*/
void setGenreIds(QStringList newGenreIds);
bool genreIdsNull() const;
void setGenreIdsNull();
/**
* @brief Gets or sets include image information in output.
Optional.
*/
std::optional<bool> enableImages() const;
/**
* @brief Gets or sets include image information in output.
Optional.
*/
void setEnableImages(std::optional<bool> newEnableImages);
bool enableImagesNull() const;
void setEnableImagesNull();
/**
* @brief Gets or sets a value indicating whether retrieve total record count.
*/
bool enableTotalRecordCount() const;
/**
* @brief Gets or sets a value indicating whether retrieve total record count.
*/
void setEnableTotalRecordCount(bool newEnableTotalRecordCount);
/**
* @brief Gets or sets the max number of images to return, per image type.
Optional.
*/
std::optional<qint32> imageTypeLimit() const;
/**
* @brief Gets or sets the max number of images to return, per image type.
Optional.
*/
void setImageTypeLimit(std::optional<qint32> newImageTypeLimit);
bool imageTypeLimitNull() const;
void setImageTypeLimitNull();
/**
* @brief Gets or sets the image types to include in the output.
Optional.
*/
QList<ImageType> enableImageTypes() const;
/**
* @brief Gets or sets the image types to include in the output.
Optional.
*/
void setEnableImageTypes(QList<ImageType> newEnableImageTypes);
bool enableImageTypesNull() const;
void setEnableImageTypesNull();
/**
* @brief Gets or sets include user data.
Optional.
*/
std::optional<bool> enableUserData() const;
/**
* @brief Gets or sets include user data.
Optional.
*/
void setEnableUserData(std::optional<bool> newEnableUserData);
bool enableUserDataNull() const;
void setEnableUserDataNull();
/**
* @brief Gets or sets filter by series timer id.
Optional.
*/
QString seriesTimerId() const;
/**
* @brief Gets or sets filter by series timer id.
Optional.
*/
void setSeriesTimerId(QString newSeriesTimerId);
bool seriesTimerIdNull() const;
void setSeriesTimerIdNull();
/**
* @brief Gets or sets filter by library series id.
Optional.
*/
QString librarySeriesId() const;
/**
* @brief Gets or sets filter by library series id.
Optional.
*/
void setLibrarySeriesId(QString newLibrarySeriesId);
/**
* @brief Gets or sets specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines.
Optional.
*/
QList<ItemFields> fields() const;
/**
* @brief Gets or sets specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines.
Optional.
*/
void setFields(QList<ItemFields> newFields);
bool fieldsNull() const;
void setFieldsNull();
protected:
QStringList m_channelIds;
QString m_userId;
QDateTime m_minStartDate;
std::optional<bool> m_hasAired = std::nullopt;
std::optional<bool> m_isAiring = std::nullopt;
QDateTime m_maxStartDate;
QDateTime m_minEndDate;
QDateTime m_maxEndDate;
std::optional<bool> m_isMovie = std::nullopt;
std::optional<bool> m_isSeries = std::nullopt;
std::optional<bool> m_isNews = std::nullopt;
std::optional<bool> m_isKids = std::nullopt;
std::optional<bool> m_isSports = std::nullopt;
std::optional<qint32> m_startIndex = std::nullopt;
std::optional<qint32> m_limit = std::nullopt;
QString m_sortBy;
QString m_sortOrder;
QStringList m_genres;
QStringList m_genreIds;
std::optional<bool> m_enableImages = std::nullopt;
bool m_enableTotalRecordCount;
std::optional<qint32> m_imageTypeLimit = std::nullopt;
QList<ImageType> m_enableImageTypes;
std::optional<bool> m_enableUserData = std::nullopt;
QString m_seriesTimerId;
QString m_librarySeriesId;
QList<ItemFields> m_fields;
};
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_GETPROGRAMSDTO_H

View file

@ -0,0 +1,120 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_GROUPINFODTO_H
#define JELLYFIN_DTO_GROUPINFODTO_H
#include <QDateTime>
#include <QJsonObject>
#include <QJsonValue>
#include <QList>
#include <QString>
#include <QStringList>
#include <optional>
#include "JellyfinQt/dto/groupstatetype.h"
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class GroupInfoDto {
public:
GroupInfoDto();
GroupInfoDto(const GroupInfoDto &other);
/**
* Replaces the data being hold by this class with that of the other.
*/
void replaceData(GroupInfoDto &other);
static GroupInfoDto fromJson(QJsonObject source);
void setFromJson(QJsonObject source);
QJsonObject toJson();
// Properties
/**
* @brief Gets the group identifier.
*/
QString groupId() const;
/**
* @brief Gets the group identifier.
*/
void setGroupId(QString newGroupId);
/**
* @brief Gets the group name.
*/
QString groupName() const;
/**
* @brief Gets the group name.
*/
void setGroupName(QString newGroupName);
bool groupNameNull() const;
void setGroupNameNull();
GroupStateType state() const;
void setState(GroupStateType newState);
/**
* @brief Gets the participants.
*/
QStringList participants() const;
/**
* @brief Gets the participants.
*/
void setParticipants(QStringList newParticipants);
bool participantsNull() const;
void setParticipantsNull();
/**
* @brief Gets the date when this DTO has been created.
*/
QDateTime lastUpdatedAt() const;
/**
* @brief Gets the date when this DTO has been created.
*/
void setLastUpdatedAt(QDateTime newLastUpdatedAt);
protected:
QString m_groupId;
QString m_groupName;
GroupStateType m_state;
QStringList m_participants;
QDateTime m_lastUpdatedAt;
};
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_GROUPINFODTO_H

View file

@ -0,0 +1,60 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_GROUPQUEUEMODE_H
#define JELLYFIN_DTO_GROUPQUEUEMODE_H
#include <QJsonValue>
#include <QObject>
#include <QString>
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class GroupQueueModeClass {
Q_GADGET
public:
enum Value {
EnumNotSet,
Queue,
QueueNext,
};
Q_ENUM(Value)
private:
explicit GroupQueueModeClass();
};
typedef GroupQueueModeClass::Value GroupQueueMode;
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_GROUPQUEUEMODE_H

View file

@ -0,0 +1,61 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_GROUPREPEATMODE_H
#define JELLYFIN_DTO_GROUPREPEATMODE_H
#include <QJsonValue>
#include <QObject>
#include <QString>
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class GroupRepeatModeClass {
Q_GADGET
public:
enum Value {
EnumNotSet,
RepeatOne,
RepeatAll,
RepeatNone,
};
Q_ENUM(Value)
private:
explicit GroupRepeatModeClass();
};
typedef GroupRepeatModeClass::Value GroupRepeatMode;
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_GROUPREPEATMODE_H

View file

@ -0,0 +1,60 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_GROUPSHUFFLEMODE_H
#define JELLYFIN_DTO_GROUPSHUFFLEMODE_H
#include <QJsonValue>
#include <QObject>
#include <QString>
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class GroupShuffleModeClass {
Q_GADGET
public:
enum Value {
EnumNotSet,
Sorted,
Shuffle,
};
Q_ENUM(Value)
private:
explicit GroupShuffleModeClass();
};
typedef GroupShuffleModeClass::Value GroupShuffleMode;
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_GROUPSHUFFLEMODE_H

View file

@ -0,0 +1,62 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_GROUPSTATETYPE_H
#define JELLYFIN_DTO_GROUPSTATETYPE_H
#include <QJsonValue>
#include <QObject>
#include <QString>
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class GroupStateTypeClass {
Q_GADGET
public:
enum Value {
EnumNotSet,
Idle,
Waiting,
Paused,
Playing,
};
Q_ENUM(Value)
private:
explicit GroupStateTypeClass();
};
typedef GroupStateTypeClass::Value GroupStateType;
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_GROUPSTATETYPE_H

View file

@ -0,0 +1,69 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_GROUPUPDATETYPE_H
#define JELLYFIN_DTO_GROUPUPDATETYPE_H
#include <QJsonValue>
#include <QObject>
#include <QString>
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class GroupUpdateTypeClass {
Q_GADGET
public:
enum Value {
EnumNotSet,
UserJoined,
UserLeft,
GroupJoined,
GroupLeft,
StateUpdate,
PlayQueue,
NotInGroup,
GroupDoesNotExist,
CreateGroupDenied,
JoinGroupDenied,
LibraryAccessDenied,
};
Q_ENUM(Value)
private:
explicit GroupUpdateTypeClass();
};
typedef GroupUpdateTypeClass::Value GroupUpdateType;
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_GROUPUPDATETYPE_H

View file

@ -0,0 +1,86 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_GUIDEINFO_H
#define JELLYFIN_DTO_GUIDEINFO_H
#include <QDateTime>
#include <QJsonObject>
#include <QJsonValue>
#include <optional>
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class GuideInfo {
public:
GuideInfo();
GuideInfo(const GuideInfo &other);
/**
* Replaces the data being hold by this class with that of the other.
*/
void replaceData(GuideInfo &other);
static GuideInfo fromJson(QJsonObject source);
void setFromJson(QJsonObject source);
QJsonObject toJson();
// Properties
/**
* @brief Gets or sets the start date.
*/
QDateTime startDate() const;
/**
* @brief Gets or sets the start date.
*/
void setStartDate(QDateTime newStartDate);
/**
* @brief Gets or sets the end date.
*/
QDateTime endDate() const;
/**
* @brief Gets or sets the end date.
*/
void setEndDate(QDateTime newEndDate);
protected:
QDateTime m_startDate;
QDateTime m_endDate;
};
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_GUIDEINFO_H

View file

@ -0,0 +1,61 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_HEADERMATCHTYPE_H
#define JELLYFIN_DTO_HEADERMATCHTYPE_H
#include <QJsonValue>
#include <QObject>
#include <QString>
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class HeaderMatchTypeClass {
Q_GADGET
public:
enum Value {
EnumNotSet,
Equals,
Regex,
Substring,
};
Q_ENUM(Value)
private:
explicit HeaderMatchTypeClass();
};
typedef HeaderMatchTypeClass::Value HeaderMatchType;
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_HEADERMATCHTYPE_H

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.
*/
#ifndef JELLYFIN_DTO_HTTPHEADERINFO_H
#define JELLYFIN_DTO_HTTPHEADERINFO_H
#include <QJsonObject>
#include <QJsonValue>
#include <QString>
#include <optional>
#include "JellyfinQt/dto/headermatchtype.h"
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class HttpHeaderInfo {
public:
HttpHeaderInfo();
HttpHeaderInfo(const HttpHeaderInfo &other);
/**
* Replaces the data being hold by this class with that of the other.
*/
void replaceData(HttpHeaderInfo &other);
static HttpHeaderInfo fromJson(QJsonObject source);
void setFromJson(QJsonObject source);
QJsonObject toJson();
// Properties
QString name() const;
void setName(QString newName);
bool nameNull() const;
void setNameNull();
QString value() const;
void setValue(QString newValue);
bool valueNull() const;
void setValueNull();
HeaderMatchType match() const;
void setMatch(HeaderMatchType newMatch);
protected:
QString m_name;
QString m_value;
HeaderMatchType m_match;
};
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_HTTPHEADERINFO_H

View file

@ -0,0 +1,75 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_IGNOREWAITREQUESTDTO_H
#define JELLYFIN_DTO_IGNOREWAITREQUESTDTO_H
#include <QJsonObject>
#include <QJsonValue>
#include <optional>
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class IgnoreWaitRequestDto {
public:
IgnoreWaitRequestDto();
IgnoreWaitRequestDto(const IgnoreWaitRequestDto &other);
/**
* Replaces the data being hold by this class with that of the other.
*/
void replaceData(IgnoreWaitRequestDto &other);
static IgnoreWaitRequestDto fromJson(QJsonObject source);
void setFromJson(QJsonObject source);
QJsonObject toJson();
// Properties
/**
* @brief Gets or sets a value indicating whether the client should be ignored.
*/
bool ignoreWait() const;
/**
* @brief Gets or sets a value indicating whether the client should be ignored.
*/
void setIgnoreWait(bool newIgnoreWait);
protected:
bool m_ignoreWait;
};
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_IGNOREWAITREQUESTDTO_H

View file

@ -0,0 +1,124 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_IMAGEBYNAMEINFO_H
#define JELLYFIN_DTO_IMAGEBYNAMEINFO_H
#include <QJsonObject>
#include <QJsonValue>
#include <QString>
#include <optional>
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class ImageByNameInfo {
public:
ImageByNameInfo();
ImageByNameInfo(const ImageByNameInfo &other);
/**
* Replaces the data being hold by this class with that of the other.
*/
void replaceData(ImageByNameInfo &other);
static ImageByNameInfo fromJson(QJsonObject source);
void setFromJson(QJsonObject source);
QJsonObject toJson();
// Properties
/**
* @brief Gets or sets the name.
*/
QString name() const;
/**
* @brief Gets or sets the name.
*/
void setName(QString newName);
bool nameNull() const;
void setNameNull();
/**
* @brief Gets or sets the theme.
*/
QString theme() const;
/**
* @brief Gets or sets the theme.
*/
void setTheme(QString newTheme);
bool themeNull() const;
void setThemeNull();
/**
* @brief Gets or sets the context.
*/
QString context() const;
/**
* @brief Gets or sets the context.
*/
void setContext(QString newContext);
bool contextNull() const;
void setContextNull();
/**
* @brief Gets or sets the length of the file.
*/
qint64 fileLength() const;
/**
* @brief Gets or sets the length of the file.
*/
void setFileLength(qint64 newFileLength);
/**
* @brief Gets or sets the format.
*/
QString format() const;
/**
* @brief Gets or sets the format.
*/
void setFormat(QString newFormat);
bool formatNull() const;
void setFormatNull();
protected:
QString m_name;
QString m_theme;
QString m_context;
qint64 m_fileLength;
QString m_format;
};
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_IMAGEBYNAMEINFO_H

View file

@ -0,0 +1,63 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_IMAGEFORMAT_H
#define JELLYFIN_DTO_IMAGEFORMAT_H
#include <QJsonValue>
#include <QObject>
#include <QString>
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class ImageFormatClass {
Q_GADGET
public:
enum Value {
EnumNotSet,
Bmp,
Gif,
Jpg,
Png,
Webp,
};
Q_ENUM(Value)
private:
explicit ImageFormatClass();
};
typedef ImageFormatClass::Value ImageFormat;
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_IMAGEFORMAT_H

View file

@ -0,0 +1,155 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_IMAGEINFO_H
#define JELLYFIN_DTO_IMAGEINFO_H
#include <QJsonObject>
#include <QJsonValue>
#include <QString>
#include <optional>
#include "JellyfinQt/dto/imagetype.h"
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class ImageInfo {
public:
ImageInfo();
ImageInfo(const ImageInfo &other);
/**
* Replaces the data being hold by this class with that of the other.
*/
void replaceData(ImageInfo &other);
static ImageInfo fromJson(QJsonObject source);
void setFromJson(QJsonObject source);
QJsonObject toJson();
// Properties
ImageType imageType() const;
void setImageType(ImageType newImageType);
/**
* @brief Gets or sets the index of the image.
*/
std::optional<qint32> imageIndex() const;
/**
* @brief Gets or sets the index of the image.
*/
void setImageIndex(std::optional<qint32> newImageIndex);
bool imageIndexNull() const;
void setImageIndexNull();
/**
* @brief Gets or sets the image tag.
*/
QString imageTag() const;
/**
* @brief Gets or sets the image tag.
*/
void setImageTag(QString newImageTag);
bool imageTagNull() const;
void setImageTagNull();
/**
* @brief Gets or sets the path.
*/
QString path() const;
/**
* @brief Gets or sets the path.
*/
void setPath(QString newPath);
bool pathNull() const;
void setPathNull();
/**
* @brief Gets or sets the blurhash.
*/
QString blurHash() const;
/**
* @brief Gets or sets the blurhash.
*/
void setBlurHash(QString newBlurHash);
bool blurHashNull() const;
void setBlurHashNull();
/**
* @brief Gets or sets the height.
*/
std::optional<qint32> height() const;
/**
* @brief Gets or sets the height.
*/
void setHeight(std::optional<qint32> newHeight);
bool heightNull() const;
void setHeightNull();
/**
* @brief Gets or sets the width.
*/
std::optional<qint32> width() const;
/**
* @brief Gets or sets the width.
*/
void setWidth(std::optional<qint32> newWidth);
bool widthNull() const;
void setWidthNull();
/**
* @brief Gets or sets the size.
*/
qint64 size() const;
/**
* @brief Gets or sets the size.
*/
void setSize(qint64 newSize);
protected:
ImageType m_imageType;
std::optional<qint32> m_imageIndex = std::nullopt;
QString m_imageTag;
QString m_path;
QString m_blurHash;
std::optional<qint32> m_height = std::nullopt;
std::optional<qint32> m_width = std::nullopt;
qint64 m_size;
};
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_IMAGEINFO_H

View file

@ -0,0 +1,92 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_IMAGEOPTION_H
#define JELLYFIN_DTO_IMAGEOPTION_H
#include <QJsonObject>
#include <QJsonValue>
#include <optional>
#include "JellyfinQt/dto/imagetype.h"
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class ImageOption {
public:
ImageOption();
ImageOption(const ImageOption &other);
/**
* Replaces the data being hold by this class with that of the other.
*/
void replaceData(ImageOption &other);
static ImageOption fromJson(QJsonObject source);
void setFromJson(QJsonObject source);
QJsonObject toJson();
// Properties
ImageType type() const;
void setType(ImageType newType);
/**
* @brief Gets or sets the limit.
*/
qint32 limit() const;
/**
* @brief Gets or sets the limit.
*/
void setLimit(qint32 newLimit);
/**
* @brief Gets or sets the minimum width.
*/
qint32 minWidth() const;
/**
* @brief Gets or sets the minimum width.
*/
void setMinWidth(qint32 newMinWidth);
protected:
ImageType m_type;
qint32 m_limit;
qint32 m_minWidth;
};
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_IMAGEOPTION_H

View file

@ -0,0 +1,66 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_IMAGEORIENTATION_H
#define JELLYFIN_DTO_IMAGEORIENTATION_H
#include <QJsonValue>
#include <QObject>
#include <QString>
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class ImageOrientationClass {
Q_GADGET
public:
enum Value {
EnumNotSet,
TopLeft,
TopRight,
BottomRight,
BottomLeft,
LeftTop,
RightTop,
RightBottom,
LeftBottom,
};
Q_ENUM(Value)
private:
explicit ImageOrientationClass();
};
typedef ImageOrientationClass::Value ImageOrientation;
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_IMAGEORIENTATION_H

View file

@ -0,0 +1,93 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_IMAGEPROVIDERINFO_H
#define JELLYFIN_DTO_IMAGEPROVIDERINFO_H
#include <QJsonObject>
#include <QJsonValue>
#include <QList>
#include <QString>
#include <QStringList>
#include <optional>
#include "JellyfinQt/dto/imagetype.h"
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class ImageProviderInfo {
public:
ImageProviderInfo();
ImageProviderInfo(const ImageProviderInfo &other);
/**
* Replaces the data being hold by this class with that of the other.
*/
void replaceData(ImageProviderInfo &other);
static ImageProviderInfo fromJson(QJsonObject source);
void setFromJson(QJsonObject source);
QJsonObject toJson();
// Properties
/**
* @brief Gets the name.
*/
QString name() const;
/**
* @brief Gets the name.
*/
void setName(QString newName);
bool nameNull() const;
void setNameNull();
/**
* @brief Gets the supported image types.
*/
QList<ImageType> supportedImages() const;
/**
* @brief Gets the supported image types.
*/
void setSupportedImages(QList<ImageType> newSupportedImages);
bool supportedImagesNull() const;
void setSupportedImagesNull();
protected:
QString m_name;
QList<ImageType> m_supportedImages;
};
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_IMAGEPROVIDERINFO_H

View file

@ -0,0 +1,60 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_IMAGESAVINGCONVENTION_H
#define JELLYFIN_DTO_IMAGESAVINGCONVENTION_H
#include <QJsonValue>
#include <QObject>
#include <QString>
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class ImageSavingConventionClass {
Q_GADGET
public:
enum Value {
EnumNotSet,
Legacy,
Compatible,
};
Q_ENUM(Value)
private:
explicit ImageSavingConventionClass();
};
typedef ImageSavingConventionClass::Value ImageSavingConvention;
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_IMAGESAVINGCONVENTION_H

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.
*/
#ifndef JELLYFIN_DTO_IMAGETYPE_H
#define JELLYFIN_DTO_IMAGETYPE_H
#include <QJsonValue>
#include <QObject>
#include <QString>
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class ImageTypeClass {
Q_GADGET
public:
enum Value {
EnumNotSet,
Primary,
Art,
Backdrop,
Banner,
Logo,
Thumb,
Disc,
Box,
Screenshot,
Menu,
Chapter,
BoxRear,
Profile,
};
Q_ENUM(Value)
private:
explicit ImageTypeClass();
};
typedef ImageTypeClass::Value ImageType;
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_IMAGETYPE_H

View file

@ -0,0 +1,132 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_INSTALLATIONINFO_H
#define JELLYFIN_DTO_INSTALLATIONINFO_H
#include <QJsonObject>
#include <QJsonValue>
#include <QSharedPointer>
#include <QString>
#include <optional>
#include "JellyfinQt/dto/version.h"
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class InstallationInfo {
public:
InstallationInfo();
InstallationInfo(const InstallationInfo &other);
/**
* Replaces the data being hold by this class with that of the other.
*/
void replaceData(InstallationInfo &other);
static InstallationInfo fromJson(QJsonObject source);
void setFromJson(QJsonObject source);
QJsonObject toJson();
// Properties
/**
* @brief Gets or sets the Id.
*/
QString guid() const;
/**
* @brief Gets or sets the Id.
*/
void setGuid(QString newGuid);
/**
* @brief Gets or sets the name.
*/
QString name() const;
/**
* @brief Gets or sets the name.
*/
void setName(QString newName);
bool nameNull() const;
void setNameNull();
QSharedPointer<Version> version() const;
void setVersion(QSharedPointer<Version> newVersion);
/**
* @brief Gets or sets the changelog for this version.
*/
QString changelog() const;
/**
* @brief Gets or sets the changelog for this version.
*/
void setChangelog(QString newChangelog);
bool changelogNull() const;
void setChangelogNull();
/**
* @brief Gets or sets the source URL.
*/
QString sourceUrl() const;
/**
* @brief Gets or sets the source URL.
*/
void setSourceUrl(QString newSourceUrl);
bool sourceUrlNull() const;
void setSourceUrlNull();
/**
* @brief Gets or sets a checksum for the binary.
*/
QString checksum() const;
/**
* @brief Gets or sets a checksum for the binary.
*/
void setChecksum(QString newChecksum);
bool checksumNull() const;
void setChecksumNull();
protected:
QString m_guid;
QString m_name;
QSharedPointer<Version> m_version = nullptr;
QString m_changelog;
QString m_sourceUrl;
QString m_checksum;
};
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_INSTALLATIONINFO_H

View file

@ -0,0 +1,142 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_IPLUGIN_H
#define JELLYFIN_DTO_IPLUGIN_H
#include <QJsonObject>
#include <QJsonValue>
#include <QSharedPointer>
#include <QString>
#include <optional>
#include "JellyfinQt/dto/version.h"
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class IPlugin {
public:
IPlugin();
IPlugin(const IPlugin &other);
/**
* Replaces the data being hold by this class with that of the other.
*/
void replaceData(IPlugin &other);
static IPlugin fromJson(QJsonObject source);
void setFromJson(QJsonObject source);
QJsonObject toJson();
// Properties
/**
* @brief Gets the name of the plugin.
*/
QString name() const;
/**
* @brief Gets the name of the plugin.
*/
void setName(QString newName);
bool nameNull() const;
void setNameNull();
/**
* @brief Gets the Description.
*/
QString description() const;
/**
* @brief Gets the Description.
*/
void setDescription(QString newDescription);
bool descriptionNull() const;
void setDescriptionNull();
/**
* @brief Gets the unique id.
*/
QString jellyfinId() const;
/**
* @brief Gets the unique id.
*/
void setJellyfinId(QString newJellyfinId);
QSharedPointer<Version> version() const;
void setVersion(QSharedPointer<Version> newVersion);
/**
* @brief Gets the path to the assembly file.
*/
QString assemblyFilePath() const;
/**
* @brief Gets the path to the assembly file.
*/
void setAssemblyFilePath(QString newAssemblyFilePath);
bool assemblyFilePathNull() const;
void setAssemblyFilePathNull();
/**
* @brief Gets a value indicating whether the plugin can be uninstalled.
*/
bool canUninstall() const;
/**
* @brief Gets a value indicating whether the plugin can be uninstalled.
*/
void setCanUninstall(bool newCanUninstall);
/**
* @brief Gets the full path to the data folder, where the plugin can store any miscellaneous files needed.
*/
QString dataFolderPath() const;
/**
* @brief Gets the full path to the data folder, where the plugin can store any miscellaneous files needed.
*/
void setDataFolderPath(QString newDataFolderPath);
bool dataFolderPathNull() const;
void setDataFolderPathNull();
protected:
QString m_name;
QString m_description;
QString m_jellyfinId;
QSharedPointer<Version> m_version = nullptr;
QString m_assemblyFilePath;
bool m_canUninstall;
QString m_dataFolderPath;
};
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_IPLUGIN_H

View file

@ -0,0 +1,60 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_ISOTYPE_H
#define JELLYFIN_DTO_ISOTYPE_H
#include <QJsonValue>
#include <QObject>
#include <QString>
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class IsoTypeClass {
Q_GADGET
public:
enum Value {
EnumNotSet,
Dvd,
BluRay,
};
Q_ENUM(Value)
private:
explicit IsoTypeClass();
};
typedef IsoTypeClass::Value IsoType;
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_ISOTYPE_H

View file

@ -0,0 +1,185 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_ITEMCOUNTS_H
#define JELLYFIN_DTO_ITEMCOUNTS_H
#include <QJsonObject>
#include <QJsonValue>
#include <optional>
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class ItemCounts {
public:
ItemCounts();
ItemCounts(const ItemCounts &other);
/**
* Replaces the data being hold by this class with that of the other.
*/
void replaceData(ItemCounts &other);
static ItemCounts fromJson(QJsonObject source);
void setFromJson(QJsonObject source);
QJsonObject toJson();
// Properties
/**
* @brief Gets or sets the movie count.
*/
qint32 movieCount() const;
/**
* @brief Gets or sets the movie count.
*/
void setMovieCount(qint32 newMovieCount);
/**
* @brief Gets or sets the series count.
*/
qint32 seriesCount() const;
/**
* @brief Gets or sets the series count.
*/
void setSeriesCount(qint32 newSeriesCount);
/**
* @brief Gets or sets the episode count.
*/
qint32 episodeCount() const;
/**
* @brief Gets or sets the episode count.
*/
void setEpisodeCount(qint32 newEpisodeCount);
/**
* @brief Gets or sets the artist count.
*/
qint32 artistCount() const;
/**
* @brief Gets or sets the artist count.
*/
void setArtistCount(qint32 newArtistCount);
/**
* @brief Gets or sets the program count.
*/
qint32 programCount() const;
/**
* @brief Gets or sets the program count.
*/
void setProgramCount(qint32 newProgramCount);
/**
* @brief Gets or sets the trailer count.
*/
qint32 trailerCount() const;
/**
* @brief Gets or sets the trailer count.
*/
void setTrailerCount(qint32 newTrailerCount);
/**
* @brief Gets or sets the song count.
*/
qint32 songCount() const;
/**
* @brief Gets or sets the song count.
*/
void setSongCount(qint32 newSongCount);
/**
* @brief Gets or sets the album count.
*/
qint32 albumCount() const;
/**
* @brief Gets or sets the album count.
*/
void setAlbumCount(qint32 newAlbumCount);
/**
* @brief Gets or sets the music video count.
*/
qint32 musicVideoCount() const;
/**
* @brief Gets or sets the music video count.
*/
void setMusicVideoCount(qint32 newMusicVideoCount);
/**
* @brief Gets or sets the box set count.
*/
qint32 boxSetCount() const;
/**
* @brief Gets or sets the box set count.
*/
void setBoxSetCount(qint32 newBoxSetCount);
/**
* @brief Gets or sets the book count.
*/
qint32 bookCount() const;
/**
* @brief Gets or sets the book count.
*/
void setBookCount(qint32 newBookCount);
/**
* @brief Gets or sets the item count.
*/
qint32 itemCount() const;
/**
* @brief Gets or sets the item count.
*/
void setItemCount(qint32 newItemCount);
protected:
qint32 m_movieCount;
qint32 m_seriesCount;
qint32 m_episodeCount;
qint32 m_artistCount;
qint32 m_programCount;
qint32 m_trailerCount;
qint32 m_songCount;
qint32 m_albumCount;
qint32 m_musicVideoCount;
qint32 m_boxSetCount;
qint32 m_bookCount;
qint32 m_itemCount;
};
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_ITEMCOUNTS_H

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.
*/
#ifndef JELLYFIN_DTO_ITEMFIELDS_H
#define JELLYFIN_DTO_ITEMFIELDS_H
#include <QJsonValue>
#include <QObject>
#include <QString>
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class ItemFieldsClass {
Q_GADGET
public:
enum Value {
EnumNotSet,
AirTime,
CanDelete,
CanDownload,
ChannelInfo,
Chapters,
ChildCount,
CumulativeRunTimeTicks,
CustomRating,
DateCreated,
DateLastMediaAdded,
DisplayPreferencesId,
Etag,
ExternalUrls,
Genres,
HomePageUrl,
ItemCounts,
MediaSourceCount,
MediaSources,
OriginalTitle,
Overview,
ParentId,
Path,
People,
PlayAccess,
ProductionLocations,
ProviderIds,
PrimaryImageAspectRatio,
RecursiveItemCount,
Settings,
ScreenshotImageTags,
SeriesPrimaryImage,
SeriesStudio,
SortName,
SpecialEpisodeNumbers,
Studios,
BasicSyncInfo,
SyncInfo,
Taglines,
Tags,
RemoteTrailers,
MediaStreams,
SeasonUserData,
ServiceName,
ThemeSongIds,
ThemeVideoIds,
ExternalEtag,
PresentationUniqueKey,
InheritedParentalRatingValue,
ExternalSeriesId,
SeriesPresentationUniqueKey,
DateLastRefreshed,
DateLastSaved,
RefreshState,
ChannelImage,
EnableMediaSourceDisplay,
Width,
Height,
ExtraIds,
LocalTrailerCount,
IsHD,
SpecialFeatureCount,
};
Q_ENUM(Value)
private:
explicit ItemFieldsClass();
};
typedef ItemFieldsClass::Value ItemFields;
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_ITEMFIELDS_H

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.
*/
#ifndef JELLYFIN_DTO_ITEMFILTER_H
#define JELLYFIN_DTO_ITEMFILTER_H
#include <QJsonValue>
#include <QObject>
#include <QString>
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class ItemFilterClass {
Q_GADGET
public:
enum Value {
EnumNotSet,
IsFolder,
IsNotFolder,
IsUnplayed,
IsPlayed,
IsFavorite,
IsResumable,
Likes,
Dislikes,
IsFavoriteOrLikes,
};
Q_ENUM(Value)
private:
explicit ItemFilterClass();
};
typedef ItemFilterClass::Value ItemFilter;
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_ITEMFILTER_H

View file

@ -0,0 +1,76 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_JOINGROUPREQUESTDTO_H
#define JELLYFIN_DTO_JOINGROUPREQUESTDTO_H
#include <QJsonObject>
#include <QJsonValue>
#include <QString>
#include <optional>
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class JoinGroupRequestDto {
public:
JoinGroupRequestDto();
JoinGroupRequestDto(const JoinGroupRequestDto &other);
/**
* Replaces the data being hold by this class with that of the other.
*/
void replaceData(JoinGroupRequestDto &other);
static JoinGroupRequestDto fromJson(QJsonObject source);
void setFromJson(QJsonObject source);
QJsonObject toJson();
// Properties
/**
* @brief Gets or sets the group identifier.
*/
QString groupId() const;
/**
* @brief Gets or sets the group identifier.
*/
void setGroupId(QString newGroupId);
protected:
QString m_groupId;
};
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_JOINGROUPREQUESTDTO_H

View file

@ -0,0 +1,62 @@
/*
* 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.
*/
#ifndef JELLYFIN_DTO_KEEPUNTIL_H
#define JELLYFIN_DTO_KEEPUNTIL_H
#include <QJsonValue>
#include <QObject>
#include <QString>
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
namespace DTO {
class KeepUntilClass {
Q_GADGET
public:
enum Value {
EnumNotSet,
UntilDeleted,
UntilSpaceNeeded,
UntilWatched,
UntilDate,
};
Q_ENUM(Value)
private:
explicit KeepUntilClass();
};
typedef KeepUntilClass::Value KeepUntil;
} // NS DTO
} // NS Jellyfin
#endif // JELLYFIN_DTO_KEEPUNTIL_H

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