sensorsapi.h 528 B

1234567891011121314151617181920212223242526272829
  1. #ifndef SensorsAPI_H
  2. #define SensorsAPI_H
  3. #include <QtCore>
  4. #include "hybridplugininterface.h"
  5. class Sensors;
  6. class QWebFrame;
  7. class SensorsAPI : public QObject, public HybridPluginInterface {
  8. Q_OBJECT
  9. Q_INTERFACES(HybridPluginInterface)
  10. public:
  11. SensorsAPI();
  12. void setEnvironment(QMainWindow *parentWindow, QWebFrame *webFrame);
  13. QString jsObjectName();
  14. QObject *jsObjectInstance();
  15. QString jsFileName();
  16. private:
  17. Sensors *m_sensors;
  18. };
  19. #endif // SensorsAPI_H