123456789101112131415161718192021222324252627282930 |
- #include "sensorsapi.h"
- #include "sensors.h"
- SensorsAPI::SensorsAPI()
- {
- m_sensors = new Sensors();
- }
- void SensorsAPI::setEnvironment(QMainWindow* parentWindow, QWebFrame* webFrame)
- {
- m_sensors->setEnvironment(parentWindow, webFrame);
- }
- QString SensorsAPI::jsObjectName()
- {
- return "sensors";
- }
- QObject *SensorsAPI::jsObjectInstance()
- {
- return m_sensors;
- }
- QString SensorsAPI::jsFileName()
- {
- return "sensors.js";
- }
- Q_EXPORT_PLUGIN2(sensorsapi,SensorsAPI)
|