mirror of
https://github.com/HenkKalkwater/harbour-sailfin.git
synced 2024-06-18 00:32:42 +00:00
146 lines
6.1 KiB
C++
146 lines
6.1 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.
|
|
*/
|
|
|
|
#include <JellyfinQt/DTO/userconfiguration.h>
|
|
|
|
#include <JellyfinQt/DTO/subtitleplaybackmode.h>
|
|
|
|
namespace Jellyfin {
|
|
namespace DTO {
|
|
|
|
UserConfiguration::UserConfiguration(QObject *parent) : QObject(parent) {}
|
|
|
|
UserConfiguration *UserConfiguration::fromJSON(QJsonObject source, QObject *parent) {
|
|
UserConfiguration *instance = new UserConfiguration(parent);
|
|
instance->updateFromJSON(source);
|
|
return instance;
|
|
}
|
|
|
|
void UserConfiguration::updateFromJSON(QJsonObject source) {
|
|
Q_UNIMPLEMENTED();
|
|
}
|
|
QJsonObject UserConfiguration::toJSON() {
|
|
Q_UNIMPLEMENTED();
|
|
QJsonObject result;
|
|
return result;
|
|
}
|
|
QString UserConfiguration::audioLanguagePreference() const { return m_audioLanguagePreference; }
|
|
void UserConfiguration::setAudioLanguagePreference(QString newAudioLanguagePreference) {
|
|
m_audioLanguagePreference = newAudioLanguagePreference;
|
|
emit audioLanguagePreferenceChanged(newAudioLanguagePreference);
|
|
}
|
|
|
|
bool UserConfiguration::playDefaultAudioTrack() const { return m_playDefaultAudioTrack; }
|
|
void UserConfiguration::setPlayDefaultAudioTrack(bool newPlayDefaultAudioTrack) {
|
|
m_playDefaultAudioTrack = newPlayDefaultAudioTrack;
|
|
emit playDefaultAudioTrackChanged(newPlayDefaultAudioTrack);
|
|
}
|
|
|
|
QString UserConfiguration::subtitleLanguagePreference() const { return m_subtitleLanguagePreference; }
|
|
void UserConfiguration::setSubtitleLanguagePreference(QString newSubtitleLanguagePreference) {
|
|
m_subtitleLanguagePreference = newSubtitleLanguagePreference;
|
|
emit subtitleLanguagePreferenceChanged(newSubtitleLanguagePreference);
|
|
}
|
|
|
|
bool UserConfiguration::displayMissingEpisodes() const { return m_displayMissingEpisodes; }
|
|
void UserConfiguration::setDisplayMissingEpisodes(bool newDisplayMissingEpisodes) {
|
|
m_displayMissingEpisodes = newDisplayMissingEpisodes;
|
|
emit displayMissingEpisodesChanged(newDisplayMissingEpisodes);
|
|
}
|
|
|
|
QStringList UserConfiguration::groupedFolders() const { return m_groupedFolders; }
|
|
void UserConfiguration::setGroupedFolders(QStringList newGroupedFolders) {
|
|
m_groupedFolders = newGroupedFolders;
|
|
emit groupedFoldersChanged(newGroupedFolders);
|
|
}
|
|
|
|
SubtitlePlaybackMode UserConfiguration::subtitleMode() const { return m_subtitleMode; }
|
|
void UserConfiguration::setSubtitleMode(SubtitlePlaybackMode newSubtitleMode) {
|
|
m_subtitleMode = newSubtitleMode;
|
|
emit subtitleModeChanged(newSubtitleMode);
|
|
}
|
|
|
|
bool UserConfiguration::displayCollectionsView() const { return m_displayCollectionsView; }
|
|
void UserConfiguration::setDisplayCollectionsView(bool newDisplayCollectionsView) {
|
|
m_displayCollectionsView = newDisplayCollectionsView;
|
|
emit displayCollectionsViewChanged(newDisplayCollectionsView);
|
|
}
|
|
|
|
bool UserConfiguration::enableLocalPassword() const { return m_enableLocalPassword; }
|
|
void UserConfiguration::setEnableLocalPassword(bool newEnableLocalPassword) {
|
|
m_enableLocalPassword = newEnableLocalPassword;
|
|
emit enableLocalPasswordChanged(newEnableLocalPassword);
|
|
}
|
|
|
|
QStringList UserConfiguration::orderedViews() const { return m_orderedViews; }
|
|
void UserConfiguration::setOrderedViews(QStringList newOrderedViews) {
|
|
m_orderedViews = newOrderedViews;
|
|
emit orderedViewsChanged(newOrderedViews);
|
|
}
|
|
|
|
QStringList UserConfiguration::latestItemsExcludes() const { return m_latestItemsExcludes; }
|
|
void UserConfiguration::setLatestItemsExcludes(QStringList newLatestItemsExcludes) {
|
|
m_latestItemsExcludes = newLatestItemsExcludes;
|
|
emit latestItemsExcludesChanged(newLatestItemsExcludes);
|
|
}
|
|
|
|
QStringList UserConfiguration::myMediaExcludes() const { return m_myMediaExcludes; }
|
|
void UserConfiguration::setMyMediaExcludes(QStringList newMyMediaExcludes) {
|
|
m_myMediaExcludes = newMyMediaExcludes;
|
|
emit myMediaExcludesChanged(newMyMediaExcludes);
|
|
}
|
|
|
|
bool UserConfiguration::hidePlayedInLatest() const { return m_hidePlayedInLatest; }
|
|
void UserConfiguration::setHidePlayedInLatest(bool newHidePlayedInLatest) {
|
|
m_hidePlayedInLatest = newHidePlayedInLatest;
|
|
emit hidePlayedInLatestChanged(newHidePlayedInLatest);
|
|
}
|
|
|
|
bool UserConfiguration::rememberAudioSelections() const { return m_rememberAudioSelections; }
|
|
void UserConfiguration::setRememberAudioSelections(bool newRememberAudioSelections) {
|
|
m_rememberAudioSelections = newRememberAudioSelections;
|
|
emit rememberAudioSelectionsChanged(newRememberAudioSelections);
|
|
}
|
|
|
|
bool UserConfiguration::rememberSubtitleSelections() const { return m_rememberSubtitleSelections; }
|
|
void UserConfiguration::setRememberSubtitleSelections(bool newRememberSubtitleSelections) {
|
|
m_rememberSubtitleSelections = newRememberSubtitleSelections;
|
|
emit rememberSubtitleSelectionsChanged(newRememberSubtitleSelections);
|
|
}
|
|
|
|
bool UserConfiguration::enableNextEpisodeAutoPlay() const { return m_enableNextEpisodeAutoPlay; }
|
|
void UserConfiguration::setEnableNextEpisodeAutoPlay(bool newEnableNextEpisodeAutoPlay) {
|
|
m_enableNextEpisodeAutoPlay = newEnableNextEpisodeAutoPlay;
|
|
emit enableNextEpisodeAutoPlayChanged(newEnableNextEpisodeAutoPlay);
|
|
}
|
|
|
|
|
|
} // NS Jellyfin
|
|
} // NS DTO
|