mirror of
https://github.com/HenkKalkwater/harbour-sailfin.git
synced 2025-09-04 01:42:44 +00:00
Adjust codegeneration to emit simpler classes
This commit is contained in:
parent
05f79197eb
commit
0358418926
466 changed files with 21405 additions and 13956 deletions
|
@ -14,11 +14,18 @@ private:
|
|||
explicit {{className}}Class();
|
||||
};
|
||||
|
||||
typedef {{className}} Class::Value {{className}};
|
||||
typedef {{className}}Class::Value {{className}};
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using {{className}} = Jellyfin::DTO::{{className}};
|
||||
using {{className}}Class = Jellyfin::DTO::{{className}}Class;
|
||||
|
||||
template <>
|
||||
|
||||
{{className}} fromJsonValue<{{className}}>(QJsonValue source) {
|
||||
{{className}} fromJsonValue<{{className}}>(const QJsonValue &source) {
|
||||
if (!source.isString()) return {{className}}Class::EnumNotSet;
|
||||
|
||||
QString str = source.toString();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue