void Catalog::onRequestHanderl() { auto netReplay = qobject_cast<QNetworkReply*>(sender()); if(netReplay->error() == QNetworkReply::NoError) { const Replay rep(netReplay->readAll()); if(rep.isSuccess()) { parseData(rep.objectData()); } } netReplay->deleteLater(); }
void PlayFilesModel::onRequestHanderl() { auto netReplay = qobject_cast<QNetworkReply*>(sender()); if(netReplay->error() == QNetworkReply::NoError) { const Replay replay(netReplay->readAll()); if(replay.isSuccess()) { parseData(replay.arrayData()); } } netReplay->deleteLater(); }