This repository has been archived on 2026-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
powersync-core/libnymea-core/scriptengine/scriptthingmanager.cpp
2022-10-13 15:18:06 +02:00

23 lines
367 B
C++

#include "scriptthingmanager.h"
#include <qqml.h>
#include <QQmlEngine>
namespace nymeaserver {
namespace scriptengine {
ScriptThingManager::ScriptThingManager(QObject *parent)
: QObject{parent}
{
}
void ScriptThingManager::classBegin()
{
m_thingManager = reinterpret_cast<ThingManager*>(qmlEngine(this)->property("thingManager").toULongLong());
}
}
}