/* * 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 namespace Jellyfin { namespace DTO { ServerConfiguration::ServerConfiguration() {} ServerConfiguration::ServerConfiguration(const ServerConfiguration &other) : m_logFileRetentionDays(other.m_logFileRetentionDays), m_isStartupWizardCompleted(other.m_isStartupWizardCompleted), m_cachePath(other.m_cachePath), m_previousVersion(other.m_previousVersion), m_previousVersionStr(other.m_previousVersionStr), m_enableUPnP(other.m_enableUPnP), m_enableMetrics(other.m_enableMetrics), m_publicPort(other.m_publicPort), m_uPnPCreateHttpPortMap(other.m_uPnPCreateHttpPortMap), m_uDPPortRange(other.m_uDPPortRange), m_enableIPV6(other.m_enableIPV6), m_enableIPV4(other.m_enableIPV4), m_enableSSDPTracing(other.m_enableSSDPTracing), m_sSDPTracingFilter(other.m_sSDPTracingFilter), m_uDPSendCount(other.m_uDPSendCount), m_uDPSendDelay(other.m_uDPSendDelay), m_ignoreVirtualInterfaces(other.m_ignoreVirtualInterfaces), m_virtualInterfaceNames(other.m_virtualInterfaceNames), m_gatewayMonitorPeriod(other.m_gatewayMonitorPeriod), m_enableMultiSocketBinding(other.m_enableMultiSocketBinding), m_trustAllIP6Interfaces(other.m_trustAllIP6Interfaces), m_hDHomerunPortRange(other.m_hDHomerunPortRange), m_publishedServerUriBySubnet(other.m_publishedServerUriBySubnet), m_autoDiscoveryTracing(other.m_autoDiscoveryTracing), m_autoDiscovery(other.m_autoDiscovery), m_publicHttpsPort(other.m_publicHttpsPort), m_httpServerPortNumber(other.m_httpServerPortNumber), m_httpsPortNumber(other.m_httpsPortNumber), m_enableHttps(other.m_enableHttps), m_enableNormalizedItemByNameIds(other.m_enableNormalizedItemByNameIds), m_certificatePath(other.m_certificatePath), m_certificatePassword(other.m_certificatePassword), m_isPortAuthorized(other.m_isPortAuthorized), m_quickConnectAvailable(other.m_quickConnectAvailable), m_enableRemoteAccess(other.m_enableRemoteAccess), m_enableCaseSensitiveItemIds(other.m_enableCaseSensitiveItemIds), m_disableLiveTvChannelUserDataName(other.m_disableLiveTvChannelUserDataName), m_metadataPath(other.m_metadataPath), m_metadataNetworkPath(other.m_metadataNetworkPath), m_preferredMetadataLanguage(other.m_preferredMetadataLanguage), m_metadataCountryCode(other.m_metadataCountryCode), m_sortReplaceCharacters(other.m_sortReplaceCharacters), m_sortRemoveCharacters(other.m_sortRemoveCharacters), m_sortRemoveWords(other.m_sortRemoveWords), m_minResumePct(other.m_minResumePct), m_maxResumePct(other.m_maxResumePct), m_minResumeDurationSeconds(other.m_minResumeDurationSeconds), m_minAudiobookResume(other.m_minAudiobookResume), m_maxAudiobookResume(other.m_maxAudiobookResume), m_libraryMonitorDelay(other.m_libraryMonitorDelay), m_enableDashboardResponseCaching(other.m_enableDashboardResponseCaching), m_imageSavingConvention(other.m_imageSavingConvention), m_metadataOptions(other.m_metadataOptions), m_skipDeserializationForBasicTypes(other.m_skipDeserializationForBasicTypes), m_serverName(other.m_serverName), m_baseUrl(other.m_baseUrl), m_uICulture(other.m_uICulture), m_saveMetadataHidden(other.m_saveMetadataHidden), m_contentTypes(other.m_contentTypes), m_remoteClientBitrateLimit(other.m_remoteClientBitrateLimit), m_enableFolderView(other.m_enableFolderView), m_enableGroupingIntoCollections(other.m_enableGroupingIntoCollections), m_displaySpecialsWithinSeasons(other.m_displaySpecialsWithinSeasons), m_localNetworkSubnets(other.m_localNetworkSubnets), m_localNetworkAddresses(other.m_localNetworkAddresses), m_codecsUsed(other.m_codecsUsed), m_pluginRepositories(other.m_pluginRepositories), m_enableExternalContentInSuggestions(other.m_enableExternalContentInSuggestions), m_requireHttps(other.m_requireHttps), m_enableNewOmdbSupport(other.m_enableNewOmdbSupport), m_remoteIPFilter(other.m_remoteIPFilter), m_isRemoteIPFilterBlacklist(other.m_isRemoteIPFilterBlacklist), m_imageExtractionTimeoutMs(other.m_imageExtractionTimeoutMs), m_pathSubstitutions(other.m_pathSubstitutions), m_enableSimpleArtistDetection(other.m_enableSimpleArtistDetection), m_uninstalledPlugins(other.m_uninstalledPlugins), m_enableSlowResponseWarning(other.m_enableSlowResponseWarning), m_slowResponseThresholdMs(other.m_slowResponseThresholdMs), m_corsHosts(other.m_corsHosts), m_knownProxies(other.m_knownProxies), m_activityLogRetentionDays(other.m_activityLogRetentionDays), m_libraryScanFanoutConcurrency(other.m_libraryScanFanoutConcurrency), m_libraryMetadataRefreshConcurrency(other.m_libraryMetadataRefreshConcurrency), m_removeOldPlugins(other.m_removeOldPlugins), m_disablePluginImages(other.m_disablePluginImages){} void ServerConfiguration::replaceData(ServerConfiguration &other) { m_logFileRetentionDays = other.m_logFileRetentionDays; m_isStartupWizardCompleted = other.m_isStartupWizardCompleted; m_cachePath = other.m_cachePath; m_previousVersion = other.m_previousVersion; m_previousVersionStr = other.m_previousVersionStr; m_enableUPnP = other.m_enableUPnP; m_enableMetrics = other.m_enableMetrics; m_publicPort = other.m_publicPort; m_uPnPCreateHttpPortMap = other.m_uPnPCreateHttpPortMap; m_uDPPortRange = other.m_uDPPortRange; m_enableIPV6 = other.m_enableIPV6; m_enableIPV4 = other.m_enableIPV4; m_enableSSDPTracing = other.m_enableSSDPTracing; m_sSDPTracingFilter = other.m_sSDPTracingFilter; m_uDPSendCount = other.m_uDPSendCount; m_uDPSendDelay = other.m_uDPSendDelay; m_ignoreVirtualInterfaces = other.m_ignoreVirtualInterfaces; m_virtualInterfaceNames = other.m_virtualInterfaceNames; m_gatewayMonitorPeriod = other.m_gatewayMonitorPeriod; m_enableMultiSocketBinding = other.m_enableMultiSocketBinding; m_trustAllIP6Interfaces = other.m_trustAllIP6Interfaces; m_hDHomerunPortRange = other.m_hDHomerunPortRange; m_publishedServerUriBySubnet = other.m_publishedServerUriBySubnet; m_autoDiscoveryTracing = other.m_autoDiscoveryTracing; m_autoDiscovery = other.m_autoDiscovery; m_publicHttpsPort = other.m_publicHttpsPort; m_httpServerPortNumber = other.m_httpServerPortNumber; m_httpsPortNumber = other.m_httpsPortNumber; m_enableHttps = other.m_enableHttps; m_enableNormalizedItemByNameIds = other.m_enableNormalizedItemByNameIds; m_certificatePath = other.m_certificatePath; m_certificatePassword = other.m_certificatePassword; m_isPortAuthorized = other.m_isPortAuthorized; m_quickConnectAvailable = other.m_quickConnectAvailable; m_enableRemoteAccess = other.m_enableRemoteAccess; m_enableCaseSensitiveItemIds = other.m_enableCaseSensitiveItemIds; m_disableLiveTvChannelUserDataName = other.m_disableLiveTvChannelUserDataName; m_metadataPath = other.m_metadataPath; m_metadataNetworkPath = other.m_metadataNetworkPath; m_preferredMetadataLanguage = other.m_preferredMetadataLanguage; m_metadataCountryCode = other.m_metadataCountryCode; m_sortReplaceCharacters = other.m_sortReplaceCharacters; m_sortRemoveCharacters = other.m_sortRemoveCharacters; m_sortRemoveWords = other.m_sortRemoveWords; m_minResumePct = other.m_minResumePct; m_maxResumePct = other.m_maxResumePct; m_minResumeDurationSeconds = other.m_minResumeDurationSeconds; m_minAudiobookResume = other.m_minAudiobookResume; m_maxAudiobookResume = other.m_maxAudiobookResume; m_libraryMonitorDelay = other.m_libraryMonitorDelay; m_enableDashboardResponseCaching = other.m_enableDashboardResponseCaching; m_imageSavingConvention = other.m_imageSavingConvention; m_metadataOptions = other.m_metadataOptions; m_skipDeserializationForBasicTypes = other.m_skipDeserializationForBasicTypes; m_serverName = other.m_serverName; m_baseUrl = other.m_baseUrl; m_uICulture = other.m_uICulture; m_saveMetadataHidden = other.m_saveMetadataHidden; m_contentTypes = other.m_contentTypes; m_remoteClientBitrateLimit = other.m_remoteClientBitrateLimit; m_enableFolderView = other.m_enableFolderView; m_enableGroupingIntoCollections = other.m_enableGroupingIntoCollections; m_displaySpecialsWithinSeasons = other.m_displaySpecialsWithinSeasons; m_localNetworkSubnets = other.m_localNetworkSubnets; m_localNetworkAddresses = other.m_localNetworkAddresses; m_codecsUsed = other.m_codecsUsed; m_pluginRepositories = other.m_pluginRepositories; m_enableExternalContentInSuggestions = other.m_enableExternalContentInSuggestions; m_requireHttps = other.m_requireHttps; m_enableNewOmdbSupport = other.m_enableNewOmdbSupport; m_remoteIPFilter = other.m_remoteIPFilter; m_isRemoteIPFilterBlacklist = other.m_isRemoteIPFilterBlacklist; m_imageExtractionTimeoutMs = other.m_imageExtractionTimeoutMs; m_pathSubstitutions = other.m_pathSubstitutions; m_enableSimpleArtistDetection = other.m_enableSimpleArtistDetection; m_uninstalledPlugins = other.m_uninstalledPlugins; m_enableSlowResponseWarning = other.m_enableSlowResponseWarning; m_slowResponseThresholdMs = other.m_slowResponseThresholdMs; m_corsHosts = other.m_corsHosts; m_knownProxies = other.m_knownProxies; m_activityLogRetentionDays = other.m_activityLogRetentionDays; m_libraryScanFanoutConcurrency = other.m_libraryScanFanoutConcurrency; m_libraryMetadataRefreshConcurrency = other.m_libraryMetadataRefreshConcurrency; m_removeOldPlugins = other.m_removeOldPlugins; m_disablePluginImages = other.m_disablePluginImages; } ServerConfiguration ServerConfiguration::fromJson(QJsonObject source) { ServerConfiguration instance; instance.setFromJson(source); return instance; } void ServerConfiguration::setFromJson(QJsonObject source) { m_logFileRetentionDays = Jellyfin::Support::fromJsonValue(source["LogFileRetentionDays"]); m_isStartupWizardCompleted = Jellyfin::Support::fromJsonValue(source["IsStartupWizardCompleted"]); m_cachePath = Jellyfin::Support::fromJsonValue(source["CachePath"]); m_previousVersion = Jellyfin::Support::fromJsonValue>(source["PreviousVersion"]); m_previousVersionStr = Jellyfin::Support::fromJsonValue(source["PreviousVersionStr"]); m_enableUPnP = Jellyfin::Support::fromJsonValue(source["EnableUPnP"]); m_enableMetrics = Jellyfin::Support::fromJsonValue(source["EnableMetrics"]); m_publicPort = Jellyfin::Support::fromJsonValue(source["PublicPort"]); m_uPnPCreateHttpPortMap = Jellyfin::Support::fromJsonValue(source["UPnPCreateHttpPortMap"]); m_uDPPortRange = Jellyfin::Support::fromJsonValue(source["UDPPortRange"]); m_enableIPV6 = Jellyfin::Support::fromJsonValue(source["EnableIPV6"]); m_enableIPV4 = Jellyfin::Support::fromJsonValue(source["EnableIPV4"]); m_enableSSDPTracing = Jellyfin::Support::fromJsonValue(source["EnableSSDPTracing"]); m_sSDPTracingFilter = Jellyfin::Support::fromJsonValue(source["SSDPTracingFilter"]); m_uDPSendCount = Jellyfin::Support::fromJsonValue(source["UDPSendCount"]); m_uDPSendDelay = Jellyfin::Support::fromJsonValue(source["UDPSendDelay"]); m_ignoreVirtualInterfaces = Jellyfin::Support::fromJsonValue(source["IgnoreVirtualInterfaces"]); m_virtualInterfaceNames = Jellyfin::Support::fromJsonValue(source["VirtualInterfaceNames"]); m_gatewayMonitorPeriod = Jellyfin::Support::fromJsonValue(source["GatewayMonitorPeriod"]); m_enableMultiSocketBinding = Jellyfin::Support::fromJsonValue(source["EnableMultiSocketBinding"]); m_trustAllIP6Interfaces = Jellyfin::Support::fromJsonValue(source["TrustAllIP6Interfaces"]); m_hDHomerunPortRange = Jellyfin::Support::fromJsonValue(source["HDHomerunPortRange"]); m_publishedServerUriBySubnet = Jellyfin::Support::fromJsonValue(source["PublishedServerUriBySubnet"]); m_autoDiscoveryTracing = Jellyfin::Support::fromJsonValue(source["AutoDiscoveryTracing"]); m_autoDiscovery = Jellyfin::Support::fromJsonValue(source["AutoDiscovery"]); m_publicHttpsPort = Jellyfin::Support::fromJsonValue(source["PublicHttpsPort"]); m_httpServerPortNumber = Jellyfin::Support::fromJsonValue(source["HttpServerPortNumber"]); m_httpsPortNumber = Jellyfin::Support::fromJsonValue(source["HttpsPortNumber"]); m_enableHttps = Jellyfin::Support::fromJsonValue(source["EnableHttps"]); m_enableNormalizedItemByNameIds = Jellyfin::Support::fromJsonValue(source["EnableNormalizedItemByNameIds"]); m_certificatePath = Jellyfin::Support::fromJsonValue(source["CertificatePath"]); m_certificatePassword = Jellyfin::Support::fromJsonValue(source["CertificatePassword"]); m_isPortAuthorized = Jellyfin::Support::fromJsonValue(source["IsPortAuthorized"]); m_quickConnectAvailable = Jellyfin::Support::fromJsonValue(source["QuickConnectAvailable"]); m_enableRemoteAccess = Jellyfin::Support::fromJsonValue(source["EnableRemoteAccess"]); m_enableCaseSensitiveItemIds = Jellyfin::Support::fromJsonValue(source["EnableCaseSensitiveItemIds"]); m_disableLiveTvChannelUserDataName = Jellyfin::Support::fromJsonValue(source["DisableLiveTvChannelUserDataName"]); m_metadataPath = Jellyfin::Support::fromJsonValue(source["MetadataPath"]); m_metadataNetworkPath = Jellyfin::Support::fromJsonValue(source["MetadataNetworkPath"]); m_preferredMetadataLanguage = Jellyfin::Support::fromJsonValue(source["PreferredMetadataLanguage"]); m_metadataCountryCode = Jellyfin::Support::fromJsonValue(source["MetadataCountryCode"]); m_sortReplaceCharacters = Jellyfin::Support::fromJsonValue(source["SortReplaceCharacters"]); m_sortRemoveCharacters = Jellyfin::Support::fromJsonValue(source["SortRemoveCharacters"]); m_sortRemoveWords = Jellyfin::Support::fromJsonValue(source["SortRemoveWords"]); m_minResumePct = Jellyfin::Support::fromJsonValue(source["MinResumePct"]); m_maxResumePct = Jellyfin::Support::fromJsonValue(source["MaxResumePct"]); m_minResumeDurationSeconds = Jellyfin::Support::fromJsonValue(source["MinResumeDurationSeconds"]); m_minAudiobookResume = Jellyfin::Support::fromJsonValue(source["MinAudiobookResume"]); m_maxAudiobookResume = Jellyfin::Support::fromJsonValue(source["MaxAudiobookResume"]); m_libraryMonitorDelay = Jellyfin::Support::fromJsonValue(source["LibraryMonitorDelay"]); m_enableDashboardResponseCaching = Jellyfin::Support::fromJsonValue(source["EnableDashboardResponseCaching"]); m_imageSavingConvention = Jellyfin::Support::fromJsonValue(source["ImageSavingConvention"]); m_metadataOptions = Jellyfin::Support::fromJsonValue>(source["MetadataOptions"]); m_skipDeserializationForBasicTypes = Jellyfin::Support::fromJsonValue(source["SkipDeserializationForBasicTypes"]); m_serverName = Jellyfin::Support::fromJsonValue(source["ServerName"]); m_baseUrl = Jellyfin::Support::fromJsonValue(source["BaseUrl"]); m_uICulture = Jellyfin::Support::fromJsonValue(source["UICulture"]); m_saveMetadataHidden = Jellyfin::Support::fromJsonValue(source["SaveMetadataHidden"]); m_contentTypes = Jellyfin::Support::fromJsonValue>(source["ContentTypes"]); m_remoteClientBitrateLimit = Jellyfin::Support::fromJsonValue(source["RemoteClientBitrateLimit"]); m_enableFolderView = Jellyfin::Support::fromJsonValue(source["EnableFolderView"]); m_enableGroupingIntoCollections = Jellyfin::Support::fromJsonValue(source["EnableGroupingIntoCollections"]); m_displaySpecialsWithinSeasons = Jellyfin::Support::fromJsonValue(source["DisplaySpecialsWithinSeasons"]); m_localNetworkSubnets = Jellyfin::Support::fromJsonValue(source["LocalNetworkSubnets"]); m_localNetworkAddresses = Jellyfin::Support::fromJsonValue(source["LocalNetworkAddresses"]); m_codecsUsed = Jellyfin::Support::fromJsonValue(source["CodecsUsed"]); m_pluginRepositories = Jellyfin::Support::fromJsonValue>(source["PluginRepositories"]); m_enableExternalContentInSuggestions = Jellyfin::Support::fromJsonValue(source["EnableExternalContentInSuggestions"]); m_requireHttps = Jellyfin::Support::fromJsonValue(source["RequireHttps"]); m_enableNewOmdbSupport = Jellyfin::Support::fromJsonValue(source["EnableNewOmdbSupport"]); m_remoteIPFilter = Jellyfin::Support::fromJsonValue(source["RemoteIPFilter"]); m_isRemoteIPFilterBlacklist = Jellyfin::Support::fromJsonValue(source["IsRemoteIPFilterBlacklist"]); m_imageExtractionTimeoutMs = Jellyfin::Support::fromJsonValue(source["ImageExtractionTimeoutMs"]); m_pathSubstitutions = Jellyfin::Support::fromJsonValue>(source["PathSubstitutions"]); m_enableSimpleArtistDetection = Jellyfin::Support::fromJsonValue(source["EnableSimpleArtistDetection"]); m_uninstalledPlugins = Jellyfin::Support::fromJsonValue(source["UninstalledPlugins"]); m_enableSlowResponseWarning = Jellyfin::Support::fromJsonValue(source["EnableSlowResponseWarning"]); m_slowResponseThresholdMs = Jellyfin::Support::fromJsonValue(source["SlowResponseThresholdMs"]); m_corsHosts = Jellyfin::Support::fromJsonValue(source["CorsHosts"]); m_knownProxies = Jellyfin::Support::fromJsonValue(source["KnownProxies"]); m_activityLogRetentionDays = Jellyfin::Support::fromJsonValue>(source["ActivityLogRetentionDays"]); m_libraryScanFanoutConcurrency = Jellyfin::Support::fromJsonValue(source["LibraryScanFanoutConcurrency"]); m_libraryMetadataRefreshConcurrency = Jellyfin::Support::fromJsonValue(source["LibraryMetadataRefreshConcurrency"]); m_removeOldPlugins = Jellyfin::Support::fromJsonValue(source["RemoveOldPlugins"]); m_disablePluginImages = Jellyfin::Support::fromJsonValue(source["DisablePluginImages"]); } QJsonObject ServerConfiguration::toJson() const { QJsonObject result; result["LogFileRetentionDays"] = Jellyfin::Support::toJsonValue(m_logFileRetentionDays); result["IsStartupWizardCompleted"] = Jellyfin::Support::toJsonValue(m_isStartupWizardCompleted); if (!(m_cachePath.isNull())) { result["CachePath"] = Jellyfin::Support::toJsonValue(m_cachePath); } result["PreviousVersion"] = Jellyfin::Support::toJsonValue>(m_previousVersion); if (!(m_previousVersionStr.isNull())) { result["PreviousVersionStr"] = Jellyfin::Support::toJsonValue(m_previousVersionStr); } result["EnableUPnP"] = Jellyfin::Support::toJsonValue(m_enableUPnP); result["EnableMetrics"] = Jellyfin::Support::toJsonValue(m_enableMetrics); result["PublicPort"] = Jellyfin::Support::toJsonValue(m_publicPort); result["UPnPCreateHttpPortMap"] = Jellyfin::Support::toJsonValue(m_uPnPCreateHttpPortMap); if (!(m_uDPPortRange.isNull())) { result["UDPPortRange"] = Jellyfin::Support::toJsonValue(m_uDPPortRange); } result["EnableIPV6"] = Jellyfin::Support::toJsonValue(m_enableIPV6); result["EnableIPV4"] = Jellyfin::Support::toJsonValue(m_enableIPV4); result["EnableSSDPTracing"] = Jellyfin::Support::toJsonValue(m_enableSSDPTracing); if (!(m_sSDPTracingFilter.isNull())) { result["SSDPTracingFilter"] = Jellyfin::Support::toJsonValue(m_sSDPTracingFilter); } result["UDPSendCount"] = Jellyfin::Support::toJsonValue(m_uDPSendCount); result["UDPSendDelay"] = Jellyfin::Support::toJsonValue(m_uDPSendDelay); result["IgnoreVirtualInterfaces"] = Jellyfin::Support::toJsonValue(m_ignoreVirtualInterfaces); if (!(m_virtualInterfaceNames.isNull())) { result["VirtualInterfaceNames"] = Jellyfin::Support::toJsonValue(m_virtualInterfaceNames); } result["GatewayMonitorPeriod"] = Jellyfin::Support::toJsonValue(m_gatewayMonitorPeriod); result["EnableMultiSocketBinding"] = Jellyfin::Support::toJsonValue(m_enableMultiSocketBinding); result["TrustAllIP6Interfaces"] = Jellyfin::Support::toJsonValue(m_trustAllIP6Interfaces); if (!(m_hDHomerunPortRange.isNull())) { result["HDHomerunPortRange"] = Jellyfin::Support::toJsonValue(m_hDHomerunPortRange); } if (!(m_publishedServerUriBySubnet.size() == 0)) { result["PublishedServerUriBySubnet"] = Jellyfin::Support::toJsonValue(m_publishedServerUriBySubnet); } result["AutoDiscoveryTracing"] = Jellyfin::Support::toJsonValue(m_autoDiscoveryTracing); result["AutoDiscovery"] = Jellyfin::Support::toJsonValue(m_autoDiscovery); result["PublicHttpsPort"] = Jellyfin::Support::toJsonValue(m_publicHttpsPort); result["HttpServerPortNumber"] = Jellyfin::Support::toJsonValue(m_httpServerPortNumber); result["HttpsPortNumber"] = Jellyfin::Support::toJsonValue(m_httpsPortNumber); result["EnableHttps"] = Jellyfin::Support::toJsonValue(m_enableHttps); result["EnableNormalizedItemByNameIds"] = Jellyfin::Support::toJsonValue(m_enableNormalizedItemByNameIds); if (!(m_certificatePath.isNull())) { result["CertificatePath"] = Jellyfin::Support::toJsonValue(m_certificatePath); } if (!(m_certificatePassword.isNull())) { result["CertificatePassword"] = Jellyfin::Support::toJsonValue(m_certificatePassword); } result["IsPortAuthorized"] = Jellyfin::Support::toJsonValue(m_isPortAuthorized); result["QuickConnectAvailable"] = Jellyfin::Support::toJsonValue(m_quickConnectAvailable); result["EnableRemoteAccess"] = Jellyfin::Support::toJsonValue(m_enableRemoteAccess); result["EnableCaseSensitiveItemIds"] = Jellyfin::Support::toJsonValue(m_enableCaseSensitiveItemIds); result["DisableLiveTvChannelUserDataName"] = Jellyfin::Support::toJsonValue(m_disableLiveTvChannelUserDataName); if (!(m_metadataPath.isNull())) { result["MetadataPath"] = Jellyfin::Support::toJsonValue(m_metadataPath); } if (!(m_metadataNetworkPath.isNull())) { result["MetadataNetworkPath"] = Jellyfin::Support::toJsonValue(m_metadataNetworkPath); } if (!(m_preferredMetadataLanguage.isNull())) { result["PreferredMetadataLanguage"] = Jellyfin::Support::toJsonValue(m_preferredMetadataLanguage); } if (!(m_metadataCountryCode.isNull())) { result["MetadataCountryCode"] = Jellyfin::Support::toJsonValue(m_metadataCountryCode); } if (!(m_sortReplaceCharacters.size() == 0)) { result["SortReplaceCharacters"] = Jellyfin::Support::toJsonValue(m_sortReplaceCharacters); } if (!(m_sortRemoveCharacters.size() == 0)) { result["SortRemoveCharacters"] = Jellyfin::Support::toJsonValue(m_sortRemoveCharacters); } if (!(m_sortRemoveWords.size() == 0)) { result["SortRemoveWords"] = Jellyfin::Support::toJsonValue(m_sortRemoveWords); } result["MinResumePct"] = Jellyfin::Support::toJsonValue(m_minResumePct); result["MaxResumePct"] = Jellyfin::Support::toJsonValue(m_maxResumePct); result["MinResumeDurationSeconds"] = Jellyfin::Support::toJsonValue(m_minResumeDurationSeconds); result["MinAudiobookResume"] = Jellyfin::Support::toJsonValue(m_minAudiobookResume); result["MaxAudiobookResume"] = Jellyfin::Support::toJsonValue(m_maxAudiobookResume); result["LibraryMonitorDelay"] = Jellyfin::Support::toJsonValue(m_libraryMonitorDelay); result["EnableDashboardResponseCaching"] = Jellyfin::Support::toJsonValue(m_enableDashboardResponseCaching); result["ImageSavingConvention"] = Jellyfin::Support::toJsonValue(m_imageSavingConvention); if (!(m_metadataOptions.size() == 0)) { result["MetadataOptions"] = Jellyfin::Support::toJsonValue>(m_metadataOptions); } result["SkipDeserializationForBasicTypes"] = Jellyfin::Support::toJsonValue(m_skipDeserializationForBasicTypes); if (!(m_serverName.isNull())) { result["ServerName"] = Jellyfin::Support::toJsonValue(m_serverName); } if (!(m_baseUrl.isNull())) { result["BaseUrl"] = Jellyfin::Support::toJsonValue(m_baseUrl); } if (!(m_uICulture.isNull())) { result["UICulture"] = Jellyfin::Support::toJsonValue(m_uICulture); } result["SaveMetadataHidden"] = Jellyfin::Support::toJsonValue(m_saveMetadataHidden); if (!(m_contentTypes.size() == 0)) { result["ContentTypes"] = Jellyfin::Support::toJsonValue>(m_contentTypes); } result["RemoteClientBitrateLimit"] = Jellyfin::Support::toJsonValue(m_remoteClientBitrateLimit); result["EnableFolderView"] = Jellyfin::Support::toJsonValue(m_enableFolderView); result["EnableGroupingIntoCollections"] = Jellyfin::Support::toJsonValue(m_enableGroupingIntoCollections); result["DisplaySpecialsWithinSeasons"] = Jellyfin::Support::toJsonValue(m_displaySpecialsWithinSeasons); if (!(m_localNetworkSubnets.size() == 0)) { result["LocalNetworkSubnets"] = Jellyfin::Support::toJsonValue(m_localNetworkSubnets); } if (!(m_localNetworkAddresses.size() == 0)) { result["LocalNetworkAddresses"] = Jellyfin::Support::toJsonValue(m_localNetworkAddresses); } if (!(m_codecsUsed.size() == 0)) { result["CodecsUsed"] = Jellyfin::Support::toJsonValue(m_codecsUsed); } if (!(m_pluginRepositories.size() == 0)) { result["PluginRepositories"] = Jellyfin::Support::toJsonValue>(m_pluginRepositories); } result["EnableExternalContentInSuggestions"] = Jellyfin::Support::toJsonValue(m_enableExternalContentInSuggestions); result["RequireHttps"] = Jellyfin::Support::toJsonValue(m_requireHttps); result["EnableNewOmdbSupport"] = Jellyfin::Support::toJsonValue(m_enableNewOmdbSupport); if (!(m_remoteIPFilter.size() == 0)) { result["RemoteIPFilter"] = Jellyfin::Support::toJsonValue(m_remoteIPFilter); } result["IsRemoteIPFilterBlacklist"] = Jellyfin::Support::toJsonValue(m_isRemoteIPFilterBlacklist); result["ImageExtractionTimeoutMs"] = Jellyfin::Support::toJsonValue(m_imageExtractionTimeoutMs); if (!(m_pathSubstitutions.size() == 0)) { result["PathSubstitutions"] = Jellyfin::Support::toJsonValue>(m_pathSubstitutions); } result["EnableSimpleArtistDetection"] = Jellyfin::Support::toJsonValue(m_enableSimpleArtistDetection); if (!(m_uninstalledPlugins.size() == 0)) { result["UninstalledPlugins"] = Jellyfin::Support::toJsonValue(m_uninstalledPlugins); } result["EnableSlowResponseWarning"] = Jellyfin::Support::toJsonValue(m_enableSlowResponseWarning); result["SlowResponseThresholdMs"] = Jellyfin::Support::toJsonValue(m_slowResponseThresholdMs); if (!(m_corsHosts.size() == 0)) { result["CorsHosts"] = Jellyfin::Support::toJsonValue(m_corsHosts); } if (!(m_knownProxies.size() == 0)) { result["KnownProxies"] = Jellyfin::Support::toJsonValue(m_knownProxies); } if (!(!m_activityLogRetentionDays.has_value())) { result["ActivityLogRetentionDays"] = Jellyfin::Support::toJsonValue>(m_activityLogRetentionDays); } result["LibraryScanFanoutConcurrency"] = Jellyfin::Support::toJsonValue(m_libraryScanFanoutConcurrency); result["LibraryMetadataRefreshConcurrency"] = Jellyfin::Support::toJsonValue(m_libraryMetadataRefreshConcurrency); result["RemoveOldPlugins"] = Jellyfin::Support::toJsonValue(m_removeOldPlugins); result["DisablePluginImages"] = Jellyfin::Support::toJsonValue(m_disablePluginImages); return result; } qint32 ServerConfiguration::logFileRetentionDays() const { return m_logFileRetentionDays; } void ServerConfiguration::setLogFileRetentionDays(qint32 newLogFileRetentionDays) { m_logFileRetentionDays = newLogFileRetentionDays; } bool ServerConfiguration::isStartupWizardCompleted() const { return m_isStartupWizardCompleted; } void ServerConfiguration::setIsStartupWizardCompleted(bool newIsStartupWizardCompleted) { m_isStartupWizardCompleted = newIsStartupWizardCompleted; } QString ServerConfiguration::cachePath() const { return m_cachePath; } void ServerConfiguration::setCachePath(QString newCachePath) { m_cachePath = newCachePath; } bool ServerConfiguration::cachePathNull() const { return m_cachePath.isNull(); } void ServerConfiguration::setCachePathNull() { m_cachePath.clear(); } QSharedPointer ServerConfiguration::previousVersion() const { return m_previousVersion; } void ServerConfiguration::setPreviousVersion(QSharedPointer newPreviousVersion) { m_previousVersion = newPreviousVersion; } QString ServerConfiguration::previousVersionStr() const { return m_previousVersionStr; } void ServerConfiguration::setPreviousVersionStr(QString newPreviousVersionStr) { m_previousVersionStr = newPreviousVersionStr; } bool ServerConfiguration::previousVersionStrNull() const { return m_previousVersionStr.isNull(); } void ServerConfiguration::setPreviousVersionStrNull() { m_previousVersionStr.clear(); } bool ServerConfiguration::enableUPnP() const { return m_enableUPnP; } void ServerConfiguration::setEnableUPnP(bool newEnableUPnP) { m_enableUPnP = newEnableUPnP; } bool ServerConfiguration::enableMetrics() const { return m_enableMetrics; } void ServerConfiguration::setEnableMetrics(bool newEnableMetrics) { m_enableMetrics = newEnableMetrics; } qint32 ServerConfiguration::publicPort() const { return m_publicPort; } void ServerConfiguration::setPublicPort(qint32 newPublicPort) { m_publicPort = newPublicPort; } bool ServerConfiguration::uPnPCreateHttpPortMap() const { return m_uPnPCreateHttpPortMap; } void ServerConfiguration::setUPnPCreateHttpPortMap(bool newUPnPCreateHttpPortMap) { m_uPnPCreateHttpPortMap = newUPnPCreateHttpPortMap; } QString ServerConfiguration::uDPPortRange() const { return m_uDPPortRange; } void ServerConfiguration::setUDPPortRange(QString newUDPPortRange) { m_uDPPortRange = newUDPPortRange; } bool ServerConfiguration::uDPPortRangeNull() const { return m_uDPPortRange.isNull(); } void ServerConfiguration::setUDPPortRangeNull() { m_uDPPortRange.clear(); } bool ServerConfiguration::enableIPV6() const { return m_enableIPV6; } void ServerConfiguration::setEnableIPV6(bool newEnableIPV6) { m_enableIPV6 = newEnableIPV6; } bool ServerConfiguration::enableIPV4() const { return m_enableIPV4; } void ServerConfiguration::setEnableIPV4(bool newEnableIPV4) { m_enableIPV4 = newEnableIPV4; } bool ServerConfiguration::enableSSDPTracing() const { return m_enableSSDPTracing; } void ServerConfiguration::setEnableSSDPTracing(bool newEnableSSDPTracing) { m_enableSSDPTracing = newEnableSSDPTracing; } QString ServerConfiguration::sSDPTracingFilter() const { return m_sSDPTracingFilter; } void ServerConfiguration::setSSDPTracingFilter(QString newSSDPTracingFilter) { m_sSDPTracingFilter = newSSDPTracingFilter; } bool ServerConfiguration::sSDPTracingFilterNull() const { return m_sSDPTracingFilter.isNull(); } void ServerConfiguration::setSSDPTracingFilterNull() { m_sSDPTracingFilter.clear(); } qint32 ServerConfiguration::uDPSendCount() const { return m_uDPSendCount; } void ServerConfiguration::setUDPSendCount(qint32 newUDPSendCount) { m_uDPSendCount = newUDPSendCount; } qint32 ServerConfiguration::uDPSendDelay() const { return m_uDPSendDelay; } void ServerConfiguration::setUDPSendDelay(qint32 newUDPSendDelay) { m_uDPSendDelay = newUDPSendDelay; } bool ServerConfiguration::ignoreVirtualInterfaces() const { return m_ignoreVirtualInterfaces; } void ServerConfiguration::setIgnoreVirtualInterfaces(bool newIgnoreVirtualInterfaces) { m_ignoreVirtualInterfaces = newIgnoreVirtualInterfaces; } QString ServerConfiguration::virtualInterfaceNames() const { return m_virtualInterfaceNames; } void ServerConfiguration::setVirtualInterfaceNames(QString newVirtualInterfaceNames) { m_virtualInterfaceNames = newVirtualInterfaceNames; } bool ServerConfiguration::virtualInterfaceNamesNull() const { return m_virtualInterfaceNames.isNull(); } void ServerConfiguration::setVirtualInterfaceNamesNull() { m_virtualInterfaceNames.clear(); } qint32 ServerConfiguration::gatewayMonitorPeriod() const { return m_gatewayMonitorPeriod; } void ServerConfiguration::setGatewayMonitorPeriod(qint32 newGatewayMonitorPeriod) { m_gatewayMonitorPeriod = newGatewayMonitorPeriod; } bool ServerConfiguration::enableMultiSocketBinding() const { return m_enableMultiSocketBinding; } void ServerConfiguration::setEnableMultiSocketBinding(bool newEnableMultiSocketBinding) { m_enableMultiSocketBinding = newEnableMultiSocketBinding; } bool ServerConfiguration::trustAllIP6Interfaces() const { return m_trustAllIP6Interfaces; } void ServerConfiguration::setTrustAllIP6Interfaces(bool newTrustAllIP6Interfaces) { m_trustAllIP6Interfaces = newTrustAllIP6Interfaces; } QString ServerConfiguration::hDHomerunPortRange() const { return m_hDHomerunPortRange; } void ServerConfiguration::setHDHomerunPortRange(QString newHDHomerunPortRange) { m_hDHomerunPortRange = newHDHomerunPortRange; } bool ServerConfiguration::hDHomerunPortRangeNull() const { return m_hDHomerunPortRange.isNull(); } void ServerConfiguration::setHDHomerunPortRangeNull() { m_hDHomerunPortRange.clear(); } QStringList ServerConfiguration::publishedServerUriBySubnet() const { return m_publishedServerUriBySubnet; } void ServerConfiguration::setPublishedServerUriBySubnet(QStringList newPublishedServerUriBySubnet) { m_publishedServerUriBySubnet = newPublishedServerUriBySubnet; } bool ServerConfiguration::publishedServerUriBySubnetNull() const { return m_publishedServerUriBySubnet.size() == 0; } void ServerConfiguration::setPublishedServerUriBySubnetNull() { m_publishedServerUriBySubnet.clear(); } bool ServerConfiguration::autoDiscoveryTracing() const { return m_autoDiscoveryTracing; } void ServerConfiguration::setAutoDiscoveryTracing(bool newAutoDiscoveryTracing) { m_autoDiscoveryTracing = newAutoDiscoveryTracing; } bool ServerConfiguration::autoDiscovery() const { return m_autoDiscovery; } void ServerConfiguration::setAutoDiscovery(bool newAutoDiscovery) { m_autoDiscovery = newAutoDiscovery; } qint32 ServerConfiguration::publicHttpsPort() const { return m_publicHttpsPort; } void ServerConfiguration::setPublicHttpsPort(qint32 newPublicHttpsPort) { m_publicHttpsPort = newPublicHttpsPort; } qint32 ServerConfiguration::httpServerPortNumber() const { return m_httpServerPortNumber; } void ServerConfiguration::setHttpServerPortNumber(qint32 newHttpServerPortNumber) { m_httpServerPortNumber = newHttpServerPortNumber; } qint32 ServerConfiguration::httpsPortNumber() const { return m_httpsPortNumber; } void ServerConfiguration::setHttpsPortNumber(qint32 newHttpsPortNumber) { m_httpsPortNumber = newHttpsPortNumber; } bool ServerConfiguration::enableHttps() const { return m_enableHttps; } void ServerConfiguration::setEnableHttps(bool newEnableHttps) { m_enableHttps = newEnableHttps; } bool ServerConfiguration::enableNormalizedItemByNameIds() const { return m_enableNormalizedItemByNameIds; } void ServerConfiguration::setEnableNormalizedItemByNameIds(bool newEnableNormalizedItemByNameIds) { m_enableNormalizedItemByNameIds = newEnableNormalizedItemByNameIds; } QString ServerConfiguration::certificatePath() const { return m_certificatePath; } void ServerConfiguration::setCertificatePath(QString newCertificatePath) { m_certificatePath = newCertificatePath; } bool ServerConfiguration::certificatePathNull() const { return m_certificatePath.isNull(); } void ServerConfiguration::setCertificatePathNull() { m_certificatePath.clear(); } QString ServerConfiguration::certificatePassword() const { return m_certificatePassword; } void ServerConfiguration::setCertificatePassword(QString newCertificatePassword) { m_certificatePassword = newCertificatePassword; } bool ServerConfiguration::certificatePasswordNull() const { return m_certificatePassword.isNull(); } void ServerConfiguration::setCertificatePasswordNull() { m_certificatePassword.clear(); } bool ServerConfiguration::isPortAuthorized() const { return m_isPortAuthorized; } void ServerConfiguration::setIsPortAuthorized(bool newIsPortAuthorized) { m_isPortAuthorized = newIsPortAuthorized; } bool ServerConfiguration::quickConnectAvailable() const { return m_quickConnectAvailable; } void ServerConfiguration::setQuickConnectAvailable(bool newQuickConnectAvailable) { m_quickConnectAvailable = newQuickConnectAvailable; } bool ServerConfiguration::enableRemoteAccess() const { return m_enableRemoteAccess; } void ServerConfiguration::setEnableRemoteAccess(bool newEnableRemoteAccess) { m_enableRemoteAccess = newEnableRemoteAccess; } bool ServerConfiguration::enableCaseSensitiveItemIds() const { return m_enableCaseSensitiveItemIds; } void ServerConfiguration::setEnableCaseSensitiveItemIds(bool newEnableCaseSensitiveItemIds) { m_enableCaseSensitiveItemIds = newEnableCaseSensitiveItemIds; } bool ServerConfiguration::disableLiveTvChannelUserDataName() const { return m_disableLiveTvChannelUserDataName; } void ServerConfiguration::setDisableLiveTvChannelUserDataName(bool newDisableLiveTvChannelUserDataName) { m_disableLiveTvChannelUserDataName = newDisableLiveTvChannelUserDataName; } QString ServerConfiguration::metadataPath() const { return m_metadataPath; } void ServerConfiguration::setMetadataPath(QString newMetadataPath) { m_metadataPath = newMetadataPath; } bool ServerConfiguration::metadataPathNull() const { return m_metadataPath.isNull(); } void ServerConfiguration::setMetadataPathNull() { m_metadataPath.clear(); } QString ServerConfiguration::metadataNetworkPath() const { return m_metadataNetworkPath; } void ServerConfiguration::setMetadataNetworkPath(QString newMetadataNetworkPath) { m_metadataNetworkPath = newMetadataNetworkPath; } bool ServerConfiguration::metadataNetworkPathNull() const { return m_metadataNetworkPath.isNull(); } void ServerConfiguration::setMetadataNetworkPathNull() { m_metadataNetworkPath.clear(); } QString ServerConfiguration::preferredMetadataLanguage() const { return m_preferredMetadataLanguage; } void ServerConfiguration::setPreferredMetadataLanguage(QString newPreferredMetadataLanguage) { m_preferredMetadataLanguage = newPreferredMetadataLanguage; } bool ServerConfiguration::preferredMetadataLanguageNull() const { return m_preferredMetadataLanguage.isNull(); } void ServerConfiguration::setPreferredMetadataLanguageNull() { m_preferredMetadataLanguage.clear(); } QString ServerConfiguration::metadataCountryCode() const { return m_metadataCountryCode; } void ServerConfiguration::setMetadataCountryCode(QString newMetadataCountryCode) { m_metadataCountryCode = newMetadataCountryCode; } bool ServerConfiguration::metadataCountryCodeNull() const { return m_metadataCountryCode.isNull(); } void ServerConfiguration::setMetadataCountryCodeNull() { m_metadataCountryCode.clear(); } QStringList ServerConfiguration::sortReplaceCharacters() const { return m_sortReplaceCharacters; } void ServerConfiguration::setSortReplaceCharacters(QStringList newSortReplaceCharacters) { m_sortReplaceCharacters = newSortReplaceCharacters; } bool ServerConfiguration::sortReplaceCharactersNull() const { return m_sortReplaceCharacters.size() == 0; } void ServerConfiguration::setSortReplaceCharactersNull() { m_sortReplaceCharacters.clear(); } QStringList ServerConfiguration::sortRemoveCharacters() const { return m_sortRemoveCharacters; } void ServerConfiguration::setSortRemoveCharacters(QStringList newSortRemoveCharacters) { m_sortRemoveCharacters = newSortRemoveCharacters; } bool ServerConfiguration::sortRemoveCharactersNull() const { return m_sortRemoveCharacters.size() == 0; } void ServerConfiguration::setSortRemoveCharactersNull() { m_sortRemoveCharacters.clear(); } QStringList ServerConfiguration::sortRemoveWords() const { return m_sortRemoveWords; } void ServerConfiguration::setSortRemoveWords(QStringList newSortRemoveWords) { m_sortRemoveWords = newSortRemoveWords; } bool ServerConfiguration::sortRemoveWordsNull() const { return m_sortRemoveWords.size() == 0; } void ServerConfiguration::setSortRemoveWordsNull() { m_sortRemoveWords.clear(); } qint32 ServerConfiguration::minResumePct() const { return m_minResumePct; } void ServerConfiguration::setMinResumePct(qint32 newMinResumePct) { m_minResumePct = newMinResumePct; } qint32 ServerConfiguration::maxResumePct() const { return m_maxResumePct; } void ServerConfiguration::setMaxResumePct(qint32 newMaxResumePct) { m_maxResumePct = newMaxResumePct; } qint32 ServerConfiguration::minResumeDurationSeconds() const { return m_minResumeDurationSeconds; } void ServerConfiguration::setMinResumeDurationSeconds(qint32 newMinResumeDurationSeconds) { m_minResumeDurationSeconds = newMinResumeDurationSeconds; } qint32 ServerConfiguration::minAudiobookResume() const { return m_minAudiobookResume; } void ServerConfiguration::setMinAudiobookResume(qint32 newMinAudiobookResume) { m_minAudiobookResume = newMinAudiobookResume; } qint32 ServerConfiguration::maxAudiobookResume() const { return m_maxAudiobookResume; } void ServerConfiguration::setMaxAudiobookResume(qint32 newMaxAudiobookResume) { m_maxAudiobookResume = newMaxAudiobookResume; } qint32 ServerConfiguration::libraryMonitorDelay() const { return m_libraryMonitorDelay; } void ServerConfiguration::setLibraryMonitorDelay(qint32 newLibraryMonitorDelay) { m_libraryMonitorDelay = newLibraryMonitorDelay; } bool ServerConfiguration::enableDashboardResponseCaching() const { return m_enableDashboardResponseCaching; } void ServerConfiguration::setEnableDashboardResponseCaching(bool newEnableDashboardResponseCaching) { m_enableDashboardResponseCaching = newEnableDashboardResponseCaching; } ImageSavingConvention ServerConfiguration::imageSavingConvention() const { return m_imageSavingConvention; } void ServerConfiguration::setImageSavingConvention(ImageSavingConvention newImageSavingConvention) { m_imageSavingConvention = newImageSavingConvention; } QList ServerConfiguration::metadataOptions() const { return m_metadataOptions; } void ServerConfiguration::setMetadataOptions(QList newMetadataOptions) { m_metadataOptions = newMetadataOptions; } bool ServerConfiguration::metadataOptionsNull() const { return m_metadataOptions.size() == 0; } void ServerConfiguration::setMetadataOptionsNull() { m_metadataOptions.clear(); } bool ServerConfiguration::skipDeserializationForBasicTypes() const { return m_skipDeserializationForBasicTypes; } void ServerConfiguration::setSkipDeserializationForBasicTypes(bool newSkipDeserializationForBasicTypes) { m_skipDeserializationForBasicTypes = newSkipDeserializationForBasicTypes; } QString ServerConfiguration::serverName() const { return m_serverName; } void ServerConfiguration::setServerName(QString newServerName) { m_serverName = newServerName; } bool ServerConfiguration::serverNameNull() const { return m_serverName.isNull(); } void ServerConfiguration::setServerNameNull() { m_serverName.clear(); } QString ServerConfiguration::baseUrl() const { return m_baseUrl; } void ServerConfiguration::setBaseUrl(QString newBaseUrl) { m_baseUrl = newBaseUrl; } bool ServerConfiguration::baseUrlNull() const { return m_baseUrl.isNull(); } void ServerConfiguration::setBaseUrlNull() { m_baseUrl.clear(); } QString ServerConfiguration::uICulture() const { return m_uICulture; } void ServerConfiguration::setUICulture(QString newUICulture) { m_uICulture = newUICulture; } bool ServerConfiguration::uICultureNull() const { return m_uICulture.isNull(); } void ServerConfiguration::setUICultureNull() { m_uICulture.clear(); } bool ServerConfiguration::saveMetadataHidden() const { return m_saveMetadataHidden; } void ServerConfiguration::setSaveMetadataHidden(bool newSaveMetadataHidden) { m_saveMetadataHidden = newSaveMetadataHidden; } QList ServerConfiguration::contentTypes() const { return m_contentTypes; } void ServerConfiguration::setContentTypes(QList newContentTypes) { m_contentTypes = newContentTypes; } bool ServerConfiguration::contentTypesNull() const { return m_contentTypes.size() == 0; } void ServerConfiguration::setContentTypesNull() { m_contentTypes.clear(); } qint32 ServerConfiguration::remoteClientBitrateLimit() const { return m_remoteClientBitrateLimit; } void ServerConfiguration::setRemoteClientBitrateLimit(qint32 newRemoteClientBitrateLimit) { m_remoteClientBitrateLimit = newRemoteClientBitrateLimit; } bool ServerConfiguration::enableFolderView() const { return m_enableFolderView; } void ServerConfiguration::setEnableFolderView(bool newEnableFolderView) { m_enableFolderView = newEnableFolderView; } bool ServerConfiguration::enableGroupingIntoCollections() const { return m_enableGroupingIntoCollections; } void ServerConfiguration::setEnableGroupingIntoCollections(bool newEnableGroupingIntoCollections) { m_enableGroupingIntoCollections = newEnableGroupingIntoCollections; } bool ServerConfiguration::displaySpecialsWithinSeasons() const { return m_displaySpecialsWithinSeasons; } void ServerConfiguration::setDisplaySpecialsWithinSeasons(bool newDisplaySpecialsWithinSeasons) { m_displaySpecialsWithinSeasons = newDisplaySpecialsWithinSeasons; } QStringList ServerConfiguration::localNetworkSubnets() const { return m_localNetworkSubnets; } void ServerConfiguration::setLocalNetworkSubnets(QStringList newLocalNetworkSubnets) { m_localNetworkSubnets = newLocalNetworkSubnets; } bool ServerConfiguration::localNetworkSubnetsNull() const { return m_localNetworkSubnets.size() == 0; } void ServerConfiguration::setLocalNetworkSubnetsNull() { m_localNetworkSubnets.clear(); } QStringList ServerConfiguration::localNetworkAddresses() const { return m_localNetworkAddresses; } void ServerConfiguration::setLocalNetworkAddresses(QStringList newLocalNetworkAddresses) { m_localNetworkAddresses = newLocalNetworkAddresses; } bool ServerConfiguration::localNetworkAddressesNull() const { return m_localNetworkAddresses.size() == 0; } void ServerConfiguration::setLocalNetworkAddressesNull() { m_localNetworkAddresses.clear(); } QStringList ServerConfiguration::codecsUsed() const { return m_codecsUsed; } void ServerConfiguration::setCodecsUsed(QStringList newCodecsUsed) { m_codecsUsed = newCodecsUsed; } bool ServerConfiguration::codecsUsedNull() const { return m_codecsUsed.size() == 0; } void ServerConfiguration::setCodecsUsedNull() { m_codecsUsed.clear(); } QList ServerConfiguration::pluginRepositories() const { return m_pluginRepositories; } void ServerConfiguration::setPluginRepositories(QList newPluginRepositories) { m_pluginRepositories = newPluginRepositories; } bool ServerConfiguration::pluginRepositoriesNull() const { return m_pluginRepositories.size() == 0; } void ServerConfiguration::setPluginRepositoriesNull() { m_pluginRepositories.clear(); } bool ServerConfiguration::enableExternalContentInSuggestions() const { return m_enableExternalContentInSuggestions; } void ServerConfiguration::setEnableExternalContentInSuggestions(bool newEnableExternalContentInSuggestions) { m_enableExternalContentInSuggestions = newEnableExternalContentInSuggestions; } bool ServerConfiguration::requireHttps() const { return m_requireHttps; } void ServerConfiguration::setRequireHttps(bool newRequireHttps) { m_requireHttps = newRequireHttps; } bool ServerConfiguration::enableNewOmdbSupport() const { return m_enableNewOmdbSupport; } void ServerConfiguration::setEnableNewOmdbSupport(bool newEnableNewOmdbSupport) { m_enableNewOmdbSupport = newEnableNewOmdbSupport; } QStringList ServerConfiguration::remoteIPFilter() const { return m_remoteIPFilter; } void ServerConfiguration::setRemoteIPFilter(QStringList newRemoteIPFilter) { m_remoteIPFilter = newRemoteIPFilter; } bool ServerConfiguration::remoteIPFilterNull() const { return m_remoteIPFilter.size() == 0; } void ServerConfiguration::setRemoteIPFilterNull() { m_remoteIPFilter.clear(); } bool ServerConfiguration::isRemoteIPFilterBlacklist() const { return m_isRemoteIPFilterBlacklist; } void ServerConfiguration::setIsRemoteIPFilterBlacklist(bool newIsRemoteIPFilterBlacklist) { m_isRemoteIPFilterBlacklist = newIsRemoteIPFilterBlacklist; } qint32 ServerConfiguration::imageExtractionTimeoutMs() const { return m_imageExtractionTimeoutMs; } void ServerConfiguration::setImageExtractionTimeoutMs(qint32 newImageExtractionTimeoutMs) { m_imageExtractionTimeoutMs = newImageExtractionTimeoutMs; } QList ServerConfiguration::pathSubstitutions() const { return m_pathSubstitutions; } void ServerConfiguration::setPathSubstitutions(QList newPathSubstitutions) { m_pathSubstitutions = newPathSubstitutions; } bool ServerConfiguration::pathSubstitutionsNull() const { return m_pathSubstitutions.size() == 0; } void ServerConfiguration::setPathSubstitutionsNull() { m_pathSubstitutions.clear(); } bool ServerConfiguration::enableSimpleArtistDetection() const { return m_enableSimpleArtistDetection; } void ServerConfiguration::setEnableSimpleArtistDetection(bool newEnableSimpleArtistDetection) { m_enableSimpleArtistDetection = newEnableSimpleArtistDetection; } QStringList ServerConfiguration::uninstalledPlugins() const { return m_uninstalledPlugins; } void ServerConfiguration::setUninstalledPlugins(QStringList newUninstalledPlugins) { m_uninstalledPlugins = newUninstalledPlugins; } bool ServerConfiguration::uninstalledPluginsNull() const { return m_uninstalledPlugins.size() == 0; } void ServerConfiguration::setUninstalledPluginsNull() { m_uninstalledPlugins.clear(); } bool ServerConfiguration::enableSlowResponseWarning() const { return m_enableSlowResponseWarning; } void ServerConfiguration::setEnableSlowResponseWarning(bool newEnableSlowResponseWarning) { m_enableSlowResponseWarning = newEnableSlowResponseWarning; } qint64 ServerConfiguration::slowResponseThresholdMs() const { return m_slowResponseThresholdMs; } void ServerConfiguration::setSlowResponseThresholdMs(qint64 newSlowResponseThresholdMs) { m_slowResponseThresholdMs = newSlowResponseThresholdMs; } QStringList ServerConfiguration::corsHosts() const { return m_corsHosts; } void ServerConfiguration::setCorsHosts(QStringList newCorsHosts) { m_corsHosts = newCorsHosts; } bool ServerConfiguration::corsHostsNull() const { return m_corsHosts.size() == 0; } void ServerConfiguration::setCorsHostsNull() { m_corsHosts.clear(); } QStringList ServerConfiguration::knownProxies() const { return m_knownProxies; } void ServerConfiguration::setKnownProxies(QStringList newKnownProxies) { m_knownProxies = newKnownProxies; } bool ServerConfiguration::knownProxiesNull() const { return m_knownProxies.size() == 0; } void ServerConfiguration::setKnownProxiesNull() { m_knownProxies.clear(); } std::optional ServerConfiguration::activityLogRetentionDays() const { return m_activityLogRetentionDays; } void ServerConfiguration::setActivityLogRetentionDays(std::optional newActivityLogRetentionDays) { m_activityLogRetentionDays = newActivityLogRetentionDays; } bool ServerConfiguration::activityLogRetentionDaysNull() const { return !m_activityLogRetentionDays.has_value(); } void ServerConfiguration::setActivityLogRetentionDaysNull() { m_activityLogRetentionDays = std::nullopt; } qint32 ServerConfiguration::libraryScanFanoutConcurrency() const { return m_libraryScanFanoutConcurrency; } void ServerConfiguration::setLibraryScanFanoutConcurrency(qint32 newLibraryScanFanoutConcurrency) { m_libraryScanFanoutConcurrency = newLibraryScanFanoutConcurrency; } qint32 ServerConfiguration::libraryMetadataRefreshConcurrency() const { return m_libraryMetadataRefreshConcurrency; } void ServerConfiguration::setLibraryMetadataRefreshConcurrency(qint32 newLibraryMetadataRefreshConcurrency) { m_libraryMetadataRefreshConcurrency = newLibraryMetadataRefreshConcurrency; } bool ServerConfiguration::removeOldPlugins() const { return m_removeOldPlugins; } void ServerConfiguration::setRemoveOldPlugins(bool newRemoveOldPlugins) { m_removeOldPlugins = newRemoveOldPlugins; } bool ServerConfiguration::disablePluginImages() const { return m_disablePluginImages; } void ServerConfiguration::setDisablePluginImages(bool newDisablePluginImages) { m_disablePluginImages = newDisablePluginImages; } } // NS DTO namespace Support { using ServerConfiguration = Jellyfin::DTO::ServerConfiguration; template <> ServerConfiguration fromJsonValue(const QJsonValue &source, convertType) { if (!source.isObject()) throw ParseException("Expected JSON Object"); return ServerConfiguration::fromJson(source.toObject()); } template<> QJsonValue toJsonValue(const ServerConfiguration &source, convertType) { return source.toJson(); } } // NS DTO } // NS Jellyfin