Beispiel #1
0
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();
}
Beispiel #2
0
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();

}