Sha256: 2867bc40dafb7528c5ffc7a70a9d199db1dad38a730baa73e27305e8822b7078

Contents?: true

Size: 623 Bytes

Versions: 3

Compression:

Stored size: 623 Bytes

Contents

#ifndef SUNSCRAPERWORKER_H
#define SUNSCRAPERWORKER_H

#include <QObject>
#include <QMutex>
#include <QMap>

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

    QWebPage *initializeWebPage(unsigned queryId);
};

#endif // SUNSCRAPERWORKER_H

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sunscraper-1.1.0.beta3 ext/standalone/sunscraperworker.h
sunscraper-1.1.0.beta2 ext/standalone/sunscraperworker.h
sunscraper-1.1.0.beta1 ext/standalone/sunscraperworker.h