Sha256: 59bdc63c4f1945e823b952649c68a16520eceb7e164bff97c23611f73c07d071

Contents?: true

Size: 602 Bytes

Versions: 1

Compression:

Stored size: 602 Bytes

Contents

#ifndef SUNSCRAPERTHREAD_H
#define SUNSCRAPERTHREAD_H

#include <QThread>
#include <QMap>

class QWebPage;

class SunscraperThread : public QThread
{
    Q_OBJECT
public:
    SunscraperThread();

    void run();

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<unsigned, QWebPage *> _webPages;

    QWebPage *initializeWebPage(unsigned queryId);
};

#endif // SUNSCRAPERTHREAD_H

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sunscraper-1.0.0 ext/sunscraperthread.h