exampleapi.h 550 B

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