1
0
Fork 0
mirror of https://github.com/HenkKalkwater/harbour-sailfin.git synced 2024-11-05 09:35:18 +00:00
harbour-sailfin/core/include/JellyfinQt/DTO/seriestimerinfodto.h

361 lines
13 KiB
C++

/*
* 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_SERIESTIMERINFODTO_H
#define JELLYFIN_DTO_SERIESTIMERINFODTO_H
#include <QDateTime>
#include <QJsonObject>
#include <QList>
#include <QObject>
#include <QString>
#include <QStringList>
#include "JellyfinQt/DTO/dayofweek.h"
#include "JellyfinQt/DTO/daypattern.h"
#include "JellyfinQt/DTO/keepuntil.h"
namespace Jellyfin {
namespace DTO {
class SeriesTimerInfoDto : public QObject {
Q_OBJECT
public:
explicit SeriesTimerInfoDto(QObject *parent = nullptr);
static SeriesTimerInfoDto *fromJSON(QJsonObject source, QObject *parent = nullptr);
void updateFromJSON(QJsonObject source);
QJsonObject toJSON();
/**
* @brief Id of the recording.
*/
Q_PROPERTY(QString jellyfinId READ jellyfinId WRITE setJellyfinId NOTIFY jellyfinIdChanged)
Q_PROPERTY(QString type READ type WRITE setType NOTIFY typeChanged)
/**
* @brief Gets or sets the server identifier.
*/
Q_PROPERTY(QString serverId READ serverId WRITE setServerId NOTIFY serverIdChanged)
/**
* @brief Gets or sets the external identifier.
*/
Q_PROPERTY(QString externalId READ externalId WRITE setExternalId NOTIFY externalIdChanged)
/**
* @brief ChannelId of the recording.
*/
Q_PROPERTY(QString channelId READ channelId WRITE setChannelId NOTIFY channelIdChanged)
/**
* @brief Gets or sets the external channel identifier.
*/
Q_PROPERTY(QString externalChannelId READ externalChannelId WRITE setExternalChannelId NOTIFY externalChannelIdChanged)
/**
* @brief ChannelName of the recording.
*/
Q_PROPERTY(QString channelName READ channelName WRITE setChannelName NOTIFY channelNameChanged)
Q_PROPERTY(QString channelPrimaryImageTag READ channelPrimaryImageTag WRITE setChannelPrimaryImageTag NOTIFY channelPrimaryImageTagChanged)
/**
* @brief Gets or sets the program identifier.
*/
Q_PROPERTY(QString programId READ programId WRITE setProgramId NOTIFY programIdChanged)
/**
* @brief Gets or sets the external program identifier.
*/
Q_PROPERTY(QString externalProgramId READ externalProgramId WRITE setExternalProgramId NOTIFY externalProgramIdChanged)
/**
* @brief Name of the recording.
*/
Q_PROPERTY(QString name READ name WRITE setName NOTIFY nameChanged)
/**
* @brief Description of the recording.
*/
Q_PROPERTY(QString overview READ overview WRITE setOverview NOTIFY overviewChanged)
/**
* @brief The start date of the recording, in UTC.
*/
Q_PROPERTY(QDateTime startDate READ startDate WRITE setStartDate NOTIFY startDateChanged)
/**
* @brief The end date of the recording, in UTC.
*/
Q_PROPERTY(QDateTime endDate READ endDate WRITE setEndDate NOTIFY endDateChanged)
/**
* @brief Gets or sets the name of the service.
*/
Q_PROPERTY(QString serviceName READ serviceName WRITE setServiceName NOTIFY serviceNameChanged)
/**
* @brief Gets or sets the priority.
*/
Q_PROPERTY(qint32 priority READ priority WRITE setPriority NOTIFY priorityChanged)
/**
* @brief Gets or sets the pre padding seconds.
*/
Q_PROPERTY(qint32 prePaddingSeconds READ prePaddingSeconds WRITE setPrePaddingSeconds NOTIFY prePaddingSecondsChanged)
/**
* @brief Gets or sets the post padding seconds.
*/
Q_PROPERTY(qint32 postPaddingSeconds READ postPaddingSeconds WRITE setPostPaddingSeconds NOTIFY postPaddingSecondsChanged)
/**
* @brief Gets or sets a value indicating whether this instance is pre padding required.
*/
Q_PROPERTY(bool isPrePaddingRequired READ isPrePaddingRequired WRITE setIsPrePaddingRequired NOTIFY isPrePaddingRequiredChanged)
/**
* @brief If the item does not have any backdrops, this will hold the Id of the Parent that has one.
*/
Q_PROPERTY(QString parentBackdropItemId READ parentBackdropItemId WRITE setParentBackdropItemId NOTIFY parentBackdropItemIdChanged)
/**
* @brief Gets or sets the parent backdrop image tags.
*/
Q_PROPERTY(QStringList parentBackdropImageTags READ parentBackdropImageTags WRITE setParentBackdropImageTags NOTIFY parentBackdropImageTagsChanged)
/**
* @brief Gets or sets a value indicating whether this instance is post padding required.
*/
Q_PROPERTY(bool isPostPaddingRequired READ isPostPaddingRequired WRITE setIsPostPaddingRequired NOTIFY isPostPaddingRequiredChanged)
Q_PROPERTY(KeepUntil keepUntil READ keepUntil WRITE setKeepUntil NOTIFY keepUntilChanged)
/**
* @brief Gets or sets a value indicating whether [record any time].
*/
Q_PROPERTY(bool recordAnyTime READ recordAnyTime WRITE setRecordAnyTime NOTIFY recordAnyTimeChanged)
Q_PROPERTY(bool skipEpisodesInLibrary READ skipEpisodesInLibrary WRITE setSkipEpisodesInLibrary NOTIFY skipEpisodesInLibraryChanged)
/**
* @brief Gets or sets a value indicating whether [record any channel].
*/
Q_PROPERTY(bool recordAnyChannel READ recordAnyChannel WRITE setRecordAnyChannel NOTIFY recordAnyChannelChanged)
Q_PROPERTY(qint32 keepUpTo READ keepUpTo WRITE setKeepUpTo NOTIFY keepUpToChanged)
/**
* @brief Gets or sets a value indicating whether [record new only].
*/
Q_PROPERTY(bool recordNewOnly READ recordNewOnly WRITE setRecordNewOnly NOTIFY recordNewOnlyChanged)
/**
* @brief Gets or sets the days.
*/
Q_PROPERTY(QList<DayOfWeek> days READ days WRITE setDays NOTIFY daysChanged)
Q_PROPERTY(DayPattern dayPattern READ dayPattern WRITE setDayPattern NOTIFY dayPatternChanged)
/**
* @brief Gets or sets the image tags.
*/
Q_PROPERTY(QJsonObject imageTags READ imageTags WRITE setImageTags NOTIFY imageTagsChanged)
/**
* @brief Gets or sets the parent thumb item id.
*/
Q_PROPERTY(QString parentThumbItemId READ parentThumbItemId WRITE setParentThumbItemId NOTIFY parentThumbItemIdChanged)
/**
* @brief Gets or sets the parent thumb image tag.
*/
Q_PROPERTY(QString parentThumbImageTag READ parentThumbImageTag WRITE setParentThumbImageTag NOTIFY parentThumbImageTagChanged)
/**
* @brief Gets or sets the parent primary image item identifier.
*/
Q_PROPERTY(QString parentPrimaryImageItemId READ parentPrimaryImageItemId WRITE setParentPrimaryImageItemId NOTIFY parentPrimaryImageItemIdChanged)
/**
* @brief Gets or sets the parent primary image tag.
*/
Q_PROPERTY(QString parentPrimaryImageTag READ parentPrimaryImageTag WRITE setParentPrimaryImageTag NOTIFY parentPrimaryImageTagChanged)
QString jellyfinId() const;
void setJellyfinId(QString newJellyfinId);
QString type() const;
void setType(QString newType);
QString serverId() const;
void setServerId(QString newServerId);
QString externalId() const;
void setExternalId(QString newExternalId);
QString channelId() const;
void setChannelId(QString newChannelId);
QString externalChannelId() const;
void setExternalChannelId(QString newExternalChannelId);
QString channelName() const;
void setChannelName(QString newChannelName);
QString channelPrimaryImageTag() const;
void setChannelPrimaryImageTag(QString newChannelPrimaryImageTag);
QString programId() const;
void setProgramId(QString newProgramId);
QString externalProgramId() const;
void setExternalProgramId(QString newExternalProgramId);
QString name() const;
void setName(QString newName);
QString overview() const;
void setOverview(QString newOverview);
QDateTime startDate() const;
void setStartDate(QDateTime newStartDate);
QDateTime endDate() const;
void setEndDate(QDateTime newEndDate);
QString serviceName() const;
void setServiceName(QString newServiceName);
qint32 priority() const;
void setPriority(qint32 newPriority);
qint32 prePaddingSeconds() const;
void setPrePaddingSeconds(qint32 newPrePaddingSeconds);
qint32 postPaddingSeconds() const;
void setPostPaddingSeconds(qint32 newPostPaddingSeconds);
bool isPrePaddingRequired() const;
void setIsPrePaddingRequired(bool newIsPrePaddingRequired);
QString parentBackdropItemId() const;
void setParentBackdropItemId(QString newParentBackdropItemId);
QStringList parentBackdropImageTags() const;
void setParentBackdropImageTags(QStringList newParentBackdropImageTags);
bool isPostPaddingRequired() const;
void setIsPostPaddingRequired(bool newIsPostPaddingRequired);
KeepUntil keepUntil() const;
void setKeepUntil(KeepUntil newKeepUntil);
bool recordAnyTime() const;
void setRecordAnyTime(bool newRecordAnyTime);
bool skipEpisodesInLibrary() const;
void setSkipEpisodesInLibrary(bool newSkipEpisodesInLibrary);
bool recordAnyChannel() const;
void setRecordAnyChannel(bool newRecordAnyChannel);
qint32 keepUpTo() const;
void setKeepUpTo(qint32 newKeepUpTo);
bool recordNewOnly() const;
void setRecordNewOnly(bool newRecordNewOnly);
QList<DayOfWeek> days() const;
void setDays(QList<DayOfWeek> newDays);
DayPattern dayPattern() const;
void setDayPattern(DayPattern newDayPattern);
QJsonObject imageTags() const;
void setImageTags(QJsonObject newImageTags);
QString parentThumbItemId() const;
void setParentThumbItemId(QString newParentThumbItemId);
QString parentThumbImageTag() const;
void setParentThumbImageTag(QString newParentThumbImageTag);
QString parentPrimaryImageItemId() const;
void setParentPrimaryImageItemId(QString newParentPrimaryImageItemId);
QString parentPrimaryImageTag() const;
void setParentPrimaryImageTag(QString newParentPrimaryImageTag);
signals:
void jellyfinIdChanged(QString newJellyfinId);
void typeChanged(QString newType);
void serverIdChanged(QString newServerId);
void externalIdChanged(QString newExternalId);
void channelIdChanged(QString newChannelId);
void externalChannelIdChanged(QString newExternalChannelId);
void channelNameChanged(QString newChannelName);
void channelPrimaryImageTagChanged(QString newChannelPrimaryImageTag);
void programIdChanged(QString newProgramId);
void externalProgramIdChanged(QString newExternalProgramId);
void nameChanged(QString newName);
void overviewChanged(QString newOverview);
void startDateChanged(QDateTime newStartDate);
void endDateChanged(QDateTime newEndDate);
void serviceNameChanged(QString newServiceName);
void priorityChanged(qint32 newPriority);
void prePaddingSecondsChanged(qint32 newPrePaddingSeconds);
void postPaddingSecondsChanged(qint32 newPostPaddingSeconds);
void isPrePaddingRequiredChanged(bool newIsPrePaddingRequired);
void parentBackdropItemIdChanged(QString newParentBackdropItemId);
void parentBackdropImageTagsChanged(QStringList newParentBackdropImageTags);
void isPostPaddingRequiredChanged(bool newIsPostPaddingRequired);
void keepUntilChanged(KeepUntil newKeepUntil);
void recordAnyTimeChanged(bool newRecordAnyTime);
void skipEpisodesInLibraryChanged(bool newSkipEpisodesInLibrary);
void recordAnyChannelChanged(bool newRecordAnyChannel);
void keepUpToChanged(qint32 newKeepUpTo);
void recordNewOnlyChanged(bool newRecordNewOnly);
void daysChanged(QList<DayOfWeek> newDays);
void dayPatternChanged(DayPattern newDayPattern);
void imageTagsChanged(QJsonObject newImageTags);
void parentThumbItemIdChanged(QString newParentThumbItemId);
void parentThumbImageTagChanged(QString newParentThumbImageTag);
void parentPrimaryImageItemIdChanged(QString newParentPrimaryImageItemId);
void parentPrimaryImageTagChanged(QString newParentPrimaryImageTag);
protected:
QString m_jellyfinId;
QString m_type;
QString m_serverId;
QString m_externalId;
QString m_channelId;
QString m_externalChannelId;
QString m_channelName;
QString m_channelPrimaryImageTag;
QString m_programId;
QString m_externalProgramId;
QString m_name;
QString m_overview;
QDateTime m_startDate;
QDateTime m_endDate;
QString m_serviceName;
qint32 m_priority;
qint32 m_prePaddingSeconds;
qint32 m_postPaddingSeconds;
bool m_isPrePaddingRequired;
QString m_parentBackdropItemId;
QStringList m_parentBackdropImageTags;
bool m_isPostPaddingRequired;
KeepUntil m_keepUntil;
bool m_recordAnyTime;
bool m_skipEpisodesInLibrary;
bool m_recordAnyChannel;
qint32 m_keepUpTo;
bool m_recordNewOnly;
QList<DayOfWeek> m_days;
DayPattern m_dayPattern;
QJsonObject m_imageTags;
QString m_parentThumbItemId;
QString m_parentThumbImageTag;
QString m_parentPrimaryImageItemId;
QString m_parentPrimaryImageTag;
};
} // NS Jellyfin
} // NS DTO
#endif // JELLYFIN_DTO_SERIESTIMERINFODTO_H