MCPcopy Create free account
hub / github.com/YACReader/yacreader / getComicDetail

Method getComicDetail

YACReaderLibrary/comic_vine/comic_vine_client.cpp:178–195  ·  view source on GitHub ↗

CV_COMIC_DETAIL

Source from the content-addressed store, hash-verified

176
177// CV_COMIC_DETAIL
178QByteArray ComicVineClient::getComicDetail(const QString &id, bool &outError, bool &outTimeout)
179{
180 HttpWorker *search = new HttpWorker(
181 QString(CV_COMIC_DETAIL).replace(CV_WEB_ADDRESS, baseURL).replace(CV_API_KEY, settings->value(COMIC_VINE_API_KEY, CV_API_KEY_DEFAULT).toString()).arg(id),
182 userAgent);
183
184 // connect(search,SIGNAL(dataReady(const QByteArray &)),this,SLOT(proccessComicDetailData(const QByteArray &)));
185 // connect(search,SIGNAL(timeout()),this,SIGNAL(timeOut()));
186 // connect(search,SIGNAL(finished()),search,SLOT(deleteLater()));
187 search->get();
188 search->wait();
189 outError = !(search->wasValid());
190 outTimeout = search->wasTimeout();
191 QByteArray result = search->getResult();
192 delete search;
193
194 return result;
195}
196
197// CV_COMIC_DETAIL
198void ComicVineClient::getComicDetailAsync(const QString &id)

Callers 2

getComicsInfoMethod · 0.80
getComicInfoMethod · 0.80

Calls 7

replaceMethod · 0.80
toStringMethod · 0.80
wasValidMethod · 0.80
wasTimeoutMethod · 0.80
getResultMethod · 0.80
QStringClass · 0.50
getMethod · 0.45

Tested by

no test coverage detected