mirror of
https://github.com/HenkKalkwater/harbour-sailfin.git
synced 2024-11-15 22:15:18 +00:00
31 lines
521 B
Handlebars
31 lines
521 B
Handlebars
class {{className}}Class {
|
|
Q_GADGET
|
|
public:
|
|
enum Value {
|
|
EnumNotSet,
|
|
|
|
{{#each values as |value|}}
|
|
{{value}},
|
|
|
|
{{/each}}
|
|
};
|
|
Q_ENUM(Value)
|
|
private:
|
|
explicit {{className}}Class();
|
|
};
|
|
|
|
using {{className}} = {{className}}Class::Value;
|
|
|
|
} // NS DTO
|
|
|
|
namespace Support {
|
|
|
|
using {{className}} = Jellyfin::DTO::{{className}};
|
|
|
|
template <>
|
|
|
|
{{className}} fromJsonValue(const QJsonValue &source, convertType<{{className}}>);
|
|
|
|
template <>
|
|
QJsonValue toJsonValue(const {{className}} &source, convertType<{{className}}>);
|