hybridwebpage.h 588 B

123456789101112131415161718192021222324252627282930
  1. #ifndef HYBRIDWEBPAGE_H
  2. #define HYBRIDWEBPAGE_H
  3. #include <QWebPage>
  4. #include <QString>
  5. #include <QFile>
  6. #include <QTextStream>
  7. #include "hybridfw_global.h"
  8. class DLL_EXPORT HybridWebPage : public QWebPage
  9. {
  10. Q_OBJECT
  11. public:
  12. HybridWebPage(QObject *parent = 0);
  13. /**
  14. * Enable logging. Log is written to c:\data\\hag_console.log
  15. */
  16. void enableLogging();
  17. protected:
  18. void javaScriptConsoleMessage (const QString& message, int lineNumber, const QString& sourceID);
  19. private:
  20. QFile m_logFile;
  21. };
  22. #endif // HYBRIDWEBPAGE_H