CuteLogger
Fast and simple logging solution for Qt based applications
addonmetadataparser.h
1/*
2 * Copyright (c) 2026 Meltytech, LLC
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#ifndef ADDONMETADATAPARSER_H
19#define ADDONMETADATAPARSER_H
20
21#include <MltProperties.h>
22#include <QList>
23#include <QString>
24#include <QStringList>
25
26struct AddOnParameterDescriptor
27{
28 QString name;
29 QString title;
30 QString type;
31 QString widget;
32 QString layoutHint;
33 bool hideLabel = false;
34 bool isReadOnly = false;
35 bool supportsKeyframes = false;
36 QStringList values;
37 QString defaultValue;
38 QString unit;
39 QString minimum;
40 QString maximum;
41 QString description;
42 bool normalizedCoordinates = false;
43 bool normalizedDefault = false;
44};
45
46struct AddOnFilterDescriptor
47{
48 QString service;
49 QString title;
50 QString description;
51 bool isAudio = false;
52 QStringList imageFormats;
53 QList<AddOnParameterDescriptor> parameters;
54};
55
56class AddOnMetadataParser
57{
58public:
59 static AddOnFilterDescriptor parse(const QString &service, Mlt::Properties *mltMetadata);
60};
61
62#endif // ADDONMETADATAPARSER_H