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

View file

@ -1,5 +1,32 @@
{{className}}::{{className}}() {} {{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) : {{className}}::{{className}}(const {{className}} &other) :

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -69,7 +69,20 @@ namespace DTO {
class BaseItemDto { class BaseItemDto {
public: 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); BaseItemDto(const BaseItemDto &other);
/** /**
@ -1700,8 +1713,13 @@ protected:
std::optional<bool> m_isPremiere = std::nullopt; std::optional<bool> m_isPremiere = std::nullopt;
QString m_timerId; QString m_timerId;
QSharedPointer<BaseItemDto> m_currentProgram = QSharedPointer<BaseItemDto>(); QSharedPointer<BaseItemDto> m_currentProgram = QSharedPointer<BaseItemDto>();
private:
// Private constructor which generates an invalid object, for use withing BaseItemDto::fromJson();
BaseItemDto();
}; };
} // NS DTO } // NS DTO
namespace Support { namespace Support {

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -58,7 +58,20 @@ namespace DTO {
class DeviceProfile { class DeviceProfile {
public: 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); DeviceProfile(const DeviceProfile &other);
/** /**
@ -515,8 +528,13 @@ protected:
QList<CodecProfile> m_codecProfiles; QList<CodecProfile> m_codecProfiles;
QList<ResponseProfile> m_responseProfiles; QList<ResponseProfile> m_responseProfiles;
QList<SubtitleProfile> m_subtitleProfiles; QList<SubtitleProfile> m_subtitleProfiles;
private:
// Private constructor which generates an invalid object, for use withing DeviceProfile::fromJson();
DeviceProfile();
}; };
} // NS DTO } // NS DTO
namespace Support { namespace Support {

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -46,7 +46,21 @@ namespace DTO {
class ItemCounts { class ItemCounts {
public: 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); ItemCounts(const ItemCounts &other);
/** /**
@ -181,8 +195,13 @@ protected:
qint32 m_boxSetCount; qint32 m_boxSetCount;
qint32 m_bookCount; qint32 m_bookCount;
qint32 m_itemCount; qint32 m_itemCount;
private:
// Private constructor which generates an invalid object, for use withing ItemCounts::fromJson();
ItemCounts();
}; };
} // NS DTO } // NS DTO
namespace Support { namespace Support {

View file

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

View file

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

View file

@ -51,7 +51,23 @@ namespace DTO {
class LibraryOptions { class LibraryOptions {
public: 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); LibraryOptions(const LibraryOptions &other);
/** /**
@ -246,8 +262,13 @@ protected:
bool m_requirePerfectSubtitleMatch; bool m_requirePerfectSubtitleMatch;
bool m_saveSubtitlesWithMedia; bool m_saveSubtitlesWithMedia;
QList<TypeOptions> m_typeOptions; QList<TypeOptions> m_typeOptions;
private:
// Private constructor which generates an invalid object, for use withing LibraryOptions::fromJson();
LibraryOptions();
}; };
} // NS DTO } // NS DTO
namespace Support { namespace Support {

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -57,7 +57,29 @@ namespace DTO {
class MediaSourceInfo { class MediaSourceInfo {
public: 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); MediaSourceInfo(const MediaSourceInfo &other);
/** /**
@ -372,8 +394,13 @@ protected:
std::optional<qint32> m_analyzeDurationMs = std::nullopt; std::optional<qint32> m_analyzeDurationMs = std::nullopt;
std::optional<qint32> m_defaultAudioStreamIndex = std::nullopt; std::optional<qint32> m_defaultAudioStreamIndex = std::nullopt;
std::optional<qint32> m_defaultSubtitleStreamIndex = 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 } // NS DTO
namespace Support { namespace Support {

View file

@ -49,7 +49,18 @@ namespace DTO {
class MediaStream { class MediaStream {
public: 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); MediaStream(const MediaStream &other);
/** /**
@ -574,8 +585,13 @@ protected:
QString m_pixelFormat; QString m_pixelFormat;
std::optional<double> m_level = std::nullopt; std::optional<double> m_level = std::nullopt;
std::optional<bool> m_isAnamorphic = 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 } // NS DTO
namespace Support { namespace Support {

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

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