mirror of https://github.com/nymea/nymea.git
23 lines
367 B
C++
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());
|
|
|
|
}
|
|
|
|
}
|
|
}
|