cachewebview.h 640 B

1234567891011121314151617181920212223242526272829
  1. #ifndef CACHEWEBVIEW_H
  2. #define CACHEWEBVIEW_H
  3. #include <QWebView>
  4. #include "cachewebpage.h"
  5. #include "SNCCore_global.h"
  6. class SNCCORESHARED_EXPORT CacheWebView : public QWebView
  7. {
  8. Q_OBJECT
  9. public:
  10. explicit CacheWebView(QWidget *parent = 0);
  11. ~CacheWebView();
  12. void setPageUrl(QString pageUrl,QString cachePath);
  13. signals:
  14. public slots:
  15. void onLinkClicked(QUrl url);
  16. void onWebViewFinished(bool ok);
  17. private:
  18. void displayCacheFile();
  19. private:
  20. QString pageUrl;
  21. QString cachePath;
  22. CacheWebPage *cache;
  23. bool isCacheFile;
  24. bool m_isloading;
  25. };
  26. #endif // CACHEWEBVIEW_H