| 12345678910111213141516171819202122232425262728293031 |
- #ifndef CACHEWEBPAGE_H
- #define CACHEWEBPAGE_H
- #include <QtCore>
- #include <QThread>
- #include "SNCCore_global.h"
- class SNCCORESHARED_EXPORT CacheWebPage : public QThread
- {
- Q_OBJECT
- public:
- explicit CacheWebPage(QString pageUrl,QString cachePath,QObject *parent = 0);
- void abort();
- ~CacheWebPage();
- signals:
-
- public slots:
- protected:
- void run();
- private:
- QString createLocalDirByUrl(QString pageUrl);
- void downloadPage();
- QStringList getMatchElementFromPage(QString souceText);
- void createPageCachePath();
- private:
- QString pageUrl;
- QString cachePath;
- bool stop;
- };
- #endif // CACHEWEBPAGE_H
|