mirror of
https://github.com/YACReader/yacreader
synced 2026-01-31 20:30:06 -05:00
HttpWorker added, performs a http request in a background thread
ComicVineDialog, work in progress...
This commit is contained in:
34
YACReaderLibrary/comic_vine_client.h
Normal file
34
YACReaderLibrary/comic_vine_client.h
Normal file
@ -0,0 +1,34 @@
|
||||
#ifndef COMIC_VINE_CLIENT_H
|
||||
#define COMIC_VINE_CLIENT_H
|
||||
|
||||
#include "http_worker.h"
|
||||
|
||||
#include <QObject>
|
||||
|
||||
class ComicVineClient : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit ComicVineClient(QObject *parent = 0);
|
||||
|
||||
signals:
|
||||
|
||||
public slots:
|
||||
void search(const QString & query, int page = 0);
|
||||
void getSeriesDetail(const QString & id);
|
||||
void getComicIds(const QString & id, int page = 0);
|
||||
void getComicId(const QString & id, int comicNumber);
|
||||
void getComicDetail(const QString & id);
|
||||
void getCoverURL(const QString & id);
|
||||
private slots:
|
||||
void proccessVolumesSearchData(const QByteArray & data);
|
||||
|
||||
};
|
||||
|
||||
class CVSearch : public HttpWorker
|
||||
{
|
||||
public:
|
||||
CVSearch(const QString & query, int page=0);
|
||||
};
|
||||
|
||||
#endif // COMIC_VINE_CLIENT_H
|
||||
Reference in New Issue
Block a user