aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/ApiExtractor/predefined_templates.h
blob: 2519f65d94f811c93c7c32a667ee3c919a086a7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright (C) 2021 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#ifndef PREDEFINED_TEMPLATES_H
#define PREDEFINED_TEMPLATES_H

#include <QtCore/QList>
#include <QtCore/QString>

struct PredefinedTemplate
{
    QString name;
    QString content;
};

using PredefinedTemplates = QList<PredefinedTemplate>;

const PredefinedTemplates &predefinedTemplates();

// Create an XML snippet for a container type.
QByteArray containerTypeSystemSnippet(const char *name, const char *type,
                                      const char *include,
                                      const char *nativeToTarget,
                                      const char *targetToNativeType,
                                      const char *targetToNative);

#endif // PREDEFINED_TEMPLATES_H