#ifndef SUNSCRAPERWORKER_H #define SUNSCRAPERWORKER_H #include #include #include class QWebPage; class SunscraperWorker : public QObject { Q_OBJECT public: SunscraperWorker(QObject *parent = 0); signals: void finished(unsigned queryId, QString result); public slots: void loadHtml(unsigned queryId, QString html); void loadUrl(unsigned queryId, QString url); void finalize(unsigned queryId); private slots: void attachAPI(); private: QMap _webPages; QWebPage *initializeWebPage(unsigned queryId); }; #endif // SUNSCRAPERWORKER_H