2021-02-21 04:02:05 +00:00
|
|
|
/*
|
|
|
|
* 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_LIBRARYOPTIONS_H
|
|
|
|
#define JELLYFIN_DTO_LIBRARYOPTIONS_H
|
|
|
|
|
|
|
|
#include <QJsonObject>
|
2021-03-20 02:30:50 +00:00
|
|
|
#include <QJsonValue>
|
2021-02-21 04:02:05 +00:00
|
|
|
#include <QList>
|
2021-03-20 02:30:50 +00:00
|
|
|
#include <QSharedPointer>
|
2021-02-21 04:02:05 +00:00
|
|
|
#include <QString>
|
|
|
|
#include <QStringList>
|
2021-03-20 02:30:50 +00:00
|
|
|
#include <optional>
|
|
|
|
|
|
|
|
#include "JellyfinQt/DTO/mediapathinfo.h"
|
|
|
|
#include "JellyfinQt/DTO/typeoptions.h"
|
|
|
|
#include "JellyfinQt/support/jsonconv.h"
|
2021-02-21 04:02:05 +00:00
|
|
|
|
|
|
|
namespace Jellyfin {
|
|
|
|
namespace DTO {
|
|
|
|
|
|
|
|
|
2021-03-20 02:30:50 +00:00
|
|
|
class LibraryOptions {
|
2021-03-24 19:04:03 +00:00
|
|
|
public:LibraryOptions();LibraryOptions(const LibraryOptions &other);
|
|
|
|
|
2021-03-20 02:30:50 +00:00
|
|
|
static LibraryOptions fromJson(QJsonObject source);
|
|
|
|
void setFromJson(QJsonObject source);
|
|
|
|
QJsonObject toJson();
|
|
|
|
|
|
|
|
// Properties
|
2021-02-21 04:02:05 +00:00
|
|
|
|
|
|
|
bool enablePhotos() const;
|
2021-03-20 02:30:50 +00:00
|
|
|
|
2021-02-21 04:02:05 +00:00
|
|
|
void setEnablePhotos(bool newEnablePhotos);
|
2021-03-20 02:30:50 +00:00
|
|
|
|
2021-02-21 04:02:05 +00:00
|
|
|
bool enableRealtimeMonitor() const;
|
2021-03-20 02:30:50 +00:00
|
|
|
|
2021-02-21 04:02:05 +00:00
|
|
|
void setEnableRealtimeMonitor(bool newEnableRealtimeMonitor);
|
2021-03-20 02:30:50 +00:00
|
|
|
|
2021-02-21 04:02:05 +00:00
|
|
|
bool enableChapterImageExtraction() const;
|
2021-03-20 02:30:50 +00:00
|
|
|
|
2021-02-21 04:02:05 +00:00
|
|
|
void setEnableChapterImageExtraction(bool newEnableChapterImageExtraction);
|
2021-03-20 02:30:50 +00:00
|
|
|
|
2021-02-21 04:02:05 +00:00
|
|
|
bool extractChapterImagesDuringLibraryScan() const;
|
2021-03-20 02:30:50 +00:00
|
|
|
|
2021-02-21 04:02:05 +00:00
|
|
|
void setExtractChapterImagesDuringLibraryScan(bool newExtractChapterImagesDuringLibraryScan);
|
2021-03-20 02:30:50 +00:00
|
|
|
|
|
|
|
QList<QSharedPointer<MediaPathInfo>> pathInfos() const;
|
|
|
|
|
|
|
|
void setPathInfos(QList<QSharedPointer<MediaPathInfo>> newPathInfos);
|
|
|
|
|
2021-02-21 04:02:05 +00:00
|
|
|
bool saveLocalMetadata() const;
|
2021-03-20 02:30:50 +00:00
|
|
|
|
2021-02-21 04:02:05 +00:00
|
|
|
void setSaveLocalMetadata(bool newSaveLocalMetadata);
|
2021-03-20 02:30:50 +00:00
|
|
|
|
2021-02-21 04:02:05 +00:00
|
|
|
bool enableInternetProviders() const;
|
2021-03-20 02:30:50 +00:00
|
|
|
|
2021-02-21 04:02:05 +00:00
|
|
|
void setEnableInternetProviders(bool newEnableInternetProviders);
|
2021-03-20 02:30:50 +00:00
|
|
|
|
2021-02-21 04:02:05 +00:00
|
|
|
bool enableAutomaticSeriesGrouping() const;
|
2021-03-20 02:30:50 +00:00
|
|
|
|
2021-02-21 04:02:05 +00:00
|
|
|
void setEnableAutomaticSeriesGrouping(bool newEnableAutomaticSeriesGrouping);
|
2021-03-20 02:30:50 +00:00
|
|
|
|
2021-02-21 04:02:05 +00:00
|
|
|
bool enableEmbeddedTitles() const;
|
2021-03-20 02:30:50 +00:00
|
|
|
|
2021-02-21 04:02:05 +00:00
|
|
|
void setEnableEmbeddedTitles(bool newEnableEmbeddedTitles);
|
2021-03-20 02:30:50 +00:00
|
|
|
|
2021-02-21 04:02:05 +00:00
|
|
|
bool enableEmbeddedEpisodeInfos() const;
|
2021-03-20 02:30:50 +00:00
|
|
|
|
2021-02-21 04:02:05 +00:00
|
|
|
void setEnableEmbeddedEpisodeInfos(bool newEnableEmbeddedEpisodeInfos);
|
2021-03-20 02:30:50 +00:00
|
|
|
|
2021-02-21 04:02:05 +00:00
|
|
|
qint32 automaticRefreshIntervalDays() const;
|
2021-03-20 02:30:50 +00:00
|
|
|
|
2021-02-21 04:02:05 +00:00
|
|
|
void setAutomaticRefreshIntervalDays(qint32 newAutomaticRefreshIntervalDays);
|
2021-03-20 02:30:50 +00:00
|
|
|
/**
|
|
|
|
* @brief Gets or sets the preferred metadata language.
|
|
|
|
*/
|
2021-02-21 04:02:05 +00:00
|
|
|
QString preferredMetadataLanguage() const;
|
2021-03-20 02:30:50 +00:00
|
|
|
/**
|
|
|
|
* @brief Gets or sets the preferred metadata language.
|
|
|
|
*/
|
2021-02-21 04:02:05 +00:00
|
|
|
void setPreferredMetadataLanguage(QString newPreferredMetadataLanguage);
|
2021-03-20 02:30:50 +00:00
|
|
|
/**
|
|
|
|
* @brief Gets or sets the metadata country code.
|
|
|
|
*/
|
2021-02-21 04:02:05 +00:00
|
|
|
QString metadataCountryCode() const;
|
2021-03-20 02:30:50 +00:00
|
|
|
/**
|
|
|
|
* @brief Gets or sets the metadata country code.
|
|
|
|
*/
|
2021-02-21 04:02:05 +00:00
|
|
|
void setMetadataCountryCode(QString newMetadataCountryCode);
|
2021-03-20 02:30:50 +00:00
|
|
|
|
2021-02-21 04:02:05 +00:00
|
|
|
QString seasonZeroDisplayName() const;
|
2021-03-20 02:30:50 +00:00
|
|
|
|
2021-02-21 04:02:05 +00:00
|
|
|
void setSeasonZeroDisplayName(QString newSeasonZeroDisplayName);
|
2021-03-20 02:30:50 +00:00
|
|
|
|
2021-02-21 04:02:05 +00:00
|
|
|
QStringList metadataSavers() const;
|
2021-03-20 02:30:50 +00:00
|
|
|
|
2021-02-21 04:02:05 +00:00
|
|
|
void setMetadataSavers(QStringList newMetadataSavers);
|
2021-03-20 02:30:50 +00:00
|
|
|
|
2021-02-21 04:02:05 +00:00
|
|
|
QStringList disabledLocalMetadataReaders() const;
|
2021-03-20 02:30:50 +00:00
|
|
|
|
2021-02-21 04:02:05 +00:00
|
|
|
void setDisabledLocalMetadataReaders(QStringList newDisabledLocalMetadataReaders);
|
2021-03-20 02:30:50 +00:00
|
|
|
|
2021-02-21 04:02:05 +00:00
|
|
|
QStringList localMetadataReaderOrder() const;
|
2021-03-20 02:30:50 +00:00
|
|
|
|
2021-02-21 04:02:05 +00:00
|
|
|
void setLocalMetadataReaderOrder(QStringList newLocalMetadataReaderOrder);
|
2021-03-20 02:30:50 +00:00
|
|
|
|
2021-02-21 04:02:05 +00:00
|
|
|
QStringList disabledSubtitleFetchers() const;
|
2021-03-20 02:30:50 +00:00
|
|
|
|
2021-02-21 04:02:05 +00:00
|
|
|
void setDisabledSubtitleFetchers(QStringList newDisabledSubtitleFetchers);
|
2021-03-20 02:30:50 +00:00
|
|
|
|
2021-02-21 04:02:05 +00:00
|
|
|
QStringList subtitleFetcherOrder() const;
|
2021-03-20 02:30:50 +00:00
|
|
|
|
2021-02-21 04:02:05 +00:00
|
|
|
void setSubtitleFetcherOrder(QStringList newSubtitleFetcherOrder);
|
2021-03-20 02:30:50 +00:00
|
|
|
|
2021-02-21 04:02:05 +00:00
|
|
|
bool skipSubtitlesIfEmbeddedSubtitlesPresent() const;
|
2021-03-20 02:30:50 +00:00
|
|
|
|
2021-02-21 04:02:05 +00:00
|
|
|
void setSkipSubtitlesIfEmbeddedSubtitlesPresent(bool newSkipSubtitlesIfEmbeddedSubtitlesPresent);
|
2021-03-20 02:30:50 +00:00
|
|
|
|
2021-02-21 04:02:05 +00:00
|
|
|
bool skipSubtitlesIfAudioTrackMatches() const;
|
2021-03-20 02:30:50 +00:00
|
|
|
|
2021-02-21 04:02:05 +00:00
|
|
|
void setSkipSubtitlesIfAudioTrackMatches(bool newSkipSubtitlesIfAudioTrackMatches);
|
2021-03-20 02:30:50 +00:00
|
|
|
|
2021-02-21 04:02:05 +00:00
|
|
|
QStringList subtitleDownloadLanguages() const;
|
2021-03-20 02:30:50 +00:00
|
|
|
|
2021-02-21 04:02:05 +00:00
|
|
|
void setSubtitleDownloadLanguages(QStringList newSubtitleDownloadLanguages);
|
2021-03-20 02:30:50 +00:00
|
|
|
|
2021-02-21 04:02:05 +00:00
|
|
|
bool requirePerfectSubtitleMatch() const;
|
2021-03-20 02:30:50 +00:00
|
|
|
|
2021-02-21 04:02:05 +00:00
|
|
|
void setRequirePerfectSubtitleMatch(bool newRequirePerfectSubtitleMatch);
|
2021-03-20 02:30:50 +00:00
|
|
|
|
2021-02-21 04:02:05 +00:00
|
|
|
bool saveSubtitlesWithMedia() const;
|
2021-03-20 02:30:50 +00:00
|
|
|
|
2021-02-21 04:02:05 +00:00
|
|
|
void setSaveSubtitlesWithMedia(bool newSaveSubtitlesWithMedia);
|
2021-03-20 02:30:50 +00:00
|
|
|
|
|
|
|
QList<QSharedPointer<TypeOptions>> typeOptions() const;
|
|
|
|
|
|
|
|
void setTypeOptions(QList<QSharedPointer<TypeOptions>> newTypeOptions);
|
|
|
|
|
2021-02-21 04:02:05 +00:00
|
|
|
protected:
|
|
|
|
bool m_enablePhotos;
|
|
|
|
bool m_enableRealtimeMonitor;
|
|
|
|
bool m_enableChapterImageExtraction;
|
|
|
|
bool m_extractChapterImagesDuringLibraryScan;
|
2021-03-20 02:30:50 +00:00
|
|
|
QList<QSharedPointer<MediaPathInfo>> m_pathInfos;
|
2021-02-21 04:02:05 +00:00
|
|
|
bool m_saveLocalMetadata;
|
|
|
|
bool m_enableInternetProviders;
|
|
|
|
bool m_enableAutomaticSeriesGrouping;
|
|
|
|
bool m_enableEmbeddedTitles;
|
|
|
|
bool m_enableEmbeddedEpisodeInfos;
|
|
|
|
qint32 m_automaticRefreshIntervalDays;
|
|
|
|
QString m_preferredMetadataLanguage;
|
|
|
|
QString m_metadataCountryCode;
|
|
|
|
QString m_seasonZeroDisplayName;
|
|
|
|
QStringList m_metadataSavers;
|
|
|
|
QStringList m_disabledLocalMetadataReaders;
|
|
|
|
QStringList m_localMetadataReaderOrder;
|
|
|
|
QStringList m_disabledSubtitleFetchers;
|
|
|
|
QStringList m_subtitleFetcherOrder;
|
|
|
|
bool m_skipSubtitlesIfEmbeddedSubtitlesPresent;
|
|
|
|
bool m_skipSubtitlesIfAudioTrackMatches;
|
|
|
|
QStringList m_subtitleDownloadLanguages;
|
|
|
|
bool m_requirePerfectSubtitleMatch;
|
|
|
|
bool m_saveSubtitlesWithMedia;
|
2021-03-20 02:30:50 +00:00
|
|
|
QList<QSharedPointer<TypeOptions>> m_typeOptions;
|
2021-02-21 04:02:05 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // NS Jellyfin
|
|
|
|
} // NS DTO
|
|
|
|
|
|
|
|
#endif // JELLYFIN_DTO_LIBRARYOPTIONS_H
|