yacreader/common/http_worker.h
Anon789 dd381df7b7 yacreader_ru.ts
Correcting errors in words and their meanings. Update the Russian language. Now look better.
2018-02-24 18:11:53 +00:00

32 lines
547 B
C++

#ifndef __HTTP_WORKER_H
#define __HTTP_WORKER_H
#include <QByteArray>
#include <QThread>
#include <QUrl>
#include "yacreader_global.h"
class HttpWorker : public QThread
{
Q_OBJECT
public:
HttpWorker(const QString & urlString);
public slots:
void get();
QByteArray getResult();
bool wasValid();
bool wasTimeout();
private:
void run();
QUrl url;
int httpGetId;
QByteArray result;
bool _error;
bool _timeout;
signals:
void dataReady(const QByteArray &);
void timeout();
};
#endif