Fix typo
[yandex-traffic] / http_fetcher.hpp
1 #ifndef __HTTP_FETCHER_H__
2 #define __HTTP_FETCHER_H__
3
4 #include <QtCore>
5 #include <QtNetwork>
6
7
8 class HttpFetcher : public QObject
9 {
10     Q_OBJECT
11 private:
12     QHttp _http;
13     QBuffer _buffer;
14
15 private slots:
16     void requestDone (bool err);
17
18 signals:
19     void error (QHttp::Error error);
20     void done (const QByteArray& data);
21
22 public:
23     HttpFetcher ();
24
25     void fetch (const QString& url);
26 };
27
28
29 #endif // __HTTP_FETCHER_H__