// SPDX-License-Identifier: GPL-2.0 #include "qmlinterface.h" #include QMLInterface *QMLInterface::instance() { static QMLInterface *self = new QMLInterface; return self; } void QMLInterface::setup(QQmlContext *ct) { // Register interface class ct->setContextProperty("Backend", QMLInterface::instance()); // Make enums available as types qmlRegisterUncreatableType("org.subsurfacedivelog.mobile",1,0,"Enums","Enum is not a type"); // relink signals to QML }