123456789101112131415161718192021222324252627282930 |
- #ifndef HYBRIDWEBPAGE_H
- #define HYBRIDWEBPAGE_H
- #include <QWebPage>
- #include <QString>
- #include <QFile>
- #include <QTextStream>
- #include "hybridfw_global.h"
- class DLL_EXPORT HybridWebPage : public QWebPage
- {
- Q_OBJECT
- public:
- HybridWebPage(QObject *parent = 0);
-
- /**
- * Enable logging. Log is written to c:\data\\hag_console.log
- */
- void enableLogging();
- protected:
- void javaScriptConsoleMessage (const QString& message, int lineNumber, const QString& sourceID);
-
- private:
- QFile m_logFile;
- };
- #endif // HYBRIDWEBPAGE_H
|