aboutsummaryrefslogtreecommitdiffstats
path: root/qface/builtin/qtcpp/templates/interface.h
blob: 6ada967fd22ed3da1affe769ee156ffc9c21eea8 (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
{# Copyright (c) Pelagicore AB 2016 #}
{% set class = 'Qml{0}'.format(interface) %}
/*
 * This is a preserved file and can be edited.
 * All changes will not be override.
 */


#pragma once

#include <QtCore>

#include "generated/qml{{module.module_name|lower}}module.h"
#include "generated/qmlabstract{{interface|lower}}.h"

class {{class}} : public QmlAbstract{{interface}}
{
    Q_OBJECT
public:
    {{class}}(QObject *parent = nullptr);
    virtual ~{{class}}();

    static void registerQmlTypes(const QString& uri, int majorVersion=1, int minorVersion=0);
};