mirror of
https://github.com/HenkKalkwater/harbour-sailfin.git
synced 2025-09-04 09:42:45 +00:00
WIP: HttpLoader seems to work, Model still borked
This commit is contained in:
parent
e421adf733
commit
729e343661
1412 changed files with 13967 additions and 33794 deletions
|
@ -38,6 +38,10 @@
|
|||
#include "JellyfinQt/dto/dynamicdayofweek.h"
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -54,7 +58,7 @@ public:
|
|||
|
||||
static AccessSchedule fromJson(QJsonObject source);
|
||||
void setFromJson(QJsonObject source);
|
||||
QJsonObject toJson();
|
||||
QJsonObject toJson() const;
|
||||
|
||||
// Properties
|
||||
/**
|
||||
|
@ -107,6 +111,18 @@ protected:
|
|||
double m_endHour;
|
||||
};
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using AccessSchedule = Jellyfin::DTO::AccessSchedule;
|
||||
|
||||
template <>
|
||||
AccessSchedule fromJsonValue(const QJsonValue &source, convertType<AccessSchedule>);
|
||||
|
||||
template<>
|
||||
QJsonValue toJsonValue(const AccessSchedule &source, convertType<AccessSchedule>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
||||
|
|
|
@ -39,6 +39,10 @@
|
|||
#include "JellyfinQt/dto/loglevel.h"
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -55,7 +59,7 @@ public:
|
|||
|
||||
static ActivityLogEntry fromJson(QJsonObject source);
|
||||
void setFromJson(QJsonObject source);
|
||||
QJsonObject toJson();
|
||||
QJsonObject toJson() const;
|
||||
|
||||
// Properties
|
||||
/**
|
||||
|
@ -170,6 +174,18 @@ protected:
|
|||
LogLevel m_severity;
|
||||
};
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using ActivityLogEntry = Jellyfin::DTO::ActivityLogEntry;
|
||||
|
||||
template <>
|
||||
ActivityLogEntry fromJsonValue(const QJsonValue &source, convertType<ActivityLogEntry>);
|
||||
|
||||
template<>
|
||||
QJsonValue toJsonValue(const ActivityLogEntry &source, convertType<ActivityLogEntry>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
||||
|
|
|
@ -39,6 +39,10 @@
|
|||
#include "JellyfinQt/dto/activitylogentry.h"
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -55,7 +59,7 @@ public:
|
|||
|
||||
static ActivityLogEntryQueryResult fromJson(QJsonObject source);
|
||||
void setFromJson(QJsonObject source);
|
||||
QJsonObject toJson();
|
||||
QJsonObject toJson() const;
|
||||
|
||||
// Properties
|
||||
/**
|
||||
|
@ -94,6 +98,18 @@ protected:
|
|||
qint32 m_startIndex;
|
||||
};
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using ActivityLogEntryQueryResult = Jellyfin::DTO::ActivityLogEntryQueryResult;
|
||||
|
||||
template <>
|
||||
ActivityLogEntryQueryResult fromJsonValue(const QJsonValue &source, convertType<ActivityLogEntryQueryResult>);
|
||||
|
||||
template<>
|
||||
QJsonValue toJsonValue(const ActivityLogEntryQueryResult &source, convertType<ActivityLogEntryQueryResult>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
||||
|
|
|
@ -38,6 +38,10 @@
|
|||
#include "JellyfinQt/dto/libraryoptions.h"
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -54,7 +58,7 @@ public:
|
|||
|
||||
static AddVirtualFolderDto fromJson(QJsonObject source);
|
||||
void setFromJson(QJsonObject source);
|
||||
QJsonObject toJson();
|
||||
QJsonObject toJson() const;
|
||||
|
||||
// Properties
|
||||
|
||||
|
@ -67,6 +71,18 @@ protected:
|
|||
QSharedPointer<LibraryOptions> m_libraryOptions = nullptr;
|
||||
};
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using AddVirtualFolderDto = Jellyfin::DTO::AddVirtualFolderDto;
|
||||
|
||||
template <>
|
||||
AddVirtualFolderDto fromJsonValue(const QJsonValue &source, convertType<AddVirtualFolderDto>);
|
||||
|
||||
template<>
|
||||
QJsonValue toJsonValue(const AddVirtualFolderDto &source, convertType<AddVirtualFolderDto>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
||||
|
|
|
@ -41,6 +41,10 @@
|
|||
#include "JellyfinQt/dto/songinfo.h"
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -57,7 +61,7 @@ public:
|
|||
|
||||
static AlbumInfo fromJson(QJsonObject source);
|
||||
void setFromJson(QJsonObject source);
|
||||
QJsonObject toJson();
|
||||
QJsonObject toJson() const;
|
||||
|
||||
// Properties
|
||||
/**
|
||||
|
@ -107,11 +111,11 @@ public:
|
|||
/**
|
||||
* @brief Gets or sets the provider ids.
|
||||
*/
|
||||
std::optional<QJsonObject> providerIds() const;
|
||||
QJsonObject providerIds() const;
|
||||
/**
|
||||
* @brief Gets or sets the provider ids.
|
||||
*/
|
||||
void setProviderIds(std::optional<QJsonObject> newProviderIds);
|
||||
void setProviderIds(QJsonObject newProviderIds);
|
||||
bool providerIdsNull() const;
|
||||
void setProviderIdsNull();
|
||||
|
||||
|
@ -166,11 +170,11 @@ public:
|
|||
/**
|
||||
* @brief Gets or sets the artist provider ids.
|
||||
*/
|
||||
std::optional<QJsonObject> artistProviderIds() const;
|
||||
QJsonObject artistProviderIds() const;
|
||||
/**
|
||||
* @brief Gets or sets the artist provider ids.
|
||||
*/
|
||||
void setArtistProviderIds(std::optional<QJsonObject> newArtistProviderIds);
|
||||
void setArtistProviderIds(QJsonObject newArtistProviderIds);
|
||||
bool artistProviderIdsNull() const;
|
||||
void setArtistProviderIdsNull();
|
||||
|
||||
|
@ -187,17 +191,29 @@ protected:
|
|||
QString m_path;
|
||||
QString m_metadataLanguage;
|
||||
QString m_metadataCountryCode;
|
||||
std::optional<QJsonObject> m_providerIds = std::nullopt;
|
||||
QJsonObject m_providerIds;
|
||||
std::optional<qint32> m_year = std::nullopt;
|
||||
std::optional<qint32> m_indexNumber = std::nullopt;
|
||||
std::optional<qint32> m_parentIndexNumber = std::nullopt;
|
||||
QDateTime m_premiereDate;
|
||||
bool m_isAutomated;
|
||||
QStringList m_albumArtists;
|
||||
std::optional<QJsonObject> m_artistProviderIds = std::nullopt;
|
||||
QJsonObject m_artistProviderIds;
|
||||
QList<SongInfo> m_songInfos;
|
||||
};
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using AlbumInfo = Jellyfin::DTO::AlbumInfo;
|
||||
|
||||
template <>
|
||||
AlbumInfo fromJsonValue(const QJsonValue &source, convertType<AlbumInfo>);
|
||||
|
||||
template<>
|
||||
QJsonValue toJsonValue(const AlbumInfo &source, convertType<AlbumInfo>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
||||
|
|
|
@ -39,6 +39,10 @@
|
|||
#include "JellyfinQt/dto/albuminfo.h"
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -55,7 +59,7 @@ public:
|
|||
|
||||
static AlbumInfoRemoteSearchQuery fromJson(QJsonObject source);
|
||||
void setFromJson(QJsonObject source);
|
||||
QJsonObject toJson();
|
||||
QJsonObject toJson() const;
|
||||
|
||||
// Properties
|
||||
|
||||
|
@ -96,6 +100,18 @@ protected:
|
|||
bool m_includeDisabledProviders;
|
||||
};
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using AlbumInfoRemoteSearchQuery = Jellyfin::DTO::AlbumInfoRemoteSearchQuery;
|
||||
|
||||
template <>
|
||||
AlbumInfoRemoteSearchQuery fromJsonValue(const QJsonValue &source, convertType<AlbumInfoRemoteSearchQuery>);
|
||||
|
||||
template<>
|
||||
QJsonValue toJsonValue(const AlbumInfoRemoteSearchQuery &source, convertType<AlbumInfoRemoteSearchQuery>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
||||
|
|
|
@ -38,6 +38,10 @@
|
|||
#include "JellyfinQt/dto/thememediaresult.h"
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -54,7 +58,7 @@ public:
|
|||
|
||||
static AllThemeMediaResult fromJson(QJsonObject source);
|
||||
void setFromJson(QJsonObject source);
|
||||
QJsonObject toJson();
|
||||
QJsonObject toJson() const;
|
||||
|
||||
// Properties
|
||||
|
||||
|
@ -79,6 +83,18 @@ protected:
|
|||
QSharedPointer<ThemeMediaResult> m_soundtrackSongsResult = nullptr;
|
||||
};
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using AllThemeMediaResult = Jellyfin::DTO::AllThemeMediaResult;
|
||||
|
||||
template <>
|
||||
AllThemeMediaResult fromJsonValue(const QJsonValue &source, convertType<AllThemeMediaResult>);
|
||||
|
||||
template<>
|
||||
QJsonValue toJsonValue(const AllThemeMediaResult &source, convertType<AllThemeMediaResult>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
||||
|
|
|
@ -36,6 +36,10 @@
|
|||
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -55,7 +59,19 @@ private:
|
|||
explicit ArchitectureClass();
|
||||
};
|
||||
|
||||
typedef ArchitectureClass::Value Architecture;
|
||||
using Architecture = ArchitectureClass::Value;
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using Architecture = Jellyfin::DTO::Architecture;
|
||||
|
||||
template <>
|
||||
Architecture fromJsonValue(const QJsonValue &source, convertType<Architecture>);
|
||||
|
||||
template <>
|
||||
QJsonValue toJsonValue(const Architecture &source, convertType<Architecture>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
|
|
@ -41,6 +41,10 @@
|
|||
#include "JellyfinQt/dto/songinfo.h"
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -57,7 +61,7 @@ public:
|
|||
|
||||
static ArtistInfo fromJson(QJsonObject source);
|
||||
void setFromJson(QJsonObject source);
|
||||
QJsonObject toJson();
|
||||
QJsonObject toJson() const;
|
||||
|
||||
// Properties
|
||||
/**
|
||||
|
@ -107,11 +111,11 @@ public:
|
|||
/**
|
||||
* @brief Gets or sets the provider ids.
|
||||
*/
|
||||
std::optional<QJsonObject> providerIds() const;
|
||||
QJsonObject providerIds() const;
|
||||
/**
|
||||
* @brief Gets or sets the provider ids.
|
||||
*/
|
||||
void setProviderIds(std::optional<QJsonObject> newProviderIds);
|
||||
void setProviderIds(QJsonObject newProviderIds);
|
||||
bool providerIdsNull() const;
|
||||
void setProviderIdsNull();
|
||||
|
||||
|
@ -165,7 +169,7 @@ protected:
|
|||
QString m_path;
|
||||
QString m_metadataLanguage;
|
||||
QString m_metadataCountryCode;
|
||||
std::optional<QJsonObject> m_providerIds = std::nullopt;
|
||||
QJsonObject m_providerIds;
|
||||
std::optional<qint32> m_year = std::nullopt;
|
||||
std::optional<qint32> m_indexNumber = std::nullopt;
|
||||
std::optional<qint32> m_parentIndexNumber = std::nullopt;
|
||||
|
@ -174,6 +178,18 @@ protected:
|
|||
QList<SongInfo> m_songInfos;
|
||||
};
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using ArtistInfo = Jellyfin::DTO::ArtistInfo;
|
||||
|
||||
template <>
|
||||
ArtistInfo fromJsonValue(const QJsonValue &source, convertType<ArtistInfo>);
|
||||
|
||||
template<>
|
||||
QJsonValue toJsonValue(const ArtistInfo &source, convertType<ArtistInfo>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
||||
|
|
|
@ -39,6 +39,10 @@
|
|||
#include "JellyfinQt/dto/artistinfo.h"
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -55,7 +59,7 @@ public:
|
|||
|
||||
static ArtistInfoRemoteSearchQuery fromJson(QJsonObject source);
|
||||
void setFromJson(QJsonObject source);
|
||||
QJsonObject toJson();
|
||||
QJsonObject toJson() const;
|
||||
|
||||
// Properties
|
||||
|
||||
|
@ -96,6 +100,18 @@ protected:
|
|||
bool m_includeDisabledProviders;
|
||||
};
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using ArtistInfoRemoteSearchQuery = Jellyfin::DTO::ArtistInfoRemoteSearchQuery;
|
||||
|
||||
template <>
|
||||
ArtistInfoRemoteSearchQuery fromJsonValue(const QJsonValue &source, convertType<ArtistInfoRemoteSearchQuery>);
|
||||
|
||||
template<>
|
||||
QJsonValue toJsonValue(const ArtistInfoRemoteSearchQuery &source, convertType<ArtistInfoRemoteSearchQuery>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
||||
|
|
|
@ -37,6 +37,10 @@
|
|||
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -53,7 +57,7 @@ public:
|
|||
|
||||
static AuthenticateUserByName fromJson(QJsonObject source);
|
||||
void setFromJson(QJsonObject source);
|
||||
QJsonObject toJson();
|
||||
QJsonObject toJson() const;
|
||||
|
||||
// Properties
|
||||
/**
|
||||
|
@ -96,6 +100,18 @@ protected:
|
|||
QString m_password;
|
||||
};
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using AuthenticateUserByName = Jellyfin::DTO::AuthenticateUserByName;
|
||||
|
||||
template <>
|
||||
AuthenticateUserByName fromJsonValue(const QJsonValue &source, convertType<AuthenticateUserByName>);
|
||||
|
||||
template<>
|
||||
QJsonValue toJsonValue(const AuthenticateUserByName &source, convertType<AuthenticateUserByName>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
||||
|
|
|
@ -38,6 +38,10 @@
|
|||
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -54,7 +58,7 @@ public:
|
|||
|
||||
static AuthenticationInfo fromJson(QJsonObject source);
|
||||
void setFromJson(QJsonObject source);
|
||||
QJsonObject toJson();
|
||||
QJsonObject toJson() const;
|
||||
|
||||
// Properties
|
||||
/**
|
||||
|
@ -187,6 +191,18 @@ protected:
|
|||
QString m_userName;
|
||||
};
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using AuthenticationInfo = Jellyfin::DTO::AuthenticationInfo;
|
||||
|
||||
template <>
|
||||
AuthenticationInfo fromJsonValue(const QJsonValue &source, convertType<AuthenticationInfo>);
|
||||
|
||||
template<>
|
||||
QJsonValue toJsonValue(const AuthenticationInfo &source, convertType<AuthenticationInfo>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
||||
|
|
|
@ -39,6 +39,10 @@
|
|||
#include "JellyfinQt/dto/authenticationinfo.h"
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -55,7 +59,7 @@ public:
|
|||
|
||||
static AuthenticationInfoQueryResult fromJson(QJsonObject source);
|
||||
void setFromJson(QJsonObject source);
|
||||
QJsonObject toJson();
|
||||
QJsonObject toJson() const;
|
||||
|
||||
// Properties
|
||||
/**
|
||||
|
@ -94,6 +98,18 @@ protected:
|
|||
qint32 m_startIndex;
|
||||
};
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using AuthenticationInfoQueryResult = Jellyfin::DTO::AuthenticationInfoQueryResult;
|
||||
|
||||
template <>
|
||||
AuthenticationInfoQueryResult fromJsonValue(const QJsonValue &source, convertType<AuthenticationInfoQueryResult>);
|
||||
|
||||
template<>
|
||||
QJsonValue toJsonValue(const AuthenticationInfoQueryResult &source, convertType<AuthenticationInfoQueryResult>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
||||
|
|
|
@ -40,6 +40,10 @@
|
|||
#include "JellyfinQt/dto/userdto.h"
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -56,7 +60,7 @@ public:
|
|||
|
||||
static AuthenticationResult fromJson(QJsonObject source);
|
||||
void setFromJson(QJsonObject source);
|
||||
QJsonObject toJson();
|
||||
QJsonObject toJson() const;
|
||||
|
||||
// Properties
|
||||
|
||||
|
@ -91,6 +95,18 @@ protected:
|
|||
QString m_serverId;
|
||||
};
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using AuthenticationResult = Jellyfin::DTO::AuthenticationResult;
|
||||
|
||||
template <>
|
||||
AuthenticationResult fromJsonValue(const QJsonValue &source, convertType<AuthenticationResult>);
|
||||
|
||||
template<>
|
||||
QJsonValue toJsonValue(const AuthenticationResult &source, convertType<AuthenticationResult>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
||||
|
|
|
@ -41,6 +41,10 @@
|
|||
#include "JellyfinQt/dto/mediaurl.h"
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -57,7 +61,7 @@ public:
|
|||
|
||||
static BaseItem fromJson(QJsonObject source);
|
||||
void setFromJson(QJsonObject source);
|
||||
QJsonObject toJson();
|
||||
QJsonObject toJson() const;
|
||||
|
||||
// Properties
|
||||
|
||||
|
@ -144,6 +148,18 @@ protected:
|
|||
bool m_supportsExternalTransfer;
|
||||
};
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using BaseItem = Jellyfin::DTO::BaseItem;
|
||||
|
||||
template <>
|
||||
BaseItem fromJsonValue(const QJsonValue &source, convertType<BaseItem>);
|
||||
|
||||
template<>
|
||||
QJsonValue toJsonValue(const BaseItem &source, convertType<BaseItem>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
||||
|
|
|
@ -59,6 +59,10 @@
|
|||
#include "JellyfinQt/dto/videotype.h"
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -75,7 +79,7 @@ public:
|
|||
|
||||
static BaseItemDto fromJson(QJsonObject source);
|
||||
void setFromJson(QJsonObject source);
|
||||
QJsonObject toJson();
|
||||
QJsonObject toJson() const;
|
||||
|
||||
// Properties
|
||||
/**
|
||||
|
@ -549,11 +553,11 @@ public:
|
|||
/**
|
||||
* @brief Gets or sets the provider ids.
|
||||
*/
|
||||
std::optional<QJsonObject> providerIds() const;
|
||||
QJsonObject providerIds() const;
|
||||
/**
|
||||
* @brief Gets or sets the provider ids.
|
||||
*/
|
||||
void setProviderIds(std::optional<QJsonObject> newProviderIds);
|
||||
void setProviderIds(QJsonObject newProviderIds);
|
||||
bool providerIdsNull() const;
|
||||
void setProviderIdsNull();
|
||||
|
||||
|
@ -969,11 +973,11 @@ public:
|
|||
/**
|
||||
* @brief Gets or sets the image tags.
|
||||
*/
|
||||
std::optional<QJsonObject> imageTags() const;
|
||||
QJsonObject imageTags() const;
|
||||
/**
|
||||
* @brief Gets or sets the image tags.
|
||||
*/
|
||||
void setImageTags(std::optional<QJsonObject> newImageTags);
|
||||
void setImageTags(QJsonObject newImageTags);
|
||||
bool imageTagsNull() const;
|
||||
void setImageTagsNull();
|
||||
|
||||
|
@ -1047,12 +1051,12 @@ public:
|
|||
* @brief Gets or sets the blurhashes for the image tags.
|
||||
Maps image type to dictionary mapping image tag to blurhash value.
|
||||
*/
|
||||
std::optional<QJsonObject> imageBlurHashes() const;
|
||||
QJsonObject imageBlurHashes() const;
|
||||
/**
|
||||
* @brief Gets or sets the blurhashes for the image tags.
|
||||
Maps image type to dictionary mapping image tag to blurhash value.
|
||||
*/
|
||||
void setImageBlurHashes(std::optional<QJsonObject> newImageBlurHashes);
|
||||
void setImageBlurHashes(QJsonObject newImageBlurHashes);
|
||||
bool imageBlurHashesNull() const;
|
||||
void setImageBlurHashesNull();
|
||||
|
||||
|
@ -1595,7 +1599,7 @@ protected:
|
|||
std::optional<qint32> m_indexNumberEnd = std::nullopt;
|
||||
std::optional<qint32> m_parentIndexNumber = std::nullopt;
|
||||
QList<MediaUrl> m_remoteTrailers;
|
||||
std::optional<QJsonObject> m_providerIds = std::nullopt;
|
||||
QJsonObject m_providerIds;
|
||||
std::optional<bool> m_isHD = std::nullopt;
|
||||
std::optional<bool> m_isFolder = std::nullopt;
|
||||
QString m_parentId;
|
||||
|
@ -1635,14 +1639,14 @@ protected:
|
|||
VideoType m_videoType;
|
||||
std::optional<qint32> m_partCount = std::nullopt;
|
||||
std::optional<qint32> m_mediaSourceCount = std::nullopt;
|
||||
std::optional<QJsonObject> m_imageTags = std::nullopt;
|
||||
QJsonObject m_imageTags;
|
||||
QStringList m_backdropImageTags;
|
||||
QStringList m_screenshotImageTags;
|
||||
QString m_parentLogoImageTag;
|
||||
QString m_parentArtItemId;
|
||||
QString m_parentArtImageTag;
|
||||
QString m_seriesThumbImageTag;
|
||||
std::optional<QJsonObject> m_imageBlurHashes = std::nullopt;
|
||||
QJsonObject m_imageBlurHashes;
|
||||
QString m_seriesStudio;
|
||||
QString m_parentThumbItemId;
|
||||
QString m_parentThumbImageTag;
|
||||
|
@ -1698,6 +1702,18 @@ protected:
|
|||
QSharedPointer<BaseItemDto> m_currentProgram = nullptr;
|
||||
};
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using BaseItemDto = Jellyfin::DTO::BaseItemDto;
|
||||
|
||||
template <>
|
||||
BaseItemDto fromJsonValue(const QJsonValue &source, convertType<BaseItemDto>);
|
||||
|
||||
template<>
|
||||
QJsonValue toJsonValue(const BaseItemDto &source, convertType<BaseItemDto>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
||||
|
|
|
@ -39,6 +39,10 @@
|
|||
#include "JellyfinQt/dto/baseitemdto.h"
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -55,7 +59,7 @@ public:
|
|||
|
||||
static BaseItemDtoQueryResult fromJson(QJsonObject source);
|
||||
void setFromJson(QJsonObject source);
|
||||
QJsonObject toJson();
|
||||
QJsonObject toJson() const;
|
||||
|
||||
// Properties
|
||||
/**
|
||||
|
@ -94,6 +98,18 @@ protected:
|
|||
qint32 m_startIndex;
|
||||
};
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using BaseItemDtoQueryResult = Jellyfin::DTO::BaseItemDtoQueryResult;
|
||||
|
||||
template <>
|
||||
BaseItemDtoQueryResult fromJsonValue(const QJsonValue &source, convertType<BaseItemDtoQueryResult>);
|
||||
|
||||
template<>
|
||||
QJsonValue toJsonValue(const BaseItemDtoQueryResult &source, convertType<BaseItemDtoQueryResult>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
||||
|
|
|
@ -37,6 +37,10 @@
|
|||
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -53,7 +57,7 @@ public:
|
|||
|
||||
static BaseItemPerson fromJson(QJsonObject source);
|
||||
void setFromJson(QJsonObject source);
|
||||
QJsonObject toJson();
|
||||
QJsonObject toJson() const;
|
||||
|
||||
// Properties
|
||||
/**
|
||||
|
@ -114,11 +118,11 @@ public:
|
|||
/**
|
||||
* @brief Gets or sets the primary image blurhash.
|
||||
*/
|
||||
std::optional<QJsonObject> imageBlurHashes() const;
|
||||
QJsonObject imageBlurHashes() const;
|
||||
/**
|
||||
* @brief Gets or sets the primary image blurhash.
|
||||
*/
|
||||
void setImageBlurHashes(std::optional<QJsonObject> newImageBlurHashes);
|
||||
void setImageBlurHashes(QJsonObject newImageBlurHashes);
|
||||
bool imageBlurHashesNull() const;
|
||||
void setImageBlurHashesNull();
|
||||
|
||||
|
@ -129,9 +133,21 @@ protected:
|
|||
QString m_role;
|
||||
QString m_type;
|
||||
QString m_primaryImageTag;
|
||||
std::optional<QJsonObject> m_imageBlurHashes = std::nullopt;
|
||||
QJsonObject m_imageBlurHashes;
|
||||
};
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using BaseItemPerson = Jellyfin::DTO::BaseItemPerson;
|
||||
|
||||
template <>
|
||||
BaseItemPerson fromJsonValue(const QJsonValue &source, convertType<BaseItemPerson>);
|
||||
|
||||
template<>
|
||||
QJsonValue toJsonValue(const BaseItemPerson &source, convertType<BaseItemPerson>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
||||
|
|
|
@ -32,6 +32,10 @@
|
|||
|
||||
#include <QJsonObject>
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
|
|
@ -38,6 +38,10 @@
|
|||
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -54,7 +58,7 @@ public:
|
|||
|
||||
static BookInfo fromJson(QJsonObject source);
|
||||
void setFromJson(QJsonObject source);
|
||||
QJsonObject toJson();
|
||||
QJsonObject toJson() const;
|
||||
|
||||
// Properties
|
||||
/**
|
||||
|
@ -104,11 +108,11 @@ public:
|
|||
/**
|
||||
* @brief Gets or sets the provider ids.
|
||||
*/
|
||||
std::optional<QJsonObject> providerIds() const;
|
||||
QJsonObject providerIds() const;
|
||||
/**
|
||||
* @brief Gets or sets the provider ids.
|
||||
*/
|
||||
void setProviderIds(std::optional<QJsonObject> newProviderIds);
|
||||
void setProviderIds(QJsonObject newProviderIds);
|
||||
bool providerIdsNull() const;
|
||||
void setProviderIdsNull();
|
||||
|
||||
|
@ -162,7 +166,7 @@ protected:
|
|||
QString m_path;
|
||||
QString m_metadataLanguage;
|
||||
QString m_metadataCountryCode;
|
||||
std::optional<QJsonObject> m_providerIds = std::nullopt;
|
||||
QJsonObject m_providerIds;
|
||||
std::optional<qint32> m_year = std::nullopt;
|
||||
std::optional<qint32> m_indexNumber = std::nullopt;
|
||||
std::optional<qint32> m_parentIndexNumber = std::nullopt;
|
||||
|
@ -171,6 +175,18 @@ protected:
|
|||
QString m_seriesName;
|
||||
};
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using BookInfo = Jellyfin::DTO::BookInfo;
|
||||
|
||||
template <>
|
||||
BookInfo fromJsonValue(const QJsonValue &source, convertType<BookInfo>);
|
||||
|
||||
template<>
|
||||
QJsonValue toJsonValue(const BookInfo &source, convertType<BookInfo>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
||||
|
|
|
@ -39,6 +39,10 @@
|
|||
#include "JellyfinQt/dto/bookinfo.h"
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -55,7 +59,7 @@ public:
|
|||
|
||||
static BookInfoRemoteSearchQuery fromJson(QJsonObject source);
|
||||
void setFromJson(QJsonObject source);
|
||||
QJsonObject toJson();
|
||||
QJsonObject toJson() const;
|
||||
|
||||
// Properties
|
||||
|
||||
|
@ -96,6 +100,18 @@ protected:
|
|||
bool m_includeDisabledProviders;
|
||||
};
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using BookInfoRemoteSearchQuery = Jellyfin::DTO::BookInfoRemoteSearchQuery;
|
||||
|
||||
template <>
|
||||
BookInfoRemoteSearchQuery fromJsonValue(const QJsonValue &source, convertType<BookInfoRemoteSearchQuery>);
|
||||
|
||||
template<>
|
||||
QJsonValue toJsonValue(const BookInfoRemoteSearchQuery &source, convertType<BookInfoRemoteSearchQuery>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
||||
|
|
|
@ -38,6 +38,10 @@
|
|||
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -54,7 +58,7 @@ public:
|
|||
|
||||
static BoxSetInfo fromJson(QJsonObject source);
|
||||
void setFromJson(QJsonObject source);
|
||||
QJsonObject toJson();
|
||||
QJsonObject toJson() const;
|
||||
|
||||
// Properties
|
||||
/**
|
||||
|
@ -104,11 +108,11 @@ public:
|
|||
/**
|
||||
* @brief Gets or sets the provider ids.
|
||||
*/
|
||||
std::optional<QJsonObject> providerIds() const;
|
||||
QJsonObject providerIds() const;
|
||||
/**
|
||||
* @brief Gets or sets the provider ids.
|
||||
*/
|
||||
void setProviderIds(std::optional<QJsonObject> newProviderIds);
|
||||
void setProviderIds(QJsonObject newProviderIds);
|
||||
bool providerIdsNull() const;
|
||||
void setProviderIdsNull();
|
||||
|
||||
|
@ -155,7 +159,7 @@ protected:
|
|||
QString m_path;
|
||||
QString m_metadataLanguage;
|
||||
QString m_metadataCountryCode;
|
||||
std::optional<QJsonObject> m_providerIds = std::nullopt;
|
||||
QJsonObject m_providerIds;
|
||||
std::optional<qint32> m_year = std::nullopt;
|
||||
std::optional<qint32> m_indexNumber = std::nullopt;
|
||||
std::optional<qint32> m_parentIndexNumber = std::nullopt;
|
||||
|
@ -163,6 +167,18 @@ protected:
|
|||
bool m_isAutomated;
|
||||
};
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using BoxSetInfo = Jellyfin::DTO::BoxSetInfo;
|
||||
|
||||
template <>
|
||||
BoxSetInfo fromJsonValue(const QJsonValue &source, convertType<BoxSetInfo>);
|
||||
|
||||
template<>
|
||||
QJsonValue toJsonValue(const BoxSetInfo &source, convertType<BoxSetInfo>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
||||
|
|
|
@ -39,6 +39,10 @@
|
|||
#include "JellyfinQt/dto/boxsetinfo.h"
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -55,7 +59,7 @@ public:
|
|||
|
||||
static BoxSetInfoRemoteSearchQuery fromJson(QJsonObject source);
|
||||
void setFromJson(QJsonObject source);
|
||||
QJsonObject toJson();
|
||||
QJsonObject toJson() const;
|
||||
|
||||
// Properties
|
||||
|
||||
|
@ -96,6 +100,18 @@ protected:
|
|||
bool m_includeDisabledProviders;
|
||||
};
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using BoxSetInfoRemoteSearchQuery = Jellyfin::DTO::BoxSetInfoRemoteSearchQuery;
|
||||
|
||||
template <>
|
||||
BoxSetInfoRemoteSearchQuery fromJsonValue(const QJsonValue &source, convertType<BoxSetInfoRemoteSearchQuery>);
|
||||
|
||||
template<>
|
||||
QJsonValue toJsonValue(const BoxSetInfoRemoteSearchQuery &source, convertType<BoxSetInfoRemoteSearchQuery>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
||||
|
|
|
@ -37,6 +37,10 @@
|
|||
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -53,7 +57,7 @@ public:
|
|||
|
||||
static BrandingOptions fromJson(QJsonObject source);
|
||||
void setFromJson(QJsonObject source);
|
||||
QJsonObject toJson();
|
||||
QJsonObject toJson() const;
|
||||
|
||||
// Properties
|
||||
/**
|
||||
|
@ -84,6 +88,18 @@ protected:
|
|||
QString m_customCss;
|
||||
};
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using BrandingOptions = Jellyfin::DTO::BrandingOptions;
|
||||
|
||||
template <>
|
||||
BrandingOptions fromJsonValue(const QJsonValue &source, convertType<BrandingOptions>);
|
||||
|
||||
template<>
|
||||
QJsonValue toJsonValue(const BrandingOptions &source, convertType<BrandingOptions>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
||||
|
|
|
@ -38,6 +38,10 @@
|
|||
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -54,7 +58,7 @@ public:
|
|||
|
||||
static BufferRequestDto fromJson(QJsonObject source);
|
||||
void setFromJson(QJsonObject source);
|
||||
QJsonObject toJson();
|
||||
QJsonObject toJson() const;
|
||||
|
||||
// Properties
|
||||
/**
|
||||
|
@ -101,6 +105,18 @@ protected:
|
|||
QString m_playlistItemId;
|
||||
};
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using BufferRequestDto = Jellyfin::DTO::BufferRequestDto;
|
||||
|
||||
template <>
|
||||
BufferRequestDto fromJsonValue(const QJsonValue &source, convertType<BufferRequestDto>);
|
||||
|
||||
template<>
|
||||
QJsonValue toJsonValue(const BufferRequestDto &source, convertType<BufferRequestDto>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
||||
|
|
|
@ -42,6 +42,10 @@
|
|||
#include "JellyfinQt/dto/channelmediatype.h"
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -58,7 +62,7 @@ public:
|
|||
|
||||
static ChannelFeatures fromJson(QJsonObject source);
|
||||
void setFromJson(QJsonObject source);
|
||||
QJsonObject toJson();
|
||||
QJsonObject toJson() const;
|
||||
|
||||
// Properties
|
||||
/**
|
||||
|
@ -199,6 +203,18 @@ protected:
|
|||
bool m_supportsContentDownloading;
|
||||
};
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using ChannelFeatures = Jellyfin::DTO::ChannelFeatures;
|
||||
|
||||
template <>
|
||||
ChannelFeatures fromJsonValue(const QJsonValue &source, convertType<ChannelFeatures>);
|
||||
|
||||
template<>
|
||||
QJsonValue toJsonValue(const ChannelFeatures &source, convertType<ChannelFeatures>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
||||
|
|
|
@ -36,6 +36,10 @@
|
|||
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -57,7 +61,19 @@ private:
|
|||
explicit ChannelItemSortFieldClass();
|
||||
};
|
||||
|
||||
typedef ChannelItemSortFieldClass::Value ChannelItemSortField;
|
||||
using ChannelItemSortField = ChannelItemSortFieldClass::Value;
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using ChannelItemSortField = Jellyfin::DTO::ChannelItemSortField;
|
||||
|
||||
template <>
|
||||
ChannelItemSortField fromJsonValue(const QJsonValue &source, convertType<ChannelItemSortField>);
|
||||
|
||||
template <>
|
||||
QJsonValue toJsonValue(const ChannelItemSortField &source, convertType<ChannelItemSortField>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
|
|
@ -42,6 +42,10 @@
|
|||
#include "JellyfinQt/dto/tunerchannelmapping.h"
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -58,7 +62,7 @@ public:
|
|||
|
||||
static ChannelMappingOptionsDto fromJson(QJsonObject source);
|
||||
void setFromJson(QJsonObject source);
|
||||
QJsonObject toJson();
|
||||
QJsonObject toJson() const;
|
||||
|
||||
// Properties
|
||||
/**
|
||||
|
@ -113,6 +117,18 @@ protected:
|
|||
QString m_providerName;
|
||||
};
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using ChannelMappingOptionsDto = Jellyfin::DTO::ChannelMappingOptionsDto;
|
||||
|
||||
template <>
|
||||
ChannelMappingOptionsDto fromJsonValue(const QJsonValue &source, convertType<ChannelMappingOptionsDto>);
|
||||
|
||||
template<>
|
||||
QJsonValue toJsonValue(const ChannelMappingOptionsDto &source, convertType<ChannelMappingOptionsDto>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
||||
|
|
|
@ -36,6 +36,10 @@
|
|||
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -58,7 +62,19 @@ private:
|
|||
explicit ChannelMediaContentTypeClass();
|
||||
};
|
||||
|
||||
typedef ChannelMediaContentTypeClass::Value ChannelMediaContentType;
|
||||
using ChannelMediaContentType = ChannelMediaContentTypeClass::Value;
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using ChannelMediaContentType = Jellyfin::DTO::ChannelMediaContentType;
|
||||
|
||||
template <>
|
||||
ChannelMediaContentType fromJsonValue(const QJsonValue &source, convertType<ChannelMediaContentType>);
|
||||
|
||||
template <>
|
||||
QJsonValue toJsonValue(const ChannelMediaContentType &source, convertType<ChannelMediaContentType>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
|
|
@ -36,6 +36,10 @@
|
|||
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -53,7 +57,19 @@ private:
|
|||
explicit ChannelMediaTypeClass();
|
||||
};
|
||||
|
||||
typedef ChannelMediaTypeClass::Value ChannelMediaType;
|
||||
using ChannelMediaType = ChannelMediaTypeClass::Value;
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using ChannelMediaType = Jellyfin::DTO::ChannelMediaType;
|
||||
|
||||
template <>
|
||||
ChannelMediaType fromJsonValue(const QJsonValue &source, convertType<ChannelMediaType>);
|
||||
|
||||
template <>
|
||||
QJsonValue toJsonValue(const ChannelMediaType &source, convertType<ChannelMediaType>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
|
|
@ -36,6 +36,10 @@
|
|||
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -52,7 +56,19 @@ private:
|
|||
explicit ChannelTypeClass();
|
||||
};
|
||||
|
||||
typedef ChannelTypeClass::Value ChannelType;
|
||||
using ChannelType = ChannelTypeClass::Value;
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using ChannelType = Jellyfin::DTO::ChannelType;
|
||||
|
||||
template <>
|
||||
ChannelType fromJsonValue(const QJsonValue &source, convertType<ChannelType>);
|
||||
|
||||
template <>
|
||||
QJsonValue toJsonValue(const ChannelType &source, convertType<ChannelType>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
|
|
@ -38,6 +38,10 @@
|
|||
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -54,7 +58,7 @@ public:
|
|||
|
||||
static ChapterInfo fromJson(QJsonObject source);
|
||||
void setFromJson(QJsonObject source);
|
||||
QJsonObject toJson();
|
||||
QJsonObject toJson() const;
|
||||
|
||||
// Properties
|
||||
/**
|
||||
|
@ -109,6 +113,18 @@ protected:
|
|||
QString m_imageTag;
|
||||
};
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using ChapterInfo = Jellyfin::DTO::ChapterInfo;
|
||||
|
||||
template <>
|
||||
ChapterInfo fromJsonValue(const QJsonValue &source, convertType<ChapterInfo>);
|
||||
|
||||
template<>
|
||||
QJsonValue toJsonValue(const ChapterInfo &source, convertType<ChapterInfo>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
||||
|
|
|
@ -42,6 +42,10 @@
|
|||
#include "JellyfinQt/dto/generalcommandtype.h"
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -58,7 +62,7 @@ public:
|
|||
|
||||
static ClientCapabilities fromJson(QJsonObject source);
|
||||
void setFromJson(QJsonObject source);
|
||||
QJsonObject toJson();
|
||||
QJsonObject toJson() const;
|
||||
|
||||
// Properties
|
||||
|
||||
|
@ -135,6 +139,18 @@ protected:
|
|||
QString m_iconUrl;
|
||||
};
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using ClientCapabilities = Jellyfin::DTO::ClientCapabilities;
|
||||
|
||||
template <>
|
||||
ClientCapabilities fromJsonValue(const QJsonValue &source, convertType<ClientCapabilities>);
|
||||
|
||||
template<>
|
||||
QJsonValue toJsonValue(const ClientCapabilities &source, convertType<ClientCapabilities>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
||||
|
|
|
@ -42,6 +42,10 @@
|
|||
#include "JellyfinQt/dto/generalcommandtype.h"
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -58,7 +62,7 @@ public:
|
|||
|
||||
static ClientCapabilitiesDto fromJson(QJsonObject source);
|
||||
void setFromJson(QJsonObject source);
|
||||
QJsonObject toJson();
|
||||
QJsonObject toJson() const;
|
||||
|
||||
// Properties
|
||||
/**
|
||||
|
@ -171,6 +175,18 @@ protected:
|
|||
QString m_iconUrl;
|
||||
};
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using ClientCapabilitiesDto = Jellyfin::DTO::ClientCapabilitiesDto;
|
||||
|
||||
template <>
|
||||
ClientCapabilitiesDto fromJsonValue(const QJsonValue &source, convertType<ClientCapabilitiesDto>);
|
||||
|
||||
template<>
|
||||
QJsonValue toJsonValue(const ClientCapabilitiesDto &source, convertType<ClientCapabilitiesDto>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
||||
|
|
|
@ -41,6 +41,10 @@
|
|||
#include "JellyfinQt/dto/profilecondition.h"
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -57,7 +61,7 @@ public:
|
|||
|
||||
static CodecProfile fromJson(QJsonObject source);
|
||||
void setFromJson(QJsonObject source);
|
||||
QJsonObject toJson();
|
||||
QJsonObject toJson() const;
|
||||
|
||||
// Properties
|
||||
|
||||
|
@ -102,6 +106,18 @@ protected:
|
|||
QString m_container;
|
||||
};
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using CodecProfile = Jellyfin::DTO::CodecProfile;
|
||||
|
||||
template <>
|
||||
CodecProfile fromJsonValue(const QJsonValue &source, convertType<CodecProfile>);
|
||||
|
||||
template<>
|
||||
QJsonValue toJsonValue(const CodecProfile &source, convertType<CodecProfile>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
||||
|
|
|
@ -36,6 +36,10 @@
|
|||
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -53,7 +57,19 @@ private:
|
|||
explicit CodecTypeClass();
|
||||
};
|
||||
|
||||
typedef CodecTypeClass::Value CodecType;
|
||||
using CodecType = CodecTypeClass::Value;
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using CodecType = Jellyfin::DTO::CodecType;
|
||||
|
||||
template <>
|
||||
CodecType fromJsonValue(const QJsonValue &source, convertType<CodecType>);
|
||||
|
||||
template <>
|
||||
QJsonValue toJsonValue(const CodecType &source, convertType<CodecType>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
|
|
@ -37,6 +37,10 @@
|
|||
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -53,7 +57,7 @@ public:
|
|||
|
||||
static CollectionCreationResult fromJson(QJsonObject source);
|
||||
void setFromJson(QJsonObject source);
|
||||
QJsonObject toJson();
|
||||
QJsonObject toJson() const;
|
||||
|
||||
// Properties
|
||||
|
||||
|
@ -66,6 +70,18 @@ protected:
|
|||
QString m_jellyfinId;
|
||||
};
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using CollectionCreationResult = Jellyfin::DTO::CollectionCreationResult;
|
||||
|
||||
template <>
|
||||
CollectionCreationResult fromJsonValue(const QJsonValue &source, convertType<CollectionCreationResult>);
|
||||
|
||||
template<>
|
||||
QJsonValue toJsonValue(const CollectionCreationResult &source, convertType<CollectionCreationResult>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
||||
|
|
|
@ -38,6 +38,10 @@
|
|||
#include "JellyfinQt/dto/configurationpagetype.h"
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -54,7 +58,7 @@ public:
|
|||
|
||||
static ConfigurationPageInfo fromJson(QJsonObject source);
|
||||
void setFromJson(QJsonObject source);
|
||||
QJsonObject toJson();
|
||||
QJsonObject toJson() const;
|
||||
|
||||
// Properties
|
||||
/**
|
||||
|
@ -137,6 +141,18 @@ protected:
|
|||
QString m_pluginId;
|
||||
};
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using ConfigurationPageInfo = Jellyfin::DTO::ConfigurationPageInfo;
|
||||
|
||||
template <>
|
||||
ConfigurationPageInfo fromJsonValue(const QJsonValue &source, convertType<ConfigurationPageInfo>);
|
||||
|
||||
template<>
|
||||
QJsonValue toJsonValue(const ConfigurationPageInfo &source, convertType<ConfigurationPageInfo>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
||||
|
|
|
@ -36,6 +36,10 @@
|
|||
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -52,7 +56,19 @@ private:
|
|||
explicit ConfigurationPageTypeClass();
|
||||
};
|
||||
|
||||
typedef ConfigurationPageTypeClass::Value ConfigurationPageType;
|
||||
using ConfigurationPageType = ConfigurationPageTypeClass::Value;
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using ConfigurationPageType = Jellyfin::DTO::ConfigurationPageType;
|
||||
|
||||
template <>
|
||||
ConfigurationPageType fromJsonValue(const QJsonValue &source, convertType<ConfigurationPageType>);
|
||||
|
||||
template <>
|
||||
QJsonValue toJsonValue(const ConfigurationPageType &source, convertType<ConfigurationPageType>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
|
|
@ -41,6 +41,10 @@
|
|||
#include "JellyfinQt/dto/profilecondition.h"
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -57,7 +61,7 @@ public:
|
|||
|
||||
static ContainerProfile fromJson(QJsonObject source);
|
||||
void setFromJson(QJsonObject source);
|
||||
QJsonObject toJson();
|
||||
QJsonObject toJson() const;
|
||||
|
||||
// Properties
|
||||
|
||||
|
@ -86,6 +90,18 @@ protected:
|
|||
QString m_container;
|
||||
};
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using ContainerProfile = Jellyfin::DTO::ContainerProfile;
|
||||
|
||||
template <>
|
||||
ContainerProfile fromJsonValue(const QJsonValue &source, convertType<ContainerProfile>);
|
||||
|
||||
template<>
|
||||
QJsonValue toJsonValue(const ContainerProfile &source, convertType<ContainerProfile>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
||||
|
|
|
@ -37,6 +37,10 @@
|
|||
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -53,13 +57,13 @@ public:
|
|||
|
||||
static ControlResponse fromJson(QJsonObject source);
|
||||
void setFromJson(QJsonObject source);
|
||||
QJsonObject toJson();
|
||||
QJsonObject toJson() const;
|
||||
|
||||
// Properties
|
||||
|
||||
std::optional<QJsonObject> headers() const;
|
||||
QJsonObject headers() const;
|
||||
|
||||
void setHeaders(std::optional<QJsonObject> newHeaders);
|
||||
void setHeaders(QJsonObject newHeaders);
|
||||
bool headersNull() const;
|
||||
void setHeadersNull();
|
||||
|
||||
|
@ -77,11 +81,23 @@ public:
|
|||
|
||||
|
||||
protected:
|
||||
std::optional<QJsonObject> m_headers = std::nullopt;
|
||||
QJsonObject m_headers;
|
||||
QString m_xml;
|
||||
bool m_isSuccessful;
|
||||
};
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using ControlResponse = Jellyfin::DTO::ControlResponse;
|
||||
|
||||
template <>
|
||||
ControlResponse fromJsonValue(const QJsonValue &source, convertType<ControlResponse>);
|
||||
|
||||
template<>
|
||||
QJsonValue toJsonValue(const ControlResponse &source, convertType<ControlResponse>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
||||
|
|
|
@ -37,6 +37,10 @@
|
|||
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -53,7 +57,7 @@ public:
|
|||
|
||||
static CountryInfo fromJson(QJsonObject source);
|
||||
void setFromJson(QJsonObject source);
|
||||
QJsonObject toJson();
|
||||
QJsonObject toJson() const;
|
||||
|
||||
// Properties
|
||||
/**
|
||||
|
@ -108,6 +112,18 @@ protected:
|
|||
QString m_threeLetterISORegionName;
|
||||
};
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using CountryInfo = Jellyfin::DTO::CountryInfo;
|
||||
|
||||
template <>
|
||||
CountryInfo fromJsonValue(const QJsonValue &source, convertType<CountryInfo>);
|
||||
|
||||
template<>
|
||||
QJsonValue toJsonValue(const CountryInfo &source, convertType<CountryInfo>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
||||
|
|
|
@ -39,6 +39,10 @@
|
|||
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -55,7 +59,7 @@ public:
|
|||
|
||||
static CreatePlaylistDto fromJson(QJsonObject source);
|
||||
void setFromJson(QJsonObject source);
|
||||
QJsonObject toJson();
|
||||
QJsonObject toJson() const;
|
||||
|
||||
// Properties
|
||||
/**
|
||||
|
@ -110,6 +114,18 @@ protected:
|
|||
QString m_mediaType;
|
||||
};
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using CreatePlaylistDto = Jellyfin::DTO::CreatePlaylistDto;
|
||||
|
||||
template <>
|
||||
CreatePlaylistDto fromJsonValue(const QJsonValue &source, convertType<CreatePlaylistDto>);
|
||||
|
||||
template<>
|
||||
QJsonValue toJsonValue(const CreatePlaylistDto &source, convertType<CreatePlaylistDto>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
||||
|
|
|
@ -37,6 +37,10 @@
|
|||
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -53,7 +57,7 @@ public:
|
|||
|
||||
static CreateUserByName fromJson(QJsonObject source);
|
||||
void setFromJson(QJsonObject source);
|
||||
QJsonObject toJson();
|
||||
QJsonObject toJson() const;
|
||||
|
||||
// Properties
|
||||
/**
|
||||
|
@ -84,6 +88,18 @@ protected:
|
|||
QString m_password;
|
||||
};
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using CreateUserByName = Jellyfin::DTO::CreateUserByName;
|
||||
|
||||
template <>
|
||||
CreateUserByName fromJsonValue(const QJsonValue &source, convertType<CreateUserByName>);
|
||||
|
||||
template<>
|
||||
QJsonValue toJsonValue(const CreateUserByName &source, convertType<CreateUserByName>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
||||
|
|
|
@ -39,6 +39,10 @@
|
|||
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -55,7 +59,7 @@ public:
|
|||
|
||||
static CultureDto fromJson(QJsonObject source);
|
||||
void setFromJson(QJsonObject source);
|
||||
QJsonObject toJson();
|
||||
QJsonObject toJson() const;
|
||||
|
||||
// Properties
|
||||
/**
|
||||
|
@ -118,6 +122,18 @@ protected:
|
|||
QStringList m_threeLetterISOLanguageNames;
|
||||
};
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using CultureDto = Jellyfin::DTO::CultureDto;
|
||||
|
||||
template <>
|
||||
CultureDto fromJsonValue(const QJsonValue &source, convertType<CultureDto>);
|
||||
|
||||
template<>
|
||||
QJsonValue toJsonValue(const CultureDto &source, convertType<CultureDto>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
||||
|
|
|
@ -36,6 +36,10 @@
|
|||
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -57,7 +61,19 @@ private:
|
|||
explicit DayOfWeekClass();
|
||||
};
|
||||
|
||||
typedef DayOfWeekClass::Value DayOfWeek;
|
||||
using DayOfWeek = DayOfWeekClass::Value;
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using DayOfWeek = Jellyfin::DTO::DayOfWeek;
|
||||
|
||||
template <>
|
||||
DayOfWeek fromJsonValue(const QJsonValue &source, convertType<DayOfWeek>);
|
||||
|
||||
template <>
|
||||
QJsonValue toJsonValue(const DayOfWeek &source, convertType<DayOfWeek>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
|
|
@ -36,6 +36,10 @@
|
|||
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -53,7 +57,19 @@ private:
|
|||
explicit DayPatternClass();
|
||||
};
|
||||
|
||||
typedef DayPatternClass::Value DayPattern;
|
||||
using DayPattern = DayPatternClass::Value;
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using DayPattern = Jellyfin::DTO::DayPattern;
|
||||
|
||||
template <>
|
||||
DayPattern fromJsonValue(const QJsonValue &source, convertType<DayPattern>);
|
||||
|
||||
template <>
|
||||
QJsonValue toJsonValue(const DayPattern &source, convertType<DayPattern>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
|
|
@ -37,6 +37,10 @@
|
|||
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -53,7 +57,7 @@ public:
|
|||
|
||||
static DefaultDirectoryBrowserInfoDto fromJson(QJsonObject source);
|
||||
void setFromJson(QJsonObject source);
|
||||
QJsonObject toJson();
|
||||
QJsonObject toJson() const;
|
||||
|
||||
// Properties
|
||||
/**
|
||||
|
@ -72,6 +76,18 @@ protected:
|
|||
QString m_path;
|
||||
};
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using DefaultDirectoryBrowserInfoDto = Jellyfin::DTO::DefaultDirectoryBrowserInfoDto;
|
||||
|
||||
template <>
|
||||
DefaultDirectoryBrowserInfoDto fromJsonValue(const QJsonValue &source, convertType<DefaultDirectoryBrowserInfoDto>);
|
||||
|
||||
template<>
|
||||
QJsonValue toJsonValue(const DefaultDirectoryBrowserInfoDto &source, convertType<DefaultDirectoryBrowserInfoDto>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
||||
|
|
|
@ -40,6 +40,10 @@
|
|||
#include "JellyfinQt/dto/httpheaderinfo.h"
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -56,7 +60,7 @@ public:
|
|||
|
||||
static DeviceIdentification fromJson(QJsonObject source);
|
||||
void setFromJson(QJsonObject source);
|
||||
QJsonObject toJson();
|
||||
QJsonObject toJson() const;
|
||||
|
||||
// Properties
|
||||
/**
|
||||
|
@ -171,6 +175,18 @@ protected:
|
|||
QList<HttpHeaderInfo> m_headers;
|
||||
};
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using DeviceIdentification = Jellyfin::DTO::DeviceIdentification;
|
||||
|
||||
template <>
|
||||
DeviceIdentification fromJsonValue(const QJsonValue &source, convertType<DeviceIdentification>);
|
||||
|
||||
template<>
|
||||
QJsonValue toJsonValue(const DeviceIdentification &source, convertType<DeviceIdentification>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
||||
|
|
|
@ -40,6 +40,10 @@
|
|||
#include "JellyfinQt/dto/clientcapabilities.h"
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -56,7 +60,7 @@ public:
|
|||
|
||||
static DeviceInfo fromJson(QJsonObject source);
|
||||
void setFromJson(QJsonObject source);
|
||||
QJsonObject toJson();
|
||||
QJsonObject toJson() const;
|
||||
|
||||
// Properties
|
||||
|
||||
|
@ -153,6 +157,18 @@ protected:
|
|||
QString m_iconUrl;
|
||||
};
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using DeviceInfo = Jellyfin::DTO::DeviceInfo;
|
||||
|
||||
template <>
|
||||
DeviceInfo fromJsonValue(const QJsonValue &source, convertType<DeviceInfo>);
|
||||
|
||||
template<>
|
||||
QJsonValue toJsonValue(const DeviceInfo &source, convertType<DeviceInfo>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
||||
|
|
|
@ -39,6 +39,10 @@
|
|||
#include "JellyfinQt/dto/deviceinfo.h"
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -55,7 +59,7 @@ public:
|
|||
|
||||
static DeviceInfoQueryResult fromJson(QJsonObject source);
|
||||
void setFromJson(QJsonObject source);
|
||||
QJsonObject toJson();
|
||||
QJsonObject toJson() const;
|
||||
|
||||
// Properties
|
||||
/**
|
||||
|
@ -94,6 +98,18 @@ protected:
|
|||
qint32 m_startIndex;
|
||||
};
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using DeviceInfoQueryResult = Jellyfin::DTO::DeviceInfoQueryResult;
|
||||
|
||||
template <>
|
||||
DeviceInfoQueryResult fromJsonValue(const QJsonValue &source, convertType<DeviceInfoQueryResult>);
|
||||
|
||||
template<>
|
||||
QJsonValue toJsonValue(const DeviceInfoQueryResult &source, convertType<DeviceInfoQueryResult>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
||||
|
|
|
@ -37,6 +37,10 @@
|
|||
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -53,7 +57,7 @@ public:
|
|||
|
||||
static DeviceOptions fromJson(QJsonObject source);
|
||||
void setFromJson(QJsonObject source);
|
||||
QJsonObject toJson();
|
||||
QJsonObject toJson() const;
|
||||
|
||||
// Properties
|
||||
|
||||
|
@ -68,6 +72,18 @@ protected:
|
|||
QString m_customName;
|
||||
};
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using DeviceOptions = Jellyfin::DTO::DeviceOptions;
|
||||
|
||||
template <>
|
||||
DeviceOptions fromJsonValue(const QJsonValue &source, convertType<DeviceOptions>);
|
||||
|
||||
template<>
|
||||
QJsonValue toJsonValue(const DeviceOptions &source, convertType<DeviceOptions>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
||||
|
|
|
@ -48,6 +48,10 @@
|
|||
#include "JellyfinQt/dto/xmlattribute.h"
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -64,7 +68,7 @@ public:
|
|||
|
||||
static DeviceProfile fromJson(QJsonObject source);
|
||||
void setFromJson(QJsonObject source);
|
||||
QJsonObject toJson();
|
||||
QJsonObject toJson() const;
|
||||
|
||||
// Properties
|
||||
/**
|
||||
|
@ -513,6 +517,18 @@ protected:
|
|||
QList<SubtitleProfile> m_subtitleProfiles;
|
||||
};
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using DeviceProfile = Jellyfin::DTO::DeviceProfile;
|
||||
|
||||
template <>
|
||||
DeviceProfile fromJsonValue(const QJsonValue &source, convertType<DeviceProfile>);
|
||||
|
||||
template<>
|
||||
QJsonValue toJsonValue(const DeviceProfile &source, convertType<DeviceProfile>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
||||
|
|
|
@ -38,6 +38,10 @@
|
|||
#include "JellyfinQt/dto/deviceprofiletype.h"
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -54,7 +58,7 @@ public:
|
|||
|
||||
static DeviceProfileInfo fromJson(QJsonObject source);
|
||||
void setFromJson(QJsonObject source);
|
||||
QJsonObject toJson();
|
||||
QJsonObject toJson() const;
|
||||
|
||||
// Properties
|
||||
/**
|
||||
|
@ -91,6 +95,18 @@ protected:
|
|||
DeviceProfileType m_type;
|
||||
};
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using DeviceProfileInfo = Jellyfin::DTO::DeviceProfileInfo;
|
||||
|
||||
template <>
|
||||
DeviceProfileInfo fromJsonValue(const QJsonValue &source, convertType<DeviceProfileInfo>);
|
||||
|
||||
template<>
|
||||
QJsonValue toJsonValue(const DeviceProfileInfo &source, convertType<DeviceProfileInfo>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
||||
|
|
|
@ -36,6 +36,10 @@
|
|||
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -52,7 +56,19 @@ private:
|
|||
explicit DeviceProfileTypeClass();
|
||||
};
|
||||
|
||||
typedef DeviceProfileTypeClass::Value DeviceProfileType;
|
||||
using DeviceProfileType = DeviceProfileTypeClass::Value;
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using DeviceProfileType = Jellyfin::DTO::DeviceProfileType;
|
||||
|
||||
template <>
|
||||
DeviceProfileType fromJsonValue(const QJsonValue &source, convertType<DeviceProfileType>);
|
||||
|
||||
template <>
|
||||
QJsonValue toJsonValue(const DeviceProfileType &source, convertType<DeviceProfileType>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
|
|
@ -38,6 +38,10 @@
|
|||
#include "JellyfinQt/dto/dlnaprofiletype.h"
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -54,7 +58,7 @@ public:
|
|||
|
||||
static DirectPlayProfile fromJson(QJsonObject source);
|
||||
void setFromJson(QJsonObject source);
|
||||
QJsonObject toJson();
|
||||
QJsonObject toJson() const;
|
||||
|
||||
// Properties
|
||||
|
||||
|
@ -91,6 +95,18 @@ protected:
|
|||
DlnaProfileType m_type;
|
||||
};
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using DirectPlayProfile = Jellyfin::DTO::DirectPlayProfile;
|
||||
|
||||
template <>
|
||||
DirectPlayProfile fromJsonValue(const QJsonValue &source, convertType<DirectPlayProfile>);
|
||||
|
||||
template<>
|
||||
QJsonValue toJsonValue(const DirectPlayProfile &source, convertType<DirectPlayProfile>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
||||
|
|
|
@ -39,6 +39,10 @@
|
|||
#include "JellyfinQt/dto/sortorder.h"
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -55,7 +59,7 @@ public:
|
|||
|
||||
static DisplayPreferencesDto fromJson(QJsonObject source);
|
||||
void setFromJson(QJsonObject source);
|
||||
QJsonObject toJson();
|
||||
QJsonObject toJson() const;
|
||||
|
||||
// Properties
|
||||
/**
|
||||
|
@ -132,11 +136,11 @@ public:
|
|||
/**
|
||||
* @brief Gets or sets the custom prefs.
|
||||
*/
|
||||
std::optional<QJsonObject> customPrefs() const;
|
||||
QJsonObject customPrefs() const;
|
||||
/**
|
||||
* @brief Gets or sets the custom prefs.
|
||||
*/
|
||||
void setCustomPrefs(std::optional<QJsonObject> newCustomPrefs);
|
||||
void setCustomPrefs(QJsonObject newCustomPrefs);
|
||||
bool customPrefsNull() const;
|
||||
void setCustomPrefsNull();
|
||||
|
||||
|
@ -197,7 +201,7 @@ protected:
|
|||
bool m_rememberIndexing;
|
||||
qint32 m_primaryImageHeight;
|
||||
qint32 m_primaryImageWidth;
|
||||
std::optional<QJsonObject> m_customPrefs = std::nullopt;
|
||||
QJsonObject m_customPrefs;
|
||||
ScrollDirection m_scrollDirection;
|
||||
bool m_showBackdrop;
|
||||
bool m_rememberSorting;
|
||||
|
@ -206,6 +210,18 @@ protected:
|
|||
QString m_client;
|
||||
};
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using DisplayPreferencesDto = Jellyfin::DTO::DisplayPreferencesDto;
|
||||
|
||||
template <>
|
||||
DisplayPreferencesDto fromJsonValue(const QJsonValue &source, convertType<DisplayPreferencesDto>);
|
||||
|
||||
template<>
|
||||
QJsonValue toJsonValue(const DisplayPreferencesDto &source, convertType<DisplayPreferencesDto>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
||||
|
|
|
@ -36,6 +36,10 @@
|
|||
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -53,7 +57,19 @@ private:
|
|||
explicit DlnaProfileTypeClass();
|
||||
};
|
||||
|
||||
typedef DlnaProfileTypeClass::Value DlnaProfileType;
|
||||
using DlnaProfileType = DlnaProfileTypeClass::Value;
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using DlnaProfileType = Jellyfin::DTO::DlnaProfileType;
|
||||
|
||||
template <>
|
||||
DlnaProfileType fromJsonValue(const QJsonValue &source, convertType<DlnaProfileType>);
|
||||
|
||||
template <>
|
||||
QJsonValue toJsonValue(const DlnaProfileType &source, convertType<DlnaProfileType>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
|
|
@ -36,6 +36,10 @@
|
|||
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -60,7 +64,19 @@ private:
|
|||
explicit DynamicDayOfWeekClass();
|
||||
};
|
||||
|
||||
typedef DynamicDayOfWeekClass::Value DynamicDayOfWeek;
|
||||
using DynamicDayOfWeek = DynamicDayOfWeekClass::Value;
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using DynamicDayOfWeek = Jellyfin::DTO::DynamicDayOfWeek;
|
||||
|
||||
template <>
|
||||
DynamicDayOfWeek fromJsonValue(const QJsonValue &source, convertType<DynamicDayOfWeek>);
|
||||
|
||||
template <>
|
||||
QJsonValue toJsonValue(const DynamicDayOfWeek &source, convertType<DynamicDayOfWeek>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
|
|
@ -36,6 +36,10 @@
|
|||
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -52,7 +56,19 @@ private:
|
|||
explicit EncodingContextClass();
|
||||
};
|
||||
|
||||
typedef EncodingContextClass::Value EncodingContext;
|
||||
using EncodingContext = EncodingContextClass::Value;
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using EncodingContext = Jellyfin::DTO::EncodingContext;
|
||||
|
||||
template <>
|
||||
EncodingContext fromJsonValue(const QJsonValue &source, convertType<EncodingContext>);
|
||||
|
||||
template <>
|
||||
QJsonValue toJsonValue(const EncodingContext &source, convertType<EncodingContext>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
|
|
@ -36,6 +36,10 @@
|
|||
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -52,7 +56,7 @@ public:
|
|||
|
||||
static EndPointInfo fromJson(QJsonObject source);
|
||||
void setFromJson(QJsonObject source);
|
||||
QJsonObject toJson();
|
||||
QJsonObject toJson() const;
|
||||
|
||||
// Properties
|
||||
|
||||
|
@ -71,6 +75,18 @@ protected:
|
|||
bool m_isInNetwork;
|
||||
};
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using EndPointInfo = Jellyfin::DTO::EndPointInfo;
|
||||
|
||||
template <>
|
||||
EndPointInfo fromJsonValue(const QJsonValue &source, convertType<EndPointInfo>);
|
||||
|
||||
template<>
|
||||
QJsonValue toJsonValue(const EndPointInfo &source, convertType<EndPointInfo>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
||||
|
|
|
@ -38,6 +38,10 @@
|
|||
#include "JellyfinQt/dto/externalidmediatype.h"
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -54,7 +58,7 @@ public:
|
|||
|
||||
static ExternalIdInfo fromJson(QJsonObject source);
|
||||
void setFromJson(QJsonObject source);
|
||||
QJsonObject toJson();
|
||||
QJsonObject toJson() const;
|
||||
|
||||
// Properties
|
||||
/**
|
||||
|
@ -103,6 +107,18 @@ protected:
|
|||
QString m_urlFormatString;
|
||||
};
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using ExternalIdInfo = Jellyfin::DTO::ExternalIdInfo;
|
||||
|
||||
template <>
|
||||
ExternalIdInfo fromJsonValue(const QJsonValue &source, convertType<ExternalIdInfo>);
|
||||
|
||||
template<>
|
||||
QJsonValue toJsonValue(const ExternalIdInfo &source, convertType<ExternalIdInfo>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
||||
|
|
|
@ -36,6 +36,10 @@
|
|||
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -62,7 +66,19 @@ private:
|
|||
explicit ExternalIdMediaTypeClass();
|
||||
};
|
||||
|
||||
typedef ExternalIdMediaTypeClass::Value ExternalIdMediaType;
|
||||
using ExternalIdMediaType = ExternalIdMediaTypeClass::Value;
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using ExternalIdMediaType = Jellyfin::DTO::ExternalIdMediaType;
|
||||
|
||||
template <>
|
||||
ExternalIdMediaType fromJsonValue(const QJsonValue &source, convertType<ExternalIdMediaType>);
|
||||
|
||||
template <>
|
||||
QJsonValue toJsonValue(const ExternalIdMediaType &source, convertType<ExternalIdMediaType>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
|
|
@ -37,6 +37,10 @@
|
|||
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -53,7 +57,7 @@ public:
|
|||
|
||||
static ExternalUrl fromJson(QJsonObject source);
|
||||
void setFromJson(QJsonObject source);
|
||||
QJsonObject toJson();
|
||||
QJsonObject toJson() const;
|
||||
|
||||
// Properties
|
||||
/**
|
||||
|
@ -84,6 +88,18 @@ protected:
|
|||
QString m_url;
|
||||
};
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using ExternalUrl = Jellyfin::DTO::ExternalUrl;
|
||||
|
||||
template <>
|
||||
ExternalUrl fromJsonValue(const QJsonValue &source, convertType<ExternalUrl>);
|
||||
|
||||
template<>
|
||||
QJsonValue toJsonValue(const ExternalUrl &source, convertType<ExternalUrl>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
||||
|
|
|
@ -36,6 +36,10 @@
|
|||
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -54,7 +58,19 @@ private:
|
|||
explicit FFmpegLocationClass();
|
||||
};
|
||||
|
||||
typedef FFmpegLocationClass::Value FFmpegLocation;
|
||||
using FFmpegLocation = FFmpegLocationClass::Value;
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using FFmpegLocation = Jellyfin::DTO::FFmpegLocation;
|
||||
|
||||
template <>
|
||||
FFmpegLocation fromJsonValue(const QJsonValue &source, convertType<FFmpegLocation>);
|
||||
|
||||
template <>
|
||||
QJsonValue toJsonValue(const FFmpegLocation &source, convertType<FFmpegLocation>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
|
|
@ -38,6 +38,10 @@
|
|||
#include "JellyfinQt/dto/filesystementrytype.h"
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -54,7 +58,7 @@ public:
|
|||
|
||||
static FileSystemEntryInfo fromJson(QJsonObject source);
|
||||
void setFromJson(QJsonObject source);
|
||||
QJsonObject toJson();
|
||||
QJsonObject toJson() const;
|
||||
|
||||
// Properties
|
||||
/**
|
||||
|
@ -91,6 +95,18 @@ protected:
|
|||
FileSystemEntryType m_type;
|
||||
};
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using FileSystemEntryInfo = Jellyfin::DTO::FileSystemEntryInfo;
|
||||
|
||||
template <>
|
||||
FileSystemEntryInfo fromJsonValue(const QJsonValue &source, convertType<FileSystemEntryInfo>);
|
||||
|
||||
template<>
|
||||
QJsonValue toJsonValue(const FileSystemEntryInfo &source, convertType<FileSystemEntryInfo>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
||||
|
|
|
@ -36,6 +36,10 @@
|
|||
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -54,7 +58,19 @@ private:
|
|||
explicit FileSystemEntryTypeClass();
|
||||
};
|
||||
|
||||
typedef FileSystemEntryTypeClass::Value FileSystemEntryType;
|
||||
using FileSystemEntryType = FileSystemEntryTypeClass::Value;
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using FileSystemEntryType = Jellyfin::DTO::FileSystemEntryType;
|
||||
|
||||
template <>
|
||||
FileSystemEntryType fromJsonValue(const QJsonValue &source, convertType<FileSystemEntryType>);
|
||||
|
||||
template <>
|
||||
QJsonValue toJsonValue(const FileSystemEntryType &source, convertType<FileSystemEntryType>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
|
|
@ -38,6 +38,10 @@
|
|||
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -54,7 +58,7 @@ public:
|
|||
|
||||
static FontFile fromJson(QJsonObject source);
|
||||
void setFromJson(QJsonObject source);
|
||||
QJsonObject toJson();
|
||||
QJsonObject toJson() const;
|
||||
|
||||
// Properties
|
||||
/**
|
||||
|
@ -103,6 +107,18 @@ protected:
|
|||
QDateTime m_dateModified;
|
||||
};
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using FontFile = Jellyfin::DTO::FontFile;
|
||||
|
||||
template <>
|
||||
FontFile fromJsonValue(const QJsonValue &source, convertType<FontFile>);
|
||||
|
||||
template<>
|
||||
QJsonValue toJsonValue(const FontFile &source, convertType<FontFile>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
||||
|
|
|
@ -36,6 +36,10 @@
|
|||
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -53,7 +57,19 @@ private:
|
|||
explicit ForgotPasswordActionClass();
|
||||
};
|
||||
|
||||
typedef ForgotPasswordActionClass::Value ForgotPasswordAction;
|
||||
using ForgotPasswordAction = ForgotPasswordActionClass::Value;
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using ForgotPasswordAction = Jellyfin::DTO::ForgotPasswordAction;
|
||||
|
||||
template <>
|
||||
ForgotPasswordAction fromJsonValue(const QJsonValue &source, convertType<ForgotPasswordAction>);
|
||||
|
||||
template <>
|
||||
QJsonValue toJsonValue(const ForgotPasswordAction &source, convertType<ForgotPasswordAction>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
|
|
@ -37,6 +37,10 @@
|
|||
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -53,7 +57,7 @@ public:
|
|||
|
||||
static ForgotPasswordDto fromJson(QJsonObject source);
|
||||
void setFromJson(QJsonObject source);
|
||||
QJsonObject toJson();
|
||||
QJsonObject toJson() const;
|
||||
|
||||
// Properties
|
||||
/**
|
||||
|
@ -70,6 +74,18 @@ protected:
|
|||
QString m_enteredUsername;
|
||||
};
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using ForgotPasswordDto = Jellyfin::DTO::ForgotPasswordDto;
|
||||
|
||||
template <>
|
||||
ForgotPasswordDto fromJsonValue(const QJsonValue &source, convertType<ForgotPasswordDto>);
|
||||
|
||||
template<>
|
||||
QJsonValue toJsonValue(const ForgotPasswordDto &source, convertType<ForgotPasswordDto>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
||||
|
|
|
@ -39,6 +39,10 @@
|
|||
#include "JellyfinQt/dto/forgotpasswordaction.h"
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -55,7 +59,7 @@ public:
|
|||
|
||||
static ForgotPasswordResult fromJson(QJsonObject source);
|
||||
void setFromJson(QJsonObject source);
|
||||
QJsonObject toJson();
|
||||
QJsonObject toJson() const;
|
||||
|
||||
// Properties
|
||||
|
||||
|
@ -92,6 +96,18 @@ protected:
|
|||
QDateTime m_pinExpirationDate;
|
||||
};
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using ForgotPasswordResult = Jellyfin::DTO::ForgotPasswordResult;
|
||||
|
||||
template <>
|
||||
ForgotPasswordResult fromJsonValue(const QJsonValue &source, convertType<ForgotPasswordResult>);
|
||||
|
||||
template<>
|
||||
QJsonValue toJsonValue(const ForgotPasswordResult &source, convertType<ForgotPasswordResult>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
||||
|
|
|
@ -38,6 +38,10 @@
|
|||
#include "JellyfinQt/dto/generalcommandtype.h"
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -54,7 +58,7 @@ public:
|
|||
|
||||
static GeneralCommand fromJson(QJsonObject source);
|
||||
void setFromJson(QJsonObject source);
|
||||
QJsonObject toJson();
|
||||
QJsonObject toJson() const;
|
||||
|
||||
// Properties
|
||||
|
||||
|
@ -68,9 +72,9 @@ public:
|
|||
void setControllingUserId(QString newControllingUserId);
|
||||
|
||||
|
||||
std::optional<QJsonObject> arguments() const;
|
||||
QJsonObject arguments() const;
|
||||
|
||||
void setArguments(std::optional<QJsonObject> newArguments);
|
||||
void setArguments(QJsonObject newArguments);
|
||||
bool argumentsNull() const;
|
||||
void setArgumentsNull();
|
||||
|
||||
|
@ -78,9 +82,21 @@ public:
|
|||
protected:
|
||||
GeneralCommandType m_name;
|
||||
QString m_controllingUserId;
|
||||
std::optional<QJsonObject> m_arguments = std::nullopt;
|
||||
QJsonObject m_arguments;
|
||||
};
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using GeneralCommand = Jellyfin::DTO::GeneralCommand;
|
||||
|
||||
template <>
|
||||
GeneralCommand fromJsonValue(const QJsonValue &source, convertType<GeneralCommand>);
|
||||
|
||||
template<>
|
||||
QJsonValue toJsonValue(const GeneralCommand &source, convertType<GeneralCommand>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
||||
|
|
|
@ -36,6 +36,10 @@
|
|||
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -91,7 +95,19 @@ private:
|
|||
explicit GeneralCommandTypeClass();
|
||||
};
|
||||
|
||||
typedef GeneralCommandTypeClass::Value GeneralCommandType;
|
||||
using GeneralCommandType = GeneralCommandTypeClass::Value;
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using GeneralCommandType = Jellyfin::DTO::GeneralCommandType;
|
||||
|
||||
template <>
|
||||
GeneralCommandType fromJsonValue(const QJsonValue &source, convertType<GeneralCommandType>);
|
||||
|
||||
template <>
|
||||
QJsonValue toJsonValue(const GeneralCommandType &source, convertType<GeneralCommandType>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
|
|
@ -42,6 +42,10 @@
|
|||
#include "JellyfinQt/dto/itemfields.h"
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -58,7 +62,7 @@ public:
|
|||
|
||||
static GetProgramsDto fromJson(QJsonObject source);
|
||||
void setFromJson(QJsonObject source);
|
||||
QJsonObject toJson();
|
||||
QJsonObject toJson() const;
|
||||
|
||||
// Properties
|
||||
/**
|
||||
|
@ -425,6 +429,18 @@ protected:
|
|||
QList<ItemFields> m_fields;
|
||||
};
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using GetProgramsDto = Jellyfin::DTO::GetProgramsDto;
|
||||
|
||||
template <>
|
||||
GetProgramsDto fromJsonValue(const QJsonValue &source, convertType<GetProgramsDto>);
|
||||
|
||||
template<>
|
||||
QJsonValue toJsonValue(const GetProgramsDto &source, convertType<GetProgramsDto>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
||||
|
|
|
@ -41,6 +41,10 @@
|
|||
#include "JellyfinQt/dto/groupstatetype.h"
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -57,7 +61,7 @@ public:
|
|||
|
||||
static GroupInfoDto fromJson(QJsonObject source);
|
||||
void setFromJson(QJsonObject source);
|
||||
QJsonObject toJson();
|
||||
QJsonObject toJson() const;
|
||||
|
||||
// Properties
|
||||
/**
|
||||
|
@ -114,6 +118,18 @@ protected:
|
|||
QDateTime m_lastUpdatedAt;
|
||||
};
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using GroupInfoDto = Jellyfin::DTO::GroupInfoDto;
|
||||
|
||||
template <>
|
||||
GroupInfoDto fromJsonValue(const QJsonValue &source, convertType<GroupInfoDto>);
|
||||
|
||||
template<>
|
||||
QJsonValue toJsonValue(const GroupInfoDto &source, convertType<GroupInfoDto>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
||||
|
|
|
@ -36,6 +36,10 @@
|
|||
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -52,7 +56,19 @@ private:
|
|||
explicit GroupQueueModeClass();
|
||||
};
|
||||
|
||||
typedef GroupQueueModeClass::Value GroupQueueMode;
|
||||
using GroupQueueMode = GroupQueueModeClass::Value;
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using GroupQueueMode = Jellyfin::DTO::GroupQueueMode;
|
||||
|
||||
template <>
|
||||
GroupQueueMode fromJsonValue(const QJsonValue &source, convertType<GroupQueueMode>);
|
||||
|
||||
template <>
|
||||
QJsonValue toJsonValue(const GroupQueueMode &source, convertType<GroupQueueMode>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
|
|
@ -36,6 +36,10 @@
|
|||
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -53,7 +57,19 @@ private:
|
|||
explicit GroupRepeatModeClass();
|
||||
};
|
||||
|
||||
typedef GroupRepeatModeClass::Value GroupRepeatMode;
|
||||
using GroupRepeatMode = GroupRepeatModeClass::Value;
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using GroupRepeatMode = Jellyfin::DTO::GroupRepeatMode;
|
||||
|
||||
template <>
|
||||
GroupRepeatMode fromJsonValue(const QJsonValue &source, convertType<GroupRepeatMode>);
|
||||
|
||||
template <>
|
||||
QJsonValue toJsonValue(const GroupRepeatMode &source, convertType<GroupRepeatMode>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
|
|
@ -36,6 +36,10 @@
|
|||
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -52,7 +56,19 @@ private:
|
|||
explicit GroupShuffleModeClass();
|
||||
};
|
||||
|
||||
typedef GroupShuffleModeClass::Value GroupShuffleMode;
|
||||
using GroupShuffleMode = GroupShuffleModeClass::Value;
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using GroupShuffleMode = Jellyfin::DTO::GroupShuffleMode;
|
||||
|
||||
template <>
|
||||
GroupShuffleMode fromJsonValue(const QJsonValue &source, convertType<GroupShuffleMode>);
|
||||
|
||||
template <>
|
||||
QJsonValue toJsonValue(const GroupShuffleMode &source, convertType<GroupShuffleMode>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
|
|
@ -36,6 +36,10 @@
|
|||
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -54,7 +58,19 @@ private:
|
|||
explicit GroupStateTypeClass();
|
||||
};
|
||||
|
||||
typedef GroupStateTypeClass::Value GroupStateType;
|
||||
using GroupStateType = GroupStateTypeClass::Value;
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using GroupStateType = Jellyfin::DTO::GroupStateType;
|
||||
|
||||
template <>
|
||||
GroupStateType fromJsonValue(const QJsonValue &source, convertType<GroupStateType>);
|
||||
|
||||
template <>
|
||||
QJsonValue toJsonValue(const GroupStateType &source, convertType<GroupStateType>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
|
|
@ -36,6 +36,10 @@
|
|||
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -61,7 +65,19 @@ private:
|
|||
explicit GroupUpdateTypeClass();
|
||||
};
|
||||
|
||||
typedef GroupUpdateTypeClass::Value GroupUpdateType;
|
||||
using GroupUpdateType = GroupUpdateTypeClass::Value;
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using GroupUpdateType = Jellyfin::DTO::GroupUpdateType;
|
||||
|
||||
template <>
|
||||
GroupUpdateType fromJsonValue(const QJsonValue &source, convertType<GroupUpdateType>);
|
||||
|
||||
template <>
|
||||
QJsonValue toJsonValue(const GroupUpdateType &source, convertType<GroupUpdateType>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
|
|
@ -37,6 +37,10 @@
|
|||
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -53,7 +57,7 @@ public:
|
|||
|
||||
static GuideInfo fromJson(QJsonObject source);
|
||||
void setFromJson(QJsonObject source);
|
||||
QJsonObject toJson();
|
||||
QJsonObject toJson() const;
|
||||
|
||||
// Properties
|
||||
/**
|
||||
|
@ -80,6 +84,18 @@ protected:
|
|||
QDateTime m_endDate;
|
||||
};
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using GuideInfo = Jellyfin::DTO::GuideInfo;
|
||||
|
||||
template <>
|
||||
GuideInfo fromJsonValue(const QJsonValue &source, convertType<GuideInfo>);
|
||||
|
||||
template<>
|
||||
QJsonValue toJsonValue(const GuideInfo &source, convertType<GuideInfo>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
||||
|
|
|
@ -36,6 +36,10 @@
|
|||
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -53,7 +57,19 @@ private:
|
|||
explicit HeaderMatchTypeClass();
|
||||
};
|
||||
|
||||
typedef HeaderMatchTypeClass::Value HeaderMatchType;
|
||||
using HeaderMatchType = HeaderMatchTypeClass::Value;
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using HeaderMatchType = Jellyfin::DTO::HeaderMatchType;
|
||||
|
||||
template <>
|
||||
HeaderMatchType fromJsonValue(const QJsonValue &source, convertType<HeaderMatchType>);
|
||||
|
||||
template <>
|
||||
QJsonValue toJsonValue(const HeaderMatchType &source, convertType<HeaderMatchType>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
|
|
@ -38,6 +38,10 @@
|
|||
#include "JellyfinQt/dto/headermatchtype.h"
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -54,7 +58,7 @@ public:
|
|||
|
||||
static HttpHeaderInfo fromJson(QJsonObject source);
|
||||
void setFromJson(QJsonObject source);
|
||||
QJsonObject toJson();
|
||||
QJsonObject toJson() const;
|
||||
|
||||
// Properties
|
||||
|
||||
|
@ -83,6 +87,18 @@ protected:
|
|||
HeaderMatchType m_match;
|
||||
};
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using HttpHeaderInfo = Jellyfin::DTO::HttpHeaderInfo;
|
||||
|
||||
template <>
|
||||
HttpHeaderInfo fromJsonValue(const QJsonValue &source, convertType<HttpHeaderInfo>);
|
||||
|
||||
template<>
|
||||
QJsonValue toJsonValue(const HttpHeaderInfo &source, convertType<HttpHeaderInfo>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
||||
|
|
|
@ -36,6 +36,10 @@
|
|||
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -52,7 +56,7 @@ public:
|
|||
|
||||
static IgnoreWaitRequestDto fromJson(QJsonObject source);
|
||||
void setFromJson(QJsonObject source);
|
||||
QJsonObject toJson();
|
||||
QJsonObject toJson() const;
|
||||
|
||||
// Properties
|
||||
/**
|
||||
|
@ -69,6 +73,18 @@ protected:
|
|||
bool m_ignoreWait;
|
||||
};
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using IgnoreWaitRequestDto = Jellyfin::DTO::IgnoreWaitRequestDto;
|
||||
|
||||
template <>
|
||||
IgnoreWaitRequestDto fromJsonValue(const QJsonValue &source, convertType<IgnoreWaitRequestDto>);
|
||||
|
||||
template<>
|
||||
QJsonValue toJsonValue(const IgnoreWaitRequestDto &source, convertType<IgnoreWaitRequestDto>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
||||
|
|
|
@ -37,6 +37,10 @@
|
|||
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -53,7 +57,7 @@ public:
|
|||
|
||||
static ImageByNameInfo fromJson(QJsonObject source);
|
||||
void setFromJson(QJsonObject source);
|
||||
QJsonObject toJson();
|
||||
QJsonObject toJson() const;
|
||||
|
||||
// Properties
|
||||
/**
|
||||
|
@ -118,6 +122,18 @@ protected:
|
|||
QString m_format;
|
||||
};
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using ImageByNameInfo = Jellyfin::DTO::ImageByNameInfo;
|
||||
|
||||
template <>
|
||||
ImageByNameInfo fromJsonValue(const QJsonValue &source, convertType<ImageByNameInfo>);
|
||||
|
||||
template<>
|
||||
QJsonValue toJsonValue(const ImageByNameInfo &source, convertType<ImageByNameInfo>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
||||
|
|
|
@ -36,6 +36,10 @@
|
|||
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -55,7 +59,19 @@ private:
|
|||
explicit ImageFormatClass();
|
||||
};
|
||||
|
||||
typedef ImageFormatClass::Value ImageFormat;
|
||||
using ImageFormat = ImageFormatClass::Value;
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using ImageFormat = Jellyfin::DTO::ImageFormat;
|
||||
|
||||
template <>
|
||||
ImageFormat fromJsonValue(const QJsonValue &source, convertType<ImageFormat>);
|
||||
|
||||
template <>
|
||||
QJsonValue toJsonValue(const ImageFormat &source, convertType<ImageFormat>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
|
|
@ -38,6 +38,10 @@
|
|||
#include "JellyfinQt/dto/imagetype.h"
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -54,7 +58,7 @@ public:
|
|||
|
||||
static ImageInfo fromJson(QJsonObject source);
|
||||
void setFromJson(QJsonObject source);
|
||||
QJsonObject toJson();
|
||||
QJsonObject toJson() const;
|
||||
|
||||
// Properties
|
||||
|
||||
|
@ -149,6 +153,18 @@ protected:
|
|||
qint64 m_size;
|
||||
};
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using ImageInfo = Jellyfin::DTO::ImageInfo;
|
||||
|
||||
template <>
|
||||
ImageInfo fromJsonValue(const QJsonValue &source, convertType<ImageInfo>);
|
||||
|
||||
template<>
|
||||
QJsonValue toJsonValue(const ImageInfo &source, convertType<ImageInfo>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
||||
|
|
|
@ -37,6 +37,10 @@
|
|||
#include "JellyfinQt/dto/imagetype.h"
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -53,7 +57,7 @@ public:
|
|||
|
||||
static ImageOption fromJson(QJsonObject source);
|
||||
void setFromJson(QJsonObject source);
|
||||
QJsonObject toJson();
|
||||
QJsonObject toJson() const;
|
||||
|
||||
// Properties
|
||||
|
||||
|
@ -86,6 +90,18 @@ protected:
|
|||
qint32 m_minWidth;
|
||||
};
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using ImageOption = Jellyfin::DTO::ImageOption;
|
||||
|
||||
template <>
|
||||
ImageOption fromJsonValue(const QJsonValue &source, convertType<ImageOption>);
|
||||
|
||||
template<>
|
||||
QJsonValue toJsonValue(const ImageOption &source, convertType<ImageOption>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
||||
|
|
|
@ -36,6 +36,10 @@
|
|||
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -58,7 +62,19 @@ private:
|
|||
explicit ImageOrientationClass();
|
||||
};
|
||||
|
||||
typedef ImageOrientationClass::Value ImageOrientation;
|
||||
using ImageOrientation = ImageOrientationClass::Value;
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using ImageOrientation = Jellyfin::DTO::ImageOrientation;
|
||||
|
||||
template <>
|
||||
ImageOrientation fromJsonValue(const QJsonValue &source, convertType<ImageOrientation>);
|
||||
|
||||
template <>
|
||||
QJsonValue toJsonValue(const ImageOrientation &source, convertType<ImageOrientation>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
|
|
@ -40,6 +40,10 @@
|
|||
#include "JellyfinQt/dto/imagetype.h"
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -56,7 +60,7 @@ public:
|
|||
|
||||
static ImageProviderInfo fromJson(QJsonObject source);
|
||||
void setFromJson(QJsonObject source);
|
||||
QJsonObject toJson();
|
||||
QJsonObject toJson() const;
|
||||
|
||||
// Properties
|
||||
/**
|
||||
|
@ -87,6 +91,18 @@ protected:
|
|||
QList<ImageType> m_supportedImages;
|
||||
};
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using ImageProviderInfo = Jellyfin::DTO::ImageProviderInfo;
|
||||
|
||||
template <>
|
||||
ImageProviderInfo fromJsonValue(const QJsonValue &source, convertType<ImageProviderInfo>);
|
||||
|
||||
template<>
|
||||
QJsonValue toJsonValue(const ImageProviderInfo &source, convertType<ImageProviderInfo>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
||||
|
|
|
@ -36,6 +36,10 @@
|
|||
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -52,7 +56,19 @@ private:
|
|||
explicit ImageSavingConventionClass();
|
||||
};
|
||||
|
||||
typedef ImageSavingConventionClass::Value ImageSavingConvention;
|
||||
using ImageSavingConvention = ImageSavingConventionClass::Value;
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using ImageSavingConvention = Jellyfin::DTO::ImageSavingConvention;
|
||||
|
||||
template <>
|
||||
ImageSavingConvention fromJsonValue(const QJsonValue &source, convertType<ImageSavingConvention>);
|
||||
|
||||
template <>
|
||||
QJsonValue toJsonValue(const ImageSavingConvention &source, convertType<ImageSavingConvention>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
|
|
@ -36,6 +36,10 @@
|
|||
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -63,7 +67,19 @@ private:
|
|||
explicit ImageTypeClass();
|
||||
};
|
||||
|
||||
typedef ImageTypeClass::Value ImageType;
|
||||
using ImageType = ImageTypeClass::Value;
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using ImageType = Jellyfin::DTO::ImageType;
|
||||
|
||||
template <>
|
||||
ImageType fromJsonValue(const QJsonValue &source, convertType<ImageType>);
|
||||
|
||||
template <>
|
||||
QJsonValue toJsonValue(const ImageType &source, convertType<ImageType>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
|
|
@ -39,6 +39,10 @@
|
|||
#include "JellyfinQt/dto/version.h"
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -55,7 +59,7 @@ public:
|
|||
|
||||
static InstallationInfo fromJson(QJsonObject source);
|
||||
void setFromJson(QJsonObject source);
|
||||
QJsonObject toJson();
|
||||
QJsonObject toJson() const;
|
||||
|
||||
// Properties
|
||||
/**
|
||||
|
@ -126,6 +130,18 @@ protected:
|
|||
QString m_checksum;
|
||||
};
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using InstallationInfo = Jellyfin::DTO::InstallationInfo;
|
||||
|
||||
template <>
|
||||
InstallationInfo fromJsonValue(const QJsonValue &source, convertType<InstallationInfo>);
|
||||
|
||||
template<>
|
||||
QJsonValue toJsonValue(const InstallationInfo &source, convertType<InstallationInfo>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
||||
|
|
|
@ -39,6 +39,10 @@
|
|||
#include "JellyfinQt/dto/version.h"
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -55,7 +59,7 @@ public:
|
|||
|
||||
static IPlugin fromJson(QJsonObject source);
|
||||
void setFromJson(QJsonObject source);
|
||||
QJsonObject toJson();
|
||||
QJsonObject toJson() const;
|
||||
|
||||
// Properties
|
||||
/**
|
||||
|
@ -136,6 +140,18 @@ protected:
|
|||
QString m_dataFolderPath;
|
||||
};
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using IPlugin = Jellyfin::DTO::IPlugin;
|
||||
|
||||
template <>
|
||||
IPlugin fromJsonValue(const QJsonValue &source, convertType<IPlugin>);
|
||||
|
||||
template<>
|
||||
QJsonValue toJsonValue(const IPlugin &source, convertType<IPlugin>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
||||
|
|
|
@ -36,6 +36,10 @@
|
|||
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -52,7 +56,19 @@ private:
|
|||
explicit IsoTypeClass();
|
||||
};
|
||||
|
||||
typedef IsoTypeClass::Value IsoType;
|
||||
using IsoType = IsoTypeClass::Value;
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using IsoType = Jellyfin::DTO::IsoType;
|
||||
|
||||
template <>
|
||||
IsoType fromJsonValue(const QJsonValue &source, convertType<IsoType>);
|
||||
|
||||
template <>
|
||||
QJsonValue toJsonValue(const IsoType &source, convertType<IsoType>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
|
|
@ -36,6 +36,10 @@
|
|||
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -52,7 +56,7 @@ public:
|
|||
|
||||
static ItemCounts fromJson(QJsonObject source);
|
||||
void setFromJson(QJsonObject source);
|
||||
QJsonObject toJson();
|
||||
QJsonObject toJson() const;
|
||||
|
||||
// Properties
|
||||
/**
|
||||
|
@ -179,6 +183,18 @@ protected:
|
|||
qint32 m_itemCount;
|
||||
};
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using ItemCounts = Jellyfin::DTO::ItemCounts;
|
||||
|
||||
template <>
|
||||
ItemCounts fromJsonValue(const QJsonValue &source, convertType<ItemCounts>);
|
||||
|
||||
template<>
|
||||
QJsonValue toJsonValue(const ItemCounts &source, convertType<ItemCounts>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
||||
|
|
|
@ -36,6 +36,10 @@
|
|||
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -111,7 +115,19 @@ private:
|
|||
explicit ItemFieldsClass();
|
||||
};
|
||||
|
||||
typedef ItemFieldsClass::Value ItemFields;
|
||||
using ItemFields = ItemFieldsClass::Value;
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using ItemFields = Jellyfin::DTO::ItemFields;
|
||||
|
||||
template <>
|
||||
ItemFields fromJsonValue(const QJsonValue &source, convertType<ItemFields>);
|
||||
|
||||
template <>
|
||||
QJsonValue toJsonValue(const ItemFields &source, convertType<ItemFields>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
|
|
@ -36,6 +36,10 @@
|
|||
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -59,7 +63,19 @@ private:
|
|||
explicit ItemFilterClass();
|
||||
};
|
||||
|
||||
typedef ItemFilterClass::Value ItemFilter;
|
||||
using ItemFilter = ItemFilterClass::Value;
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using ItemFilter = Jellyfin::DTO::ItemFilter;
|
||||
|
||||
template <>
|
||||
ItemFilter fromJsonValue(const QJsonValue &source, convertType<ItemFilter>);
|
||||
|
||||
template <>
|
||||
QJsonValue toJsonValue(const ItemFilter &source, convertType<ItemFilter>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
|
|
@ -37,6 +37,10 @@
|
|||
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -53,7 +57,7 @@ public:
|
|||
|
||||
static JoinGroupRequestDto fromJson(QJsonObject source);
|
||||
void setFromJson(QJsonObject source);
|
||||
QJsonObject toJson();
|
||||
QJsonObject toJson() const;
|
||||
|
||||
// Properties
|
||||
/**
|
||||
|
@ -70,6 +74,18 @@ protected:
|
|||
QString m_groupId;
|
||||
};
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using JoinGroupRequestDto = Jellyfin::DTO::JoinGroupRequestDto;
|
||||
|
||||
template <>
|
||||
JoinGroupRequestDto fromJsonValue(const QJsonValue &source, convertType<JoinGroupRequestDto>);
|
||||
|
||||
template<>
|
||||
QJsonValue toJsonValue(const JoinGroupRequestDto &source, convertType<JoinGroupRequestDto>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
||||
|
|
|
@ -36,6 +36,10 @@
|
|||
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
// Forward declaration
|
||||
class ApiClient;
|
||||
}
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
|
@ -54,7 +58,19 @@ private:
|
|||
explicit KeepUntilClass();
|
||||
};
|
||||
|
||||
typedef KeepUntilClass::Value KeepUntil;
|
||||
using KeepUntil = KeepUntilClass::Value;
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using KeepUntil = Jellyfin::DTO::KeepUntil;
|
||||
|
||||
template <>
|
||||
KeepUntil fromJsonValue(const QJsonValue &source, convertType<KeepUntil>);
|
||||
|
||||
template <>
|
||||
QJsonValue toJsonValue(const KeepUntil &source, convertType<KeepUntil>);
|
||||
|
||||
} // NS DTO
|
||||
} // NS Jellyfin
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue