1
0
Fork 0
mirror of https://github.com/HenkKalkwater/harbour-sailfin.git synced 2024-11-25 02:15:17 +00:00

Replace not-fully-initializing DTO constructors

There were some constructors in the DTOs which allowed construction of
DTO which weren't fully initialized. These constructors have been made
private, as they are still used in the 'fromJson' methods. Additionally,
a constructor with all required parameters to fully initialize the
class has been added.

Additionally, the Loader class has been modified, since it no longer can
assume it is able to default construct the parameter type. The parameter
is now stored as an optional.

Closes #15
This commit is contained in:
Chris Josten 2021-09-25 16:54:33 +02:00
parent 1e795ae8b6
commit 90db983c30
358 changed files with 3785 additions and 322 deletions

View file

@ -7,9 +7,22 @@ class {{className}};
class {{className}} {
public:
{{#if hasRequiredProperties}}
{{className}}(
{{#each properties as |p|}}
{{#if p.isNotNullable}}
{{p.typeNameWithQualifiers}} {{p.name}}{{#if p.isLastNonNullable}}{{else}},{{/if}}
{{/if}}
{{/each}}
);
{{else}}
{{className}}();
{{/if}}
{{className}}(const {{className}} &other);
/**
@ -60,8 +73,18 @@ protected:
{{/if}}
{{/each}}
{{#if hasRequiredProperties}}
private:
// Private constructor which generates an invalid object, for use withing {{className}}::fromJson();
{{className}}();
{{/if}}
};
} // NS DTO
namespace Support {

View file

@ -1,5 +1,32 @@
{{className}}::{{className}}() {}
{{#if hasRequiredProperties}}
{{className}}::{{className}} (
{{#each properties as |property|}}
{{#if property.isNotNullable}}
{{property.typeNameWithQualifiers}} {{property.name}}{{#if property.isLastNonNullable}} {{else}}, {{/if}}
{{/if}}
{{/each}}
) :
{{#each properties as |property|}}
{{#if property.isNotNullable}}
{{property.memberName}}({{property.name}})
{{#if property.isLastNonNullable}}
{ }
{{else}}
,
{{/if}}
{{/if}}
{{/each}}
{{/if}}
{{className}}::{{className}}(const {{className}} &other) :

View file

@ -48,7 +48,14 @@ namespace DTO {
class AccessSchedule {
public:
AccessSchedule();
AccessSchedule(
qint32 jellyfinId,
QString userId,
DynamicDayOfWeek dayOfWeek,
double startHour,
double endHour
);
AccessSchedule(const AccessSchedule &other);
/**
@ -109,8 +116,13 @@ protected:
DynamicDayOfWeek m_dayOfWeek;
double m_startHour;
double m_endHour;
private:
// Private constructor which generates an invalid object, for use withing AccessSchedule::fromJson();
AccessSchedule();
};
} // NS DTO
namespace Support {

View file

@ -49,7 +49,13 @@ namespace DTO {
class ActivityLogEntry {
public:
ActivityLogEntry();
ActivityLogEntry(
qint64 jellyfinId,
QDateTime date,
QString userId,
LogLevel severity
);
ActivityLogEntry(const ActivityLogEntry &other);
/**
@ -172,8 +178,13 @@ protected:
QString m_userId;
QString m_userPrimaryImageTag;
LogLevel m_severity;
private:
// Private constructor which generates an invalid object, for use withing ActivityLogEntry::fromJson();
ActivityLogEntry();
};
} // NS DTO
namespace Support {

View file

@ -49,7 +49,11 @@ namespace DTO {
class ActivityLogEntryQueryResult {
public:
ActivityLogEntryQueryResult();
ActivityLogEntryQueryResult(
qint32 totalRecordCount,
qint32 startIndex
);
ActivityLogEntryQueryResult(const ActivityLogEntryQueryResult &other);
/**
@ -96,8 +100,13 @@ protected:
QList<ActivityLogEntry> m_items;
qint32 m_totalRecordCount;
qint32 m_startIndex;
private:
// Private constructor which generates an invalid object, for use withing ActivityLogEntryQueryResult::fromJson();
ActivityLogEntryQueryResult();
};
} // NS DTO
namespace Support {

View file

@ -48,7 +48,10 @@ namespace DTO {
class AddVirtualFolderDto {
public:
AddVirtualFolderDto();
AddVirtualFolderDto(
QSharedPointer<LibraryOptions> libraryOptions
);
AddVirtualFolderDto(const AddVirtualFolderDto &other);
/**
@ -69,8 +72,13 @@ public:
protected:
QSharedPointer<LibraryOptions> m_libraryOptions = QSharedPointer<LibraryOptions>();
private:
// Private constructor which generates an invalid object, for use withing AddVirtualFolderDto::fromJson();
AddVirtualFolderDto();
};
} // NS DTO
namespace Support {

View file

@ -51,7 +51,10 @@ namespace DTO {
class AlbumInfo {
public:
AlbumInfo();
AlbumInfo(
bool isAutomated
);
AlbumInfo(const AlbumInfo &other);
/**
@ -200,8 +203,13 @@ protected:
QStringList m_albumArtists;
QJsonObject m_artistProviderIds;
QList<SongInfo> m_songInfos;
private:
// Private constructor which generates an invalid object, for use withing AlbumInfo::fromJson();
AlbumInfo();
};
} // NS DTO
namespace Support {

View file

@ -49,7 +49,12 @@ namespace DTO {
class AlbumInfoRemoteSearchQuery {
public:
AlbumInfoRemoteSearchQuery();
AlbumInfoRemoteSearchQuery(
QSharedPointer<AlbumInfo> searchInfo,
QString itemId,
bool includeDisabledProviders
);
AlbumInfoRemoteSearchQuery(const AlbumInfoRemoteSearchQuery &other);
/**
@ -98,8 +103,13 @@ protected:
QString m_itemId;
QString m_searchProviderName;
bool m_includeDisabledProviders;
private:
// Private constructor which generates an invalid object, for use withing AlbumInfoRemoteSearchQuery::fromJson();
AlbumInfoRemoteSearchQuery();
};
} // NS DTO
namespace Support {

View file

@ -48,7 +48,12 @@ namespace DTO {
class AllThemeMediaResult {
public:
AllThemeMediaResult();
AllThemeMediaResult(
QSharedPointer<ThemeMediaResult> themeVideosResult,
QSharedPointer<ThemeMediaResult> themeSongsResult,
QSharedPointer<ThemeMediaResult> soundtrackSongsResult
);
AllThemeMediaResult(const AllThemeMediaResult &other);
/**
@ -81,8 +86,13 @@ protected:
QSharedPointer<ThemeMediaResult> m_themeVideosResult = QSharedPointer<ThemeMediaResult>();
QSharedPointer<ThemeMediaResult> m_themeSongsResult = QSharedPointer<ThemeMediaResult>();
QSharedPointer<ThemeMediaResult> m_soundtrackSongsResult = QSharedPointer<ThemeMediaResult>();
private:
// Private constructor which generates an invalid object, for use withing AllThemeMediaResult::fromJson();
AllThemeMediaResult();
};
} // NS DTO
namespace Support {

View file

@ -51,7 +51,10 @@ namespace DTO {
class ArtistInfo {
public:
ArtistInfo();
ArtistInfo(
bool isAutomated
);
ArtistInfo(const ArtistInfo &other);
/**
@ -176,8 +179,13 @@ protected:
QDateTime m_premiereDate;
bool m_isAutomated;
QList<SongInfo> m_songInfos;
private:
// Private constructor which generates an invalid object, for use withing ArtistInfo::fromJson();
ArtistInfo();
};
} // NS DTO
namespace Support {

View file

@ -49,7 +49,12 @@ namespace DTO {
class ArtistInfoRemoteSearchQuery {
public:
ArtistInfoRemoteSearchQuery();
ArtistInfoRemoteSearchQuery(
QSharedPointer<ArtistInfo> searchInfo,
QString itemId,
bool includeDisabledProviders
);
ArtistInfoRemoteSearchQuery(const ArtistInfoRemoteSearchQuery &other);
/**
@ -98,8 +103,13 @@ protected:
QString m_itemId;
QString m_searchProviderName;
bool m_includeDisabledProviders;
private:
// Private constructor which generates an invalid object, for use withing ArtistInfoRemoteSearchQuery::fromJson();
ArtistInfoRemoteSearchQuery();
};
} // NS DTO
namespace Support {

View file

@ -46,8 +46,7 @@ namespace DTO {
class AuthenticateUserByName {
public:
AuthenticateUserByName();
public: AuthenticateUserByName();
AuthenticateUserByName(const AuthenticateUserByName &other);
/**
@ -98,8 +97,11 @@ protected:
QString m_username;
QString m_pw;
QString m_password;
};
} // NS DTO
namespace Support {

View file

@ -48,7 +48,14 @@ namespace DTO {
class AuthenticationInfo {
public:
AuthenticationInfo();
AuthenticationInfo(
qint64 jellyfinId,
QString userId,
bool isActive,
QDateTime dateCreated,
QDateTime dateLastActivity
);
AuthenticationInfo(const AuthenticationInfo &other);
/**
@ -189,8 +196,13 @@ protected:
QDateTime m_dateRevoked;
QDateTime m_dateLastActivity;
QString m_userName;
private:
// Private constructor which generates an invalid object, for use withing AuthenticationInfo::fromJson();
AuthenticationInfo();
};
} // NS DTO
namespace Support {

View file

@ -49,7 +49,11 @@ namespace DTO {
class AuthenticationInfoQueryResult {
public:
AuthenticationInfoQueryResult();
AuthenticationInfoQueryResult(
qint32 totalRecordCount,
qint32 startIndex
);
AuthenticationInfoQueryResult(const AuthenticationInfoQueryResult &other);
/**
@ -96,8 +100,13 @@ protected:
QList<AuthenticationInfo> m_items;
qint32 m_totalRecordCount;
qint32 m_startIndex;
private:
// Private constructor which generates an invalid object, for use withing AuthenticationInfoQueryResult::fromJson();
AuthenticationInfoQueryResult();
};
} // NS DTO
namespace Support {

View file

@ -50,7 +50,11 @@ namespace DTO {
class AuthenticationResult {
public:
AuthenticationResult();
AuthenticationResult(
QSharedPointer<UserDto> user,
QSharedPointer<SessionInfo> sessionInfo
);
AuthenticationResult(const AuthenticationResult &other);
/**
@ -93,8 +97,13 @@ protected:
QSharedPointer<SessionInfo> m_sessionInfo = QSharedPointer<SessionInfo>();
QString m_accessToken;
QString m_serverId;
private:
// Private constructor which generates an invalid object, for use withing AuthenticationResult::fromJson();
AuthenticationResult();
};
} // NS DTO
namespace Support {

View file

@ -51,7 +51,15 @@ namespace DTO {
class BaseItem {
public:
BaseItem();
BaseItem(
QDateTime dateLastSaved,
bool isHD,
bool isShortcut,
qint32 width,
qint32 height,
bool supportsExternalTransfer
);
BaseItem(const BaseItem &other);
/**
@ -146,8 +154,13 @@ protected:
qint32 m_height;
QStringList m_extraIds;
bool m_supportsExternalTransfer;
private:
// Private constructor which generates an invalid object, for use withing BaseItem::fromJson();
BaseItem();
};
} // NS DTO
namespace Support {

View file

@ -69,7 +69,20 @@ namespace DTO {
class BaseItemDto {
public:
BaseItemDto();
BaseItemDto(
QString jellyfinId,
Video3DFormat video3DFormat,
PlayAccess playAccess,
QSharedPointer<UserItemDataDto> userData,
VideoType videoType,
LocationType locationType,
IsoType isoType,
ImageOrientation imageOrientation,
ChannelType channelType,
ProgramAudio audio,
QSharedPointer<BaseItemDto> currentProgram
);
BaseItemDto(const BaseItemDto &other);
/**
@ -1700,8 +1713,13 @@ protected:
std::optional<bool> m_isPremiere = std::nullopt;
QString m_timerId;
QSharedPointer<BaseItemDto> m_currentProgram = QSharedPointer<BaseItemDto>();
private:
// Private constructor which generates an invalid object, for use withing BaseItemDto::fromJson();
BaseItemDto();
};
} // NS DTO
namespace Support {

View file

@ -49,7 +49,11 @@ namespace DTO {
class BaseItemDtoQueryResult {
public:
BaseItemDtoQueryResult();
BaseItemDtoQueryResult(
qint32 totalRecordCount,
qint32 startIndex
);
BaseItemDtoQueryResult(const BaseItemDtoQueryResult &other);
/**
@ -96,8 +100,13 @@ protected:
QList<BaseItemDto> m_items;
qint32 m_totalRecordCount;
qint32 m_startIndex;
private:
// Private constructor which generates an invalid object, for use withing BaseItemDtoQueryResult::fromJson();
BaseItemDtoQueryResult();
};
} // NS DTO
namespace Support {

View file

@ -46,8 +46,7 @@ namespace DTO {
class BaseItemPerson {
public:
BaseItemPerson();
public: BaseItemPerson();
BaseItemPerson(const BaseItemPerson &other);
/**
@ -134,8 +133,11 @@ protected:
QString m_type;
QString m_primaryImageTag;
QJsonObject m_imageBlurHashes;
};
} // NS DTO
namespace Support {

View file

@ -48,7 +48,10 @@ namespace DTO {
class BookInfo {
public:
BookInfo();
BookInfo(
bool isAutomated
);
BookInfo(const BookInfo &other);
/**
@ -173,8 +176,13 @@ protected:
QDateTime m_premiereDate;
bool m_isAutomated;
QString m_seriesName;
private:
// Private constructor which generates an invalid object, for use withing BookInfo::fromJson();
BookInfo();
};
} // NS DTO
namespace Support {

View file

@ -49,7 +49,12 @@ namespace DTO {
class BookInfoRemoteSearchQuery {
public:
BookInfoRemoteSearchQuery();
BookInfoRemoteSearchQuery(
QSharedPointer<BookInfo> searchInfo,
QString itemId,
bool includeDisabledProviders
);
BookInfoRemoteSearchQuery(const BookInfoRemoteSearchQuery &other);
/**
@ -98,8 +103,13 @@ protected:
QString m_itemId;
QString m_searchProviderName;
bool m_includeDisabledProviders;
private:
// Private constructor which generates an invalid object, for use withing BookInfoRemoteSearchQuery::fromJson();
BookInfoRemoteSearchQuery();
};
} // NS DTO
namespace Support {

View file

@ -48,7 +48,10 @@ namespace DTO {
class BoxSetInfo {
public:
BoxSetInfo();
BoxSetInfo(
bool isAutomated
);
BoxSetInfo(const BoxSetInfo &other);
/**
@ -165,8 +168,13 @@ protected:
std::optional<qint32> m_parentIndexNumber = std::nullopt;
QDateTime m_premiereDate;
bool m_isAutomated;
private:
// Private constructor which generates an invalid object, for use withing BoxSetInfo::fromJson();
BoxSetInfo();
};
} // NS DTO
namespace Support {

View file

@ -49,7 +49,12 @@ namespace DTO {
class BoxSetInfoRemoteSearchQuery {
public:
BoxSetInfoRemoteSearchQuery();
BoxSetInfoRemoteSearchQuery(
QSharedPointer<BoxSetInfo> searchInfo,
QString itemId,
bool includeDisabledProviders
);
BoxSetInfoRemoteSearchQuery(const BoxSetInfoRemoteSearchQuery &other);
/**
@ -98,8 +103,13 @@ protected:
QString m_itemId;
QString m_searchProviderName;
bool m_includeDisabledProviders;
private:
// Private constructor which generates an invalid object, for use withing BoxSetInfoRemoteSearchQuery::fromJson();
BoxSetInfoRemoteSearchQuery();
};
} // NS DTO
namespace Support {

View file

@ -46,8 +46,7 @@ namespace DTO {
class BrandingOptions {
public:
BrandingOptions();
public: BrandingOptions();
BrandingOptions(const BrandingOptions &other);
/**
@ -86,8 +85,11 @@ public:
protected:
QString m_loginDisclaimer;
QString m_customCss;
};
} // NS DTO
namespace Support {

View file

@ -48,7 +48,13 @@ namespace DTO {
class BufferRequestDto {
public:
BufferRequestDto();
BufferRequestDto(
QDateTime when,
qint64 positionTicks,
bool isPlaying,
QString playlistItemId
);
BufferRequestDto(const BufferRequestDto &other);
/**
@ -103,8 +109,13 @@ protected:
qint64 m_positionTicks;
bool m_isPlaying;
QString m_playlistItemId;
private:
// Private constructor which generates an invalid object, for use withing BufferRequestDto::fromJson();
BufferRequestDto();
};
} // NS DTO
namespace Support {

View file

@ -52,7 +52,14 @@ namespace DTO {
class ChannelFeatures {
public:
ChannelFeatures();
ChannelFeatures(
bool canSearch,
bool supportsSortOrderToggle,
bool supportsLatestMedia,
bool canFilter,
bool supportsContentDownloading
);
ChannelFeatures(const ChannelFeatures &other);
/**
@ -201,8 +208,13 @@ protected:
bool m_supportsLatestMedia;
bool m_canFilter;
bool m_supportsContentDownloading;
private:
// Private constructor which generates an invalid object, for use withing ChannelFeatures::fromJson();
ChannelFeatures();
};
} // NS DTO
namespace Support {

View file

@ -51,8 +51,7 @@ namespace DTO {
class ChannelMappingOptionsDto {
public:
ChannelMappingOptionsDto();
public: ChannelMappingOptionsDto();
ChannelMappingOptionsDto(const ChannelMappingOptionsDto &other);
/**
@ -115,8 +114,11 @@ protected:
QList<NameIdPair> m_providerChannels;
QList<NameValuePair> m_mappings;
QString m_providerName;
};
} // NS DTO
namespace Support {

View file

@ -48,7 +48,11 @@ namespace DTO {
class ChapterInfo {
public:
ChapterInfo();
ChapterInfo(
qint64 startPositionTicks,
QDateTime imageDateModified
);
ChapterInfo(const ChapterInfo &other);
/**
@ -111,8 +115,13 @@ protected:
QString m_imagePath;
QDateTime m_imageDateModified;
QString m_imageTag;
private:
// Private constructor which generates an invalid object, for use withing ChapterInfo::fromJson();
ChapterInfo();
};
} // NS DTO
namespace Support {

View file

@ -52,7 +52,14 @@ namespace DTO {
class ClientCapabilities {
public:
ClientCapabilities();
ClientCapabilities(
bool supportsMediaControl,
bool supportsContentUploading,
bool supportsPersistentIdentifier,
bool supportsSync,
QSharedPointer<DeviceProfile> deviceProfile
);
ClientCapabilities(const ClientCapabilities &other);
/**
@ -137,8 +144,13 @@ protected:
QSharedPointer<DeviceProfile> m_deviceProfile = QSharedPointer<DeviceProfile>();
QString m_appStoreUrl;
QString m_iconUrl;
private:
// Private constructor which generates an invalid object, for use withing ClientCapabilities::fromJson();
ClientCapabilities();
};
} // NS DTO
namespace Support {

View file

@ -52,7 +52,14 @@ namespace DTO {
class ClientCapabilitiesDto {
public:
ClientCapabilitiesDto();
ClientCapabilitiesDto(
bool supportsMediaControl,
bool supportsContentUploading,
bool supportsPersistentIdentifier,
bool supportsSync,
QSharedPointer<DeviceProfile> deviceProfile
);
ClientCapabilitiesDto(const ClientCapabilitiesDto &other);
/**
@ -173,8 +180,13 @@ protected:
QSharedPointer<DeviceProfile> m_deviceProfile = QSharedPointer<DeviceProfile>();
QString m_appStoreUrl;
QString m_iconUrl;
private:
// Private constructor which generates an invalid object, for use withing ClientCapabilitiesDto::fromJson();
ClientCapabilitiesDto();
};
} // NS DTO
namespace Support {

View file

@ -51,7 +51,10 @@ namespace DTO {
class CodecProfile {
public:
CodecProfile();
CodecProfile(
CodecType type
);
CodecProfile(const CodecProfile &other);
/**
@ -104,8 +107,13 @@ protected:
QList<ProfileCondition> m_applyConditions;
QString m_codec;
QString m_container;
private:
// Private constructor which generates an invalid object, for use withing CodecProfile::fromJson();
CodecProfile();
};
} // NS DTO
namespace Support {

View file

@ -47,7 +47,10 @@ namespace DTO {
class CollectionCreationResult {
public:
CollectionCreationResult();
CollectionCreationResult(
QString jellyfinId
);
CollectionCreationResult(const CollectionCreationResult &other);
/**
@ -68,8 +71,13 @@ public:
protected:
QString m_jellyfinId;
private:
// Private constructor which generates an invalid object, for use withing CollectionCreationResult::fromJson();
CollectionCreationResult();
};
} // NS DTO
namespace Support {

View file

@ -48,7 +48,11 @@ namespace DTO {
class ConfigurationPageInfo {
public:
ConfigurationPageInfo();
ConfigurationPageInfo(
bool enableInMainMenu,
ConfigurationPageType configurationPageType
);
ConfigurationPageInfo(const ConfigurationPageInfo &other);
/**
@ -139,8 +143,13 @@ protected:
QString m_displayName;
ConfigurationPageType m_configurationPageType;
QString m_pluginId;
private:
// Private constructor which generates an invalid object, for use withing ConfigurationPageInfo::fromJson();
ConfigurationPageInfo();
};
} // NS DTO
namespace Support {

View file

@ -51,7 +51,10 @@ namespace DTO {
class ContainerProfile {
public:
ContainerProfile();
ContainerProfile(
DlnaProfileType type
);
ContainerProfile(const ContainerProfile &other);
/**
@ -88,8 +91,13 @@ protected:
DlnaProfileType m_type;
QList<ProfileCondition> m_conditions;
QString m_container;
private:
// Private constructor which generates an invalid object, for use withing ContainerProfile::fromJson();
ContainerProfile();
};
} // NS DTO
namespace Support {

View file

@ -47,7 +47,10 @@ namespace DTO {
class ControlResponse {
public:
ControlResponse();
ControlResponse(
bool isSuccessful
);
ControlResponse(const ControlResponse &other);
/**
@ -84,8 +87,13 @@ protected:
QJsonObject m_headers;
QString m_xml;
bool m_isSuccessful;
private:
// Private constructor which generates an invalid object, for use withing ControlResponse::fromJson();
ControlResponse();
};
} // NS DTO
namespace Support {

View file

@ -46,8 +46,7 @@ namespace DTO {
class CountryInfo {
public:
CountryInfo();
public: CountryInfo();
CountryInfo(const CountryInfo &other);
/**
@ -110,8 +109,11 @@ protected:
QString m_displayName;
QString m_twoLetterISORegionName;
QString m_threeLetterISORegionName;
};
} // NS DTO
namespace Support {

View file

@ -48,8 +48,7 @@ namespace DTO {
class CreatePlaylistDto {
public:
CreatePlaylistDto();
public: CreatePlaylistDto();
CreatePlaylistDto(const CreatePlaylistDto &other);
/**
@ -112,8 +111,11 @@ protected:
QStringList m_ids;
QString m_userId;
QString m_mediaType;
};
} // NS DTO
namespace Support {

View file

@ -46,8 +46,7 @@ namespace DTO {
class CreateUserByName {
public:
CreateUserByName();
public: CreateUserByName();
CreateUserByName(const CreateUserByName &other);
/**
@ -86,8 +85,11 @@ public:
protected:
QString m_name;
QString m_password;
};
} // NS DTO
namespace Support {

View file

@ -48,8 +48,7 @@ namespace DTO {
class CultureDto {
public:
CultureDto();
public: CultureDto();
CultureDto(const CultureDto &other);
/**
@ -120,8 +119,11 @@ protected:
QString m_twoLetterISOLanguageName;
QString m_threeLetterISOLanguageName;
QStringList m_threeLetterISOLanguageNames;
};
} // NS DTO
namespace Support {

View file

@ -46,8 +46,7 @@ namespace DTO {
class DefaultDirectoryBrowserInfoDto {
public:
DefaultDirectoryBrowserInfoDto();
public: DefaultDirectoryBrowserInfoDto();
DefaultDirectoryBrowserInfoDto(const DefaultDirectoryBrowserInfoDto &other);
/**
@ -74,8 +73,11 @@ public:
protected:
QString m_path;
};
} // NS DTO
namespace Support {

View file

@ -49,8 +49,7 @@ namespace DTO {
class DeviceIdentification {
public:
DeviceIdentification();
public: DeviceIdentification();
DeviceIdentification(const DeviceIdentification &other);
/**
@ -173,8 +172,11 @@ protected:
QString m_manufacturer;
QString m_manufacturerUrl;
QList<HttpHeaderInfo> m_headers;
};
} // NS DTO
namespace Support {

View file

@ -50,7 +50,12 @@ namespace DTO {
class DeviceInfo {
public:
DeviceInfo();
DeviceInfo(
QString lastUserId,
QDateTime dateLastActivity,
QSharedPointer<ClientCapabilities> capabilities
);
DeviceInfo(const DeviceInfo &other);
/**
@ -155,8 +160,13 @@ protected:
QDateTime m_dateLastActivity;
QSharedPointer<ClientCapabilities> m_capabilities = QSharedPointer<ClientCapabilities>();
QString m_iconUrl;
private:
// Private constructor which generates an invalid object, for use withing DeviceInfo::fromJson();
DeviceInfo();
};
} // NS DTO
namespace Support {

View file

@ -49,7 +49,11 @@ namespace DTO {
class DeviceInfoQueryResult {
public:
DeviceInfoQueryResult();
DeviceInfoQueryResult(
qint32 totalRecordCount,
qint32 startIndex
);
DeviceInfoQueryResult(const DeviceInfoQueryResult &other);
/**
@ -96,8 +100,13 @@ protected:
QList<DeviceInfo> m_items;
qint32 m_totalRecordCount;
qint32 m_startIndex;
private:
// Private constructor which generates an invalid object, for use withing DeviceInfoQueryResult::fromJson();
DeviceInfoQueryResult();
};
} // NS DTO
namespace Support {

View file

@ -46,8 +46,7 @@ namespace DTO {
class DeviceOptions {
public:
DeviceOptions();
public: DeviceOptions();
DeviceOptions(const DeviceOptions &other);
/**
@ -70,8 +69,11 @@ public:
protected:
QString m_customName;
};
} // NS DTO
namespace Support {

View file

@ -58,7 +58,20 @@ namespace DTO {
class DeviceProfile {
public:
DeviceProfile();
DeviceProfile(
QSharedPointer<DeviceIdentification> identification,
bool enableAlbumArtInDidl,
bool enableSingleAlbumArtLimit,
bool enableSingleSubtitleLimit,
qint32 maxAlbumArtWidth,
qint32 maxAlbumArtHeight,
qint32 timelineOffsetSeconds,
bool requiresPlainVideoItems,
bool requiresPlainFolders,
bool enableMSMediaReceiverRegistrar,
bool ignoreTranscodeByteRangeRequests
);
DeviceProfile(const DeviceProfile &other);
/**
@ -515,8 +528,13 @@ protected:
QList<CodecProfile> m_codecProfiles;
QList<ResponseProfile> m_responseProfiles;
QList<SubtitleProfile> m_subtitleProfiles;
private:
// Private constructor which generates an invalid object, for use withing DeviceProfile::fromJson();
DeviceProfile();
};
} // NS DTO
namespace Support {

View file

@ -48,7 +48,10 @@ namespace DTO {
class DeviceProfileInfo {
public:
DeviceProfileInfo();
DeviceProfileInfo(
DeviceProfileType type
);
DeviceProfileInfo(const DeviceProfileInfo &other);
/**
@ -93,8 +96,13 @@ protected:
QString m_jellyfinId;
QString m_name;
DeviceProfileType m_type;
private:
// Private constructor which generates an invalid object, for use withing DeviceProfileInfo::fromJson();
DeviceProfileInfo();
};
} // NS DTO
namespace Support {

View file

@ -48,7 +48,10 @@ namespace DTO {
class DirectPlayProfile {
public:
DirectPlayProfile();
DirectPlayProfile(
DlnaProfileType type
);
DirectPlayProfile(const DirectPlayProfile &other);
/**
@ -93,8 +96,13 @@ protected:
QString m_audioCodec;
QString m_videoCodec;
DlnaProfileType m_type;
private:
// Private constructor which generates an invalid object, for use withing DirectPlayProfile::fromJson();
DirectPlayProfile();
};
} // NS DTO
namespace Support {

View file

@ -49,7 +49,17 @@ namespace DTO {
class DisplayPreferencesDto {
public:
DisplayPreferencesDto();
DisplayPreferencesDto(
bool rememberIndexing,
qint32 primaryImageHeight,
qint32 primaryImageWidth,
ScrollDirection scrollDirection,
bool showBackdrop,
bool rememberSorting,
SortOrder sortOrder,
bool showSidebar
);
DisplayPreferencesDto(const DisplayPreferencesDto &other);
/**
@ -208,8 +218,13 @@ protected:
SortOrder m_sortOrder;
bool m_showSidebar;
QString m_client;
private:
// Private constructor which generates an invalid object, for use withing DisplayPreferencesDto::fromJson();
DisplayPreferencesDto();
};
} // NS DTO
namespace Support {

View file

@ -46,7 +46,11 @@ namespace DTO {
class EndPointInfo {
public:
EndPointInfo();
EndPointInfo(
bool isLocal,
bool isInNetwork
);
EndPointInfo(const EndPointInfo &other);
/**
@ -73,8 +77,13 @@ public:
protected:
bool m_isLocal;
bool m_isInNetwork;
private:
// Private constructor which generates an invalid object, for use withing EndPointInfo::fromJson();
EndPointInfo();
};
} // NS DTO
namespace Support {

View file

@ -48,7 +48,10 @@ namespace DTO {
class ExternalIdInfo {
public:
ExternalIdInfo();
ExternalIdInfo(
ExternalIdMediaType type
);
ExternalIdInfo(const ExternalIdInfo &other);
/**
@ -105,8 +108,13 @@ protected:
QString m_key;
ExternalIdMediaType m_type;
QString m_urlFormatString;
private:
// Private constructor which generates an invalid object, for use withing ExternalIdInfo::fromJson();
ExternalIdInfo();
};
} // NS DTO
namespace Support {

View file

@ -46,8 +46,7 @@ namespace DTO {
class ExternalUrl {
public:
ExternalUrl();
public: ExternalUrl();
ExternalUrl(const ExternalUrl &other);
/**
@ -86,8 +85,11 @@ public:
protected:
QString m_name;
QString m_url;
};
} // NS DTO
namespace Support {

View file

@ -48,7 +48,10 @@ namespace DTO {
class FileSystemEntryInfo {
public:
FileSystemEntryInfo();
FileSystemEntryInfo(
FileSystemEntryType type
);
FileSystemEntryInfo(const FileSystemEntryInfo &other);
/**
@ -93,8 +96,13 @@ protected:
QString m_name;
QString m_path;
FileSystemEntryType m_type;
private:
// Private constructor which generates an invalid object, for use withing FileSystemEntryInfo::fromJson();
FileSystemEntryInfo();
};
} // NS DTO
namespace Support {

View file

@ -48,7 +48,12 @@ namespace DTO {
class FontFile {
public:
FontFile();
FontFile(
qint64 size,
QDateTime dateCreated,
QDateTime dateModified
);
FontFile(const FontFile &other);
/**
@ -105,8 +110,13 @@ protected:
qint64 m_size;
QDateTime m_dateCreated;
QDateTime m_dateModified;
private:
// Private constructor which generates an invalid object, for use withing FontFile::fromJson();
FontFile();
};
} // NS DTO
namespace Support {

View file

@ -47,7 +47,10 @@ namespace DTO {
class ForgotPasswordDto {
public:
ForgotPasswordDto();
ForgotPasswordDto(
QString enteredUsername
);
ForgotPasswordDto(const ForgotPasswordDto &other);
/**
@ -72,8 +75,13 @@ public:
protected:
QString m_enteredUsername;
private:
// Private constructor which generates an invalid object, for use withing ForgotPasswordDto::fromJson();
ForgotPasswordDto();
};
} // NS DTO
namespace Support {

View file

@ -49,7 +49,10 @@ namespace DTO {
class ForgotPasswordResult {
public:
ForgotPasswordResult();
ForgotPasswordResult(
ForgotPasswordAction action
);
ForgotPasswordResult(const ForgotPasswordResult &other);
/**
@ -94,8 +97,13 @@ protected:
ForgotPasswordAction m_action;
QString m_pinFile;
QDateTime m_pinExpirationDate;
private:
// Private constructor which generates an invalid object, for use withing ForgotPasswordResult::fromJson();
ForgotPasswordResult();
};
} // NS DTO
namespace Support {

View file

@ -48,7 +48,11 @@ namespace DTO {
class GeneralCommand {
public:
GeneralCommand();
GeneralCommand(
GeneralCommandType name,
QString controllingUserId
);
GeneralCommand(const GeneralCommand &other);
/**
@ -83,8 +87,13 @@ protected:
GeneralCommandType m_name;
QString m_controllingUserId;
QJsonObject m_arguments;
private:
// Private constructor which generates an invalid object, for use withing GeneralCommand::fromJson();
GeneralCommand();
};
} // NS DTO
namespace Support {

View file

@ -52,7 +52,12 @@ namespace DTO {
class GetProgramsDto {
public:
GetProgramsDto();
GetProgramsDto(
QString userId,
bool enableTotalRecordCount,
QString librarySeriesId
);
GetProgramsDto(const GetProgramsDto &other);
/**
@ -427,8 +432,13 @@ protected:
QString m_seriesTimerId;
QString m_librarySeriesId;
QList<ItemFields> m_fields;
private:
// Private constructor which generates an invalid object, for use withing GetProgramsDto::fromJson();
GetProgramsDto();
};
} // NS DTO
namespace Support {

View file

@ -51,7 +51,12 @@ namespace DTO {
class GroupInfoDto {
public:
GroupInfoDto();
GroupInfoDto(
QString groupId,
GroupStateType state,
QDateTime lastUpdatedAt
);
GroupInfoDto(const GroupInfoDto &other);
/**
@ -116,8 +121,13 @@ protected:
GroupStateType m_state;
QStringList m_participants;
QDateTime m_lastUpdatedAt;
private:
// Private constructor which generates an invalid object, for use withing GroupInfoDto::fromJson();
GroupInfoDto();
};
} // NS DTO
namespace Support {

View file

@ -47,7 +47,11 @@ namespace DTO {
class GuideInfo {
public:
GuideInfo();
GuideInfo(
QDateTime startDate,
QDateTime endDate
);
GuideInfo(const GuideInfo &other);
/**
@ -82,8 +86,13 @@ public:
protected:
QDateTime m_startDate;
QDateTime m_endDate;
private:
// Private constructor which generates an invalid object, for use withing GuideInfo::fromJson();
GuideInfo();
};
} // NS DTO
namespace Support {

View file

@ -48,7 +48,10 @@ namespace DTO {
class HttpHeaderInfo {
public:
HttpHeaderInfo();
HttpHeaderInfo(
HeaderMatchType match
);
HttpHeaderInfo(const HttpHeaderInfo &other);
/**
@ -85,8 +88,13 @@ protected:
QString m_name;
QString m_value;
HeaderMatchType m_match;
private:
// Private constructor which generates an invalid object, for use withing HttpHeaderInfo::fromJson();
HttpHeaderInfo();
};
} // NS DTO
namespace Support {

View file

@ -46,7 +46,10 @@ namespace DTO {
class IgnoreWaitRequestDto {
public:
IgnoreWaitRequestDto();
IgnoreWaitRequestDto(
bool ignoreWait
);
IgnoreWaitRequestDto(const IgnoreWaitRequestDto &other);
/**
@ -71,8 +74,13 @@ public:
protected:
bool m_ignoreWait;
private:
// Private constructor which generates an invalid object, for use withing IgnoreWaitRequestDto::fromJson();
IgnoreWaitRequestDto();
};
} // NS DTO
namespace Support {

View file

@ -47,7 +47,10 @@ namespace DTO {
class ImageByNameInfo {
public:
ImageByNameInfo();
ImageByNameInfo(
qint64 fileLength
);
ImageByNameInfo(const ImageByNameInfo &other);
/**
@ -120,8 +123,13 @@ protected:
QString m_context;
qint64 m_fileLength;
QString m_format;
private:
// Private constructor which generates an invalid object, for use withing ImageByNameInfo::fromJson();
ImageByNameInfo();
};
} // NS DTO
namespace Support {

View file

@ -48,7 +48,11 @@ namespace DTO {
class ImageInfo {
public:
ImageInfo();
ImageInfo(
ImageType imageType,
qint64 size
);
ImageInfo(const ImageInfo &other);
/**
@ -151,8 +155,13 @@ protected:
std::optional<qint32> m_height = std::nullopt;
std::optional<qint32> m_width = std::nullopt;
qint64 m_size;
private:
// Private constructor which generates an invalid object, for use withing ImageInfo::fromJson();
ImageInfo();
};
} // NS DTO
namespace Support {

View file

@ -47,7 +47,12 @@ namespace DTO {
class ImageOption {
public:
ImageOption();
ImageOption(
ImageType type,
qint32 limit,
qint32 minWidth
);
ImageOption(const ImageOption &other);
/**
@ -88,8 +93,13 @@ protected:
ImageType m_type;
qint32 m_limit;
qint32 m_minWidth;
private:
// Private constructor which generates an invalid object, for use withing ImageOption::fromJson();
ImageOption();
};
} // NS DTO
namespace Support {

View file

@ -49,8 +49,7 @@ namespace DTO {
class ImageProviderInfo {
public:
ImageProviderInfo();
public: ImageProviderInfo();
ImageProviderInfo(const ImageProviderInfo &other);
/**
@ -89,8 +88,11 @@ public:
protected:
QString m_name;
QList<ImageType> m_supportedImages;
};
} // NS DTO
namespace Support {

View file

@ -49,7 +49,11 @@ namespace DTO {
class InstallationInfo {
public:
InstallationInfo();
InstallationInfo(
QString guid,
QSharedPointer<Version> version
);
InstallationInfo(const InstallationInfo &other);
/**
@ -128,8 +132,13 @@ protected:
QString m_changelog;
QString m_sourceUrl;
QString m_checksum;
private:
// Private constructor which generates an invalid object, for use withing InstallationInfo::fromJson();
InstallationInfo();
};
} // NS DTO
namespace Support {

View file

@ -49,7 +49,12 @@ namespace DTO {
class IPlugin {
public:
IPlugin();
IPlugin(
QString jellyfinId,
QSharedPointer<Version> version,
bool canUninstall
);
IPlugin(const IPlugin &other);
/**
@ -138,8 +143,13 @@ protected:
QString m_assemblyFilePath;
bool m_canUninstall;
QString m_dataFolderPath;
private:
// Private constructor which generates an invalid object, for use withing IPlugin::fromJson();
IPlugin();
};
} // NS DTO
namespace Support {

View file

@ -46,7 +46,21 @@ namespace DTO {
class ItemCounts {
public:
ItemCounts();
ItemCounts(
qint32 movieCount,
qint32 seriesCount,
qint32 episodeCount,
qint32 artistCount,
qint32 programCount,
qint32 trailerCount,
qint32 songCount,
qint32 albumCount,
qint32 musicVideoCount,
qint32 boxSetCount,
qint32 bookCount,
qint32 itemCount
);
ItemCounts(const ItemCounts &other);
/**
@ -181,8 +195,13 @@ protected:
qint32 m_boxSetCount;
qint32 m_bookCount;
qint32 m_itemCount;
private:
// Private constructor which generates an invalid object, for use withing ItemCounts::fromJson();
ItemCounts();
};
} // NS DTO
namespace Support {

View file

@ -47,7 +47,10 @@ namespace DTO {
class JoinGroupRequestDto {
public:
JoinGroupRequestDto();
JoinGroupRequestDto(
QString groupId
);
JoinGroupRequestDto(const JoinGroupRequestDto &other);
/**
@ -72,8 +75,13 @@ public:
protected:
QString m_groupId;
private:
// Private constructor which generates an invalid object, for use withing JoinGroupRequestDto::fromJson();
JoinGroupRequestDto();
};
} // NS DTO
namespace Support {

View file

@ -47,7 +47,10 @@ namespace DTO {
class LibraryOptionInfoDto {
public:
LibraryOptionInfoDto();
LibraryOptionInfoDto(
bool defaultEnabled
);
LibraryOptionInfoDto(const LibraryOptionInfoDto &other);
/**
@ -84,8 +87,13 @@ public:
protected:
QString m_name;
bool m_defaultEnabled;
private:
// Private constructor which generates an invalid object, for use withing LibraryOptionInfoDto::fromJson();
LibraryOptionInfoDto();
};
} // NS DTO
namespace Support {

View file

@ -51,7 +51,23 @@ namespace DTO {
class LibraryOptions {
public:
LibraryOptions();
LibraryOptions(
bool enablePhotos,
bool enableRealtimeMonitor,
bool enableChapterImageExtraction,
bool extractChapterImagesDuringLibraryScan,
bool saveLocalMetadata,
bool enableInternetProviders,
bool enableAutomaticSeriesGrouping,
bool enableEmbeddedTitles,
bool enableEmbeddedEpisodeInfos,
qint32 automaticRefreshIntervalDays,
bool skipSubtitlesIfEmbeddedSubtitlesPresent,
bool skipSubtitlesIfAudioTrackMatches,
bool requirePerfectSubtitleMatch,
bool saveSubtitlesWithMedia
);
LibraryOptions(const LibraryOptions &other);
/**
@ -246,8 +262,13 @@ protected:
bool m_requirePerfectSubtitleMatch;
bool m_saveSubtitlesWithMedia;
QList<TypeOptions> m_typeOptions;
private:
// Private constructor which generates an invalid object, for use withing LibraryOptions::fromJson();
LibraryOptions();
};
} // NS DTO
namespace Support {

View file

@ -49,8 +49,7 @@ namespace DTO {
class LibraryOptionsResultDto {
public:
LibraryOptionsResultDto();
public: LibraryOptionsResultDto();
LibraryOptionsResultDto(const LibraryOptionsResultDto &other);
/**
@ -113,8 +112,11 @@ protected:
QList<LibraryOptionInfoDto> m_metadataReaders;
QList<LibraryOptionInfoDto> m_subtitleFetchers;
QList<LibraryTypeOptionsDto> m_typeOptions;
};
} // NS DTO
namespace Support {

View file

@ -51,8 +51,7 @@ namespace DTO {
class LibraryTypeOptionsDto {
public:
LibraryTypeOptionsDto();
public: LibraryTypeOptionsDto();
LibraryTypeOptionsDto(const LibraryTypeOptionsDto &other);
/**
@ -127,8 +126,11 @@ protected:
QList<LibraryOptionInfoDto> m_imageFetchers;
QList<ImageType> m_supportedImageTypes;
QList<ImageOption> m_defaultImageOptions;
};
} // NS DTO
namespace Support {

View file

@ -49,7 +49,10 @@ namespace DTO {
class LibraryUpdateInfo {
public:
LibraryUpdateInfo();
LibraryUpdateInfo(
bool isEmpty
);
LibraryUpdateInfo(const LibraryUpdateInfo &other);
/**
@ -138,8 +141,13 @@ protected:
QStringList m_itemsUpdated;
QStringList m_collectionFolders;
bool m_isEmpty;
private:
// Private constructor which generates an invalid object, for use withing LibraryUpdateInfo::fromJson();
LibraryUpdateInfo();
};
} // NS DTO
namespace Support {

View file

@ -50,7 +50,10 @@ namespace DTO {
class ListingsProviderInfo {
public:
ListingsProviderInfo();
ListingsProviderInfo(
bool enableAllTuners
);
ListingsProviderInfo(const ListingsProviderInfo &other);
/**
@ -207,8 +210,13 @@ protected:
QString m_moviePrefix;
QString m_preferredLanguage;
QString m_userAgent;
private:
// Private constructor which generates an invalid object, for use withing ListingsProviderInfo::fromJson();
ListingsProviderInfo();
};
} // NS DTO
namespace Support {

View file

@ -48,7 +48,10 @@ namespace DTO {
class LiveStreamResponse {
public:
LiveStreamResponse();
LiveStreamResponse(
QSharedPointer<MediaSourceInfo> mediaSource
);
LiveStreamResponse(const LiveStreamResponse &other);
/**
@ -69,8 +72,13 @@ public:
protected:
QSharedPointer<MediaSourceInfo> m_mediaSource = QSharedPointer<MediaSourceInfo>();
private:
// Private constructor which generates an invalid object, for use withing LiveStreamResponse::fromJson();
LiveStreamResponse();
};
} // NS DTO
namespace Support {

View file

@ -49,7 +49,10 @@ namespace DTO {
class LiveTvInfo {
public:
LiveTvInfo();
LiveTvInfo(
bool isEnabled
);
LiveTvInfo(const LiveTvInfo &other);
/**
@ -98,8 +101,13 @@ protected:
QList<LiveTvServiceInfo> m_services;
bool m_isEnabled;
QStringList m_enabledUsers;
private:
// Private constructor which generates an invalid object, for use withing LiveTvInfo::fromJson();
LiveTvInfo();
};
} // NS DTO
namespace Support {

View file

@ -50,7 +50,12 @@ namespace DTO {
class LiveTvServiceInfo {
public:
LiveTvServiceInfo();
LiveTvServiceInfo(
LiveTvServiceStatus status,
bool hasUpdateAvailable,
bool isVisible
);
LiveTvServiceInfo(const LiveTvServiceInfo &other);
/**
@ -147,8 +152,13 @@ protected:
bool m_hasUpdateAvailable;
bool m_isVisible;
QStringList m_tuners;
private:
// Private constructor which generates an invalid object, for use withing LiveTvServiceInfo::fromJson();
LiveTvServiceInfo();
};
} // NS DTO
namespace Support {

View file

@ -46,8 +46,7 @@ namespace DTO {
class LocalizationOption {
public:
LocalizationOption();
public: LocalizationOption();
LocalizationOption(const LocalizationOption &other);
/**
@ -78,8 +77,11 @@ public:
protected:
QString m_name;
QString m_value;
};
} // NS DTO
namespace Support {

View file

@ -48,7 +48,12 @@ namespace DTO {
class LogFile {
public:
LogFile();
LogFile(
QDateTime dateCreated,
QDateTime dateModified,
qint64 size
);
LogFile(const LogFile &other);
/**
@ -105,8 +110,13 @@ protected:
QDateTime m_dateModified;
qint64 m_size;
QString m_name;
private:
// Private constructor which generates an invalid object, for use withing LogFile::fromJson();
LogFile();
};
} // NS DTO
namespace Support {

View file

@ -47,7 +47,10 @@ namespace DTO {
class MediaAttachment {
public:
MediaAttachment();
MediaAttachment(
qint32 index
);
MediaAttachment(const MediaAttachment &other);
/**
@ -144,8 +147,13 @@ protected:
QString m_fileName;
QString m_mimeType;
QString m_deliveryUrl;
private:
// Private constructor which generates an invalid object, for use withing MediaAttachment::fromJson();
MediaAttachment();
};
} // NS DTO
namespace Support {

View file

@ -46,8 +46,7 @@ namespace DTO {
class MediaEncoderPathDto {
public:
MediaEncoderPathDto();
public: MediaEncoderPathDto();
MediaEncoderPathDto(const MediaEncoderPathDto &other);
/**
@ -86,8 +85,11 @@ public:
protected:
QString m_path;
QString m_pathType;
};
} // NS DTO
namespace Support {

View file

@ -49,7 +49,11 @@ namespace DTO {
class MediaPathDto {
public:
MediaPathDto();
MediaPathDto(
QString name,
QSharedPointer<MediaPathInfo> pathInfo
);
MediaPathDto(const MediaPathDto &other);
/**
@ -92,8 +96,13 @@ protected:
QString m_name;
QString m_path;
QSharedPointer<MediaPathInfo> m_pathInfo = QSharedPointer<MediaPathInfo>();
private:
// Private constructor which generates an invalid object, for use withing MediaPathDto::fromJson();
MediaPathDto();
};
} // NS DTO
namespace Support {

View file

@ -46,8 +46,7 @@ namespace DTO {
class MediaPathInfo {
public:
MediaPathInfo();
public: MediaPathInfo();
MediaPathInfo(const MediaPathInfo &other);
/**
@ -78,8 +77,11 @@ public:
protected:
QString m_path;
QString m_networkPath;
};
} // NS DTO
namespace Support {

View file

@ -57,7 +57,29 @@ namespace DTO {
class MediaSourceInfo {
public:
MediaSourceInfo();
MediaSourceInfo(
MediaProtocol protocol,
MediaProtocol encoderProtocol,
MediaSourceType type,
bool isRemote,
bool readAtNativeFramerate,
bool ignoreDts,
bool ignoreIndex,
bool genPtsInput,
bool supportsTranscoding,
bool supportsDirectStream,
bool supportsDirectPlay,
bool isInfiniteStream,
bool requiresOpening,
bool requiresClosing,
bool requiresLooping,
bool supportsProbing,
VideoType videoType,
IsoType isoType,
Video3DFormat video3DFormat,
TransportStreamTimestamp timestamp
);
MediaSourceInfo(const MediaSourceInfo &other);
/**
@ -372,8 +394,13 @@ protected:
std::optional<qint32> m_analyzeDurationMs = std::nullopt;
std::optional<qint32> m_defaultAudioStreamIndex = std::nullopt;
std::optional<qint32> m_defaultSubtitleStreamIndex = std::nullopt;
private:
// Private constructor which generates an invalid object, for use withing MediaSourceInfo::fromJson();
MediaSourceInfo();
};
} // NS DTO
namespace Support {

View file

@ -49,7 +49,18 @@ namespace DTO {
class MediaStream {
public:
MediaStream();
MediaStream(
bool isInterlaced,
bool isDefault,
bool isForced,
MediaStreamType type,
qint32 index,
bool isExternal,
SubtitleDeliveryMethod deliveryMethod,
bool isTextSubtitleStream,
bool supportsExternalStream
);
MediaStream(const MediaStream &other);
/**
@ -574,8 +585,13 @@ protected:
QString m_pixelFormat;
std::optional<double> m_level = std::nullopt;
std::optional<bool> m_isAnamorphic = std::nullopt;
private:
// Private constructor which generates an invalid object, for use withing MediaStream::fromJson();
MediaStream();
};
} // NS DTO
namespace Support {

View file

@ -46,8 +46,7 @@ namespace DTO {
class MediaUpdateInfoDto {
public:
MediaUpdateInfoDto();
public: MediaUpdateInfoDto();
MediaUpdateInfoDto(const MediaUpdateInfoDto &other);
/**
@ -88,8 +87,11 @@ Created, Modified, Deleted.
protected:
QString m_path;
QString m_updateType;
};
} // NS DTO
namespace Support {

View file

@ -46,8 +46,7 @@ namespace DTO {
class MediaUrl {
public:
MediaUrl();
public: MediaUrl();
MediaUrl(const MediaUrl &other);
/**
@ -78,8 +77,11 @@ public:
protected:
QString m_url;
QString m_name;
};
} // NS DTO
namespace Support {

View file

@ -53,8 +53,7 @@ namespace DTO {
class MetadataEditorInfo {
public:
MetadataEditorInfo();
public: MetadataEditorInfo();
MetadataEditorInfo(const MetadataEditorInfo &other);
/**
@ -117,8 +116,11 @@ protected:
QList<ExternalIdInfo> m_externalIdInfos;
QString m_contentType;
QList<NameValuePair> m_contentTypeOptions;
};
} // NS DTO
namespace Support {

View file

@ -48,8 +48,7 @@ namespace DTO {
class MetadataOptions {
public:
MetadataOptions();
public: MetadataOptions();
MetadataOptions(const MetadataOptions &other);
/**
@ -120,8 +119,11 @@ protected:
QStringList m_metadataFetcherOrder;
QStringList m_disabledImageFetchers;
QStringList m_imageFetcherOrder;
};
} // NS DTO
namespace Support {

View file

@ -47,7 +47,11 @@ namespace DTO {
class MovePlaylistItemRequestDto {
public:
MovePlaylistItemRequestDto();
MovePlaylistItemRequestDto(
QString playlistItemId,
qint32 newIndex
);
MovePlaylistItemRequestDto(const MovePlaylistItemRequestDto &other);
/**
@ -82,8 +86,13 @@ public:
protected:
QString m_playlistItemId;
qint32 m_newIndex;
private:
// Private constructor which generates an invalid object, for use withing MovePlaylistItemRequestDto::fromJson();
MovePlaylistItemRequestDto();
};
} // NS DTO
namespace Support {

View file

@ -48,7 +48,10 @@ namespace DTO {
class MovieInfo {
public:
MovieInfo();
MovieInfo(
bool isAutomated
);
MovieInfo(const MovieInfo &other);
/**
@ -165,8 +168,13 @@ protected:
std::optional<qint32> m_parentIndexNumber = std::nullopt;
QDateTime m_premiereDate;
bool m_isAutomated;
private:
// Private constructor which generates an invalid object, for use withing MovieInfo::fromJson();
MovieInfo();
};
} // NS DTO
namespace Support {

View file

@ -49,7 +49,12 @@ namespace DTO {
class MovieInfoRemoteSearchQuery {
public:
MovieInfoRemoteSearchQuery();
MovieInfoRemoteSearchQuery(
QSharedPointer<MovieInfo> searchInfo,
QString itemId,
bool includeDisabledProviders
);
MovieInfoRemoteSearchQuery(const MovieInfoRemoteSearchQuery &other);
/**
@ -98,8 +103,13 @@ protected:
QString m_itemId;
QString m_searchProviderName;
bool m_includeDisabledProviders;
private:
// Private constructor which generates an invalid object, for use withing MovieInfoRemoteSearchQuery::fromJson();
MovieInfoRemoteSearchQuery();
};
} // NS DTO
namespace Support {

View file

@ -50,7 +50,10 @@ namespace DTO {
class MusicVideoInfo {
public:
MusicVideoInfo();
MusicVideoInfo(
bool isAutomated
);
MusicVideoInfo(const MusicVideoInfo &other);
/**
@ -175,8 +178,13 @@ protected:
QDateTime m_premiereDate;
bool m_isAutomated;
QStringList m_artists;
private:
// Private constructor which generates an invalid object, for use withing MusicVideoInfo::fromJson();
MusicVideoInfo();
};
} // NS DTO
namespace Support {

View file

@ -49,7 +49,12 @@ namespace DTO {
class MusicVideoInfoRemoteSearchQuery {
public:
MusicVideoInfoRemoteSearchQuery();
MusicVideoInfoRemoteSearchQuery(
QSharedPointer<MusicVideoInfo> searchInfo,
QString itemId,
bool includeDisabledProviders
);
MusicVideoInfoRemoteSearchQuery(const MusicVideoInfoRemoteSearchQuery &other);
/**
@ -98,8 +103,13 @@ protected:
QString m_itemId;
QString m_searchProviderName;
bool m_includeDisabledProviders;
private:
// Private constructor which generates an invalid object, for use withing MusicVideoInfoRemoteSearchQuery::fromJson();
MusicVideoInfoRemoteSearchQuery();
};
} // NS DTO
namespace Support {

View file

@ -47,7 +47,10 @@ namespace DTO {
class NameGuidPair {
public:
NameGuidPair();
NameGuidPair(
QString jellyfinId
);
NameGuidPair(const NameGuidPair &other);
/**
@ -76,8 +79,13 @@ public:
protected:
QString m_name;
QString m_jellyfinId;
private:
// Private constructor which generates an invalid object, for use withing NameGuidPair::fromJson();
NameGuidPair();
};
} // NS DTO
namespace Support {

View file

@ -46,8 +46,7 @@ namespace DTO {
class NameIdPair {
public:
NameIdPair();
public: NameIdPair();
NameIdPair(const NameIdPair &other);
/**
@ -86,8 +85,11 @@ public:
protected:
QString m_name;
QString m_jellyfinId;
};
} // NS DTO
namespace Support {

View file

@ -46,8 +46,7 @@ namespace DTO {
class NameValuePair {
public:
NameValuePair();
public: NameValuePair();
NameValuePair(const NameValuePair &other);
/**
@ -86,8 +85,11 @@ public:
protected:
QString m_name;
QString m_value;
};
} // NS DTO
namespace Support {

View file

@ -46,8 +46,7 @@ namespace DTO {
class NewGroupRequestDto {
public:
NewGroupRequestDto();
public: NewGroupRequestDto();
NewGroupRequestDto(const NewGroupRequestDto &other);
/**
@ -74,8 +73,11 @@ public:
protected:
QString m_groupName;
};
} // NS DTO
namespace Support {

View file

@ -47,7 +47,10 @@ namespace DTO {
class NextItemRequestDto {
public:
NextItemRequestDto();
NextItemRequestDto(
QString playlistItemId
);
NextItemRequestDto(const NextItemRequestDto &other);
/**
@ -72,8 +75,13 @@ public:
protected:
QString m_playlistItemId;
private:
// Private constructor which generates an invalid object, for use withing NextItemRequestDto::fromJson();
NextItemRequestDto();
};
} // NS DTO
namespace Support {

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